User Profile

Collapse

Profile Sidebar

Collapse
freddyjones39
freddyjones39
Last Activity: Mar 1 '08, 01:14 AM
Joined: Feb 23 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • freddyjones39
    started a topic Problems with my first switch statement.
    in C

    Problems with my first switch statement.

    I am new to C++, and using gcc for a compiler. This is my first switch statement I have written, but it will not compile, and I can't figure out why (I have stared at it for a while now). The errors messages say there are syntax errors on line 15, and 35, but I can't find them! Sorry about the obvious question.
    Thanks for your help.

    here is the code

    [code=cpp]
    #include <iostream>
    using namespace...
    See more | Go to post
    Last edited by Ganon11; Mar 1 '08, 03:51 PM. Reason: Fixing [CODE] tags.

  • freddyjones39
    replied to segmentation fault
    in C
    I re-wrote it completely, and the only thing that I can see that is different is the boolean expression after the while statement, and also my calc_a formula was wrong.
    See more | Go to post
    Last edited by freddyjones39; Feb 23 '08, 11:33 PM. Reason: Poor answer

    Leave a comment:


  • freddyjones39
    replied to segmentation fault
    in C
    I'm just trying to learn how to use functions.
    See more | Go to post

    Leave a comment:


  • freddyjones39
    replied to segmentation fault
    in C
    Thanks for the speedy reply. I think I got it figured out.
    See more | Go to post

    Leave a comment:


  • freddyjones39
    started a topic segmentation fault
    in C

    segmentation fault

    I am a beginner (very much so) in computer programming, I use a gcc compiler.
    The following program is not yet finished, but is at a stage that it should atleast run. It compiles fine, and asks for, and execpts value "b", but then geves a segmentation error message, and I have no idea why. Any help would be appretiated.


    [code=cpp]
    #include<iostre am>
    #include<iomani p>
    using namespace...
    See more | Go to post
    Last edited by sicarie; Feb 23 '08, 10:20 PM. Reason: Please use the code tags provided (they are [code=<c or cpp>] your code here and[/code]. Thanks
No activity results to display
Show More
Working...