Ok so when makeing my program these errors come up:
Error:jump to case lable
Error: crosses initialization of 'std::ofstream a_file'
The ofstream one repeats twice referring to the same line. Can anyone help me. I can't post the code as this is from my iPod.
Zssffssz
-4
Junior Poster
Recommended Answers
Jump to PostThe switch is a primitive form of "if/else" structure, are you trying to use an fstream declared in a case label in another case label?
Here's how I normally use my switch's
switch( condition ) { case ONE: { break; } case TWO: { break; } …
Jump to PostI suggest posting it if you can, I'm sure we can help you condense it.
All 5 Replies
pseudorandom21
166
Practically a Posting Shark
Zssffssz
-4
Junior Poster
pseudorandom21
166
Practically a Posting Shark
Zssffssz
-4
Junior Poster
pseudorandom21
166
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.