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...
User Profile
Collapse
-
Problems with my first switch statement.
-
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. -
-
-
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...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
Leave a comment: