Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 18th, 2003, 03:26 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Smile Hurray, my first C-application

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.

Reply With Quote
  #2  
Old July 18th, 2003, 03:30 AM
roninblade's Avatar
roninblade roninblade is offline
// no comment
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2001
Posts: 1,639 roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 45 m
Reputation Power: 33
continue with c then move to c++. you won't regret it.

Reply With Quote
  #3  
Old July 18th, 2003, 03:57 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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++?

Reply With Quote
  #4  
Old July 18th, 2003, 07:07 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
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 )

Reply With Quote
  #5  
Old July 23rd, 2003, 12:57 PM
sad.machine sad.machine is offline
I hate nerds
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Posts: 533 sad.machine Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 20 h 48 m 41 sec
Reputation Power: 0
how did it fvck up your computer?

Reply With Quote
  #6  
Old July 24th, 2003, 06:35 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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.

Reply With Quote
  #7  
Old July 27th, 2003, 05:18 AM
frymaster frymaster is offline
hubris, loathing, technology
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: http://frymaster.ca
Posts: 76 frymaster User rank is Private First Class (20 - 50 Reputation Level)frymaster User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 27 m 57 sec
Reputation Power: 8
cin and cout are c++ features...

you're ahead of schedule!

Reply With Quote
  #8  
Old July 28th, 2003, 02:15 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
they are ?

Cool i'm a C++ dude without even knowing it.

err...what does C use then ?

Reply With Quote
  #9  
Old July 28th, 2003, 02:47 AM
wannabe wannabe is offline
=) wannabe?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2002
Location: florida
Posts: 2,153 wannabe User rank is Lance Corporal (50 - 100 Reputation Level)wannabe User rank is Lance Corporal (50 - 100 Reputation Level)wannabe User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 21 h 58 m 25 sec
Reputation Power: 9
Send a message via AIM to wannabe Send a message via Yahoo to wannabe
umm print, printf?

Reply With Quote
  #10  
Old July 28th, 2003, 02:48 AM
frymaster frymaster is offline
hubris, loathing, technology
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: http://frymaster.ca
Posts: 76 frymaster User rank is Private First Class (20 - 50 Reputation Level)frymaster User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 27 m 57 sec
Reputation Power: 8
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

Reply With Quote
  #11  
Old July 28th, 2003, 02:53 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
lol

cout<<"Hello World";

is a bit more compact than

System.out.println("Hello World");

Reply With Quote
  #12  
Old July 28th, 2003, 11:39 AM
frymaster frymaster is offline
hubris, loathing, technology
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: http://frymaster.ca
Posts: 76 frymaster User rank is Private First Class (20 - 50 Reputation Level)frymaster User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 27 m 57 sec
Reputation Power: 8
System.out.println ??

now yr into java!

better update that resume

Reply With Quote
  #13  
Old July 29th, 2003, 02:26 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > Hurray, my first C-application


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |