cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Need some help to fix errors in a progra
Need some help to fix errors in a program RSVP
Jan 15, 2012 at 4:32pm UTC
Gautam029
(3)
pls click the link below which will have the program code and the debug / output page at the bottom of it ...........pls help
http://pastebin.com/s2REiZQJ
or
http://pastebin.com/raw.php?i=s2REiZQJ
Jan 15, 2012 at 4:51pm UTC
hamsterman
(4538)
Then you declare variables in a switch, you have to wrap them in {}, otherwise, the scope is problematic.
Example:
1
2
3
4
5
6
7
8
9
10
11
switch
(foo) {
case
0: { string str =
"foo"
; cout << str;
break
; }
case
1: ... }
Jan 15, 2012 at 5:00pm UTC
kbw
(9488)
In future, can you please post your code here and the errors too.
Thanks
Jan 15, 2012 at 5:11pm UTC
Gautam029
(3)
code is to huge to post here so, i had to to put it in an link
sorry about that
Topic archived. No new replies allowed.