|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
a n00b
where would a biggenner go to to learn the basics of c, c++, obj-c, or c#? where do you start? If someone could link me to some good tutorials I would appreciate it! ^_^
|
|
#2
|
||||
|
||||
|
http://www.cprogramming.com
http://www.xtremejava.com/books/index.html (download and read "Thinking in C++", 2nd Ed., Volumes 1 and 2) Also, Google for C/C++/whatever tutorials. They exist in abundance on the web. Good luck,
__________________
Jon Sagara "Me fail English? That's unpossible!" |
|
#3
|
|||
|
|||
|
Quote:
Code:
int main(){
}
![]() Mark
__________________
100 trillion calculations per nanosecond |
|
#4
|
|||
|
|||
|
Quote:
Should be either:Code:
int main(){
return 0;
}
or... Code:
void main(){
}
for good programming habits.... ![]() |
|
#5
|
||||
|
||||
|
For truely good habits, you should never use void main().
The point of using int main() is to return a success/failure code back to the operating system upon exit of the program. If you use void main() (which some compilers will complain if you do) then you are passing nothing back to the os. |
|
#6
|
|||
|
|||
|
Void main is used in Windows programming and int main is the standard de facto for system stuff
Mark |
|
#7
|
||||
|
||||
|
What kind of applications do you write with void main in windows?
Granted, the microsoft compiler will not complain about you using the void main contruct, but if it is a windows program (at least with MFC) then you are using the CApp class for C++ and int WinMain() for C. If I am wrong on this, please let me know. |
|
#8
|
|||
|
|||
|
Im talking about sample code i read from microsoft
Mark |
|
#9
|
||||
|
||||
|
Nuff said
|
|
#10
|
|||
|
|||
|
As for learning C, start by reading the bible until you know it by heart: http://www.amazon.com/exec/obidos/A...1267993-4448103
You are not a true C-programmer until you have read it.
__________________
-- Regards André Nęss Puritanism: The haunting fear that someone, somewhere may be having fun |
|
#11
|
||||
|
||||
|
Love that red picture on there
ANSI C ![]() |
|
#12
|
|||
|
|||
|
So it turns you on too?
![]() |
|
#13
|
||||
|
||||
|
Oh yeah,
love that word, ANSI ![]() ANSI C, ANSI SQL. It just gives me chills all over. lol |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > a n00b |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|