|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I made my very first little program in C.
I used the world famous cp-method (copy-paste) and it worked. Now I can visit the C/C++ forum aswell. ![]() I must admit, couse I'm a Java programmer, the syntax was not new to me (most people do it the other way around, I heard). But comparing it to Java, I now understand why people call C/C++ dangerous. I made a little tiny program, with an error and it almost f*cked up windows. I could never do that, not in a million years in Java even if I did it on purpose. What are you oppinions, should I continue on this dangerous path or should I stick to my safe Java-world?
__________________
Now is the winter of our discontent made glorious summer by this son of York. |
|
#2
|
||||
|
||||
|
continue with c then move to c++. you won't regret it.
![]() |
|
#3
|
||||
|
||||
|
Actually I was thinking of getting the C++ part asap and using all the Object-oriented features. I'm not to confortable with code that exists outside of a class.
![]() Is there some compelling reason not to completely ignore the C-only aspects of C/C++? |
|
#4
|
||||
|
||||
|
I don't think so. Anything you can do w/ C you can do with C++, though there are people that prefer to code some things in C for minor performance gains or something like that. Unless you plan on becomming very involved in C/C++ app development, I would say just learning C++ would be fine. (It worked for me
) |
|
#5
|
|||
|
|||
|
how did it fvck up your computer?
|
|
#6
|
||||
|
||||
|
I simply don't know. I made a "hello-world"-program with some extensions using cin and cout. It worked like it should work. Then I copied my little application to another directory. I started it there and instead of the one dos-screen with "hello world". Twenty to thirty dos-screens popped op, clogging my pc, screen etc.
After that my dos-command prompt isn't what it used to be. The real problem (to me) is that I haven't been able to reproduce the same kind of error. |
|
#7
|
|||
|
|||
|
cin and cout are c++ features...
you're ahead of schedule! |
|
#8
|
||||
|
||||
|
they are ?
Cool i'm a C++ dude without even knowing it. err...what does C use then ? |
|
#9
|
|||
|
|||
|
umm print, printf?
|
|
#10
|
|||
|
|||
|
printf()
http://www.die.net/doc/linux/man/man3/printf.3.html among others. not very much fun. a good rule of thumb is that if it appears to be a powerful and useful function, it's probably not part of c ![]() |
|
#11
|
||||
|
||||
|
lol
![]() cout<<"Hello World"; is a bit more compact than System.out.println("Hello World"); |
|
#12
|
|||
|
|||
|
System.out.println ??
now yr into java! better update that resume |
|
#13
|
||||
|
||||
|
Lol, no
![]() I started with Java. That's why this C/C++ is all bit, how shall i put it, clumbersome? Awkward? Non-Object Oriented? But also quite interesting because of all the posibilities to screw up, without the compiler warning you for it. |
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > Hurray, my first C-application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|