| | |
Airline Reservation Portal
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
1) gets() -- never use it. Read this for explaination of why.
lines 26-27: There is no need for variable x. Just use the parameter variable n.
line 41: >>void putdata(int n); Delete that line because its not necessary to prototype a function before actually writing the code for it. Most programmers will have all function progotypes at the very beginnning of the program, after the
line 44: same as previous comment about 26-27.
No comments about the rest of your program because I don't use ancient Turbo C++.
lines 26-27: There is no need for variable x. Just use the parameter variable n.
line 41: >>void putdata(int n); Delete that line because its not necessary to prototype a function before actually writing the code for it. Most programmers will have all function progotypes at the very beginnning of the program, after the
#include <blabla> statements.line 44: same as previous comment about 26-27.
No comments about the rest of your program because I don't use ancient Turbo C++.
Last edited by Ancient Dragon; Oct 18th, 2008 at 10:21 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Other Threads in the C++ Forum
- Previous Thread: files..and stuff..and comparing...and compiling..ohh
- Next Thread: getting command into Unix Shell
Views: 488 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






