| | |
Quick Question
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2006
Posts: 33
Reputation:
Solved Threads: 0
Im used to programming in Java as it was my first language to learn.
In C++ is...
equal to
I was doing a number of tests, but the answer was still unclear...
In C++ is...
C++ Syntax (Toggle Plain Text)
int myFunc(void);
C++ Syntax (Toggle Plain Text)
int myFunc();
I was doing a number of tests, but the answer was still unclear...
•
•
Join Date: Jul 2005
Posts: 244
Reputation:
Solved Threads: 5
The first version you posted is explicit, and, in my limited experience, is unnecessary.
Just use the second version if you have no input arguments; there's no difference.
Just use the second version if you have no input arguments; there's no difference.
Explainer of control logic and some basics.
"If you seek to drink from a fountain of knowledge, make sure your cup is big enough."
"If you seek to drink from a fountain of knowledge, make sure your cup is big enough."
•
•
•
•
Originally Posted by Drowzee
The first version you posted is explicit, and, in my limited experience, is unnecessary.
Just use the second version if you have no input arguments; there's no difference.
http://david.tribble.com/text/cdiffs.htm#C99-empty-parm
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- A quick question about "rank" (DaniWeb Community Feedback)
- Quick Question: Is J# the same thing as Java? (Java)
- Quick HijackThis question (Viruses, Spyware and other Nasties)
- A quick question (Game Development)
- quick question (C++)
- quick question (Geeks' Lounge)
- Question about 321Studios (Windows Software)
- AGP support video card question (Monitors, Displays and Video Cards)
- Quick question (Troubleshooting Dead Machines)
- Laptop LCD built into a car? (Monitors, Displays and Video Cards)
Other Threads in the C++ Forum
- Previous Thread: Won't Run
- Next Thread: Getting a non-random number?
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






