Welcome Guest ( Log In | Register )



3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> [tutorial] Basics Of C Programming - Part 2
SP Rao
post Oct 30 2006, 04:35 AM
Post #11


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 70
Joined: 29-August 06
Member No.: 15,594



QUOTE(Chesso @ Oct 20 2006, 08:23 AM) *

It looks like a great piece of information to me, Iv'e done DLL's and things in C++ and still didn't know some of that tongue.gif.

May be bacause you never needed BITWISE operators... They are very much useful in embedded system programming and system programming.

For high level codes, BITWISE operators may not be necessary. (I've never done any DLL's. So ain't sure if you do BIT operations there... All I know about DLL is it stands for Dinamic Link Libraries. Atleast thet's what I think it is tongue.gif )

[PS: Sorry for late response. Didn't come online for a long time as I was caught up with series of unfortunate events. Finally I'm free!!! biggrin.gif ]
Go to the top of the page
 
+Quote Post
bluefish
post Dec 31 2006, 04:20 PM
Post #12


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 71
Joined: 16-December 06
Member No.: 18,419



QUOTE(yordan @ Oct 18 2006, 10:35 AM) *

I agree.
Mainle, I see what ++i is (it changes i to i+1).
I would like to know what += means. if a=-1, += applied to a makes it change to -2 or to 0 ?


Here is an example:
a = 10;
a += 1;
(a==11);
a = 0;
a += -1;
(a==-1);
a = 5;
a += -3;
(a==2);

So a += b; is the same as writing a = a + b;, just a simpler syntax.
Go to the top of the page
 
+Quote Post
yordan
post Jan 2 2007, 03:54 PM
Post #13


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 2,242
Joined: 16-August 05
Member No.: 7,896
myCENTs:56.55



QUOTE(bluefish @ Dec 31 2006, 05:20 PM) *

Here is an example:
a = 10;
a += 1;
(a==11);
a = 0;
a += -1;
(a==-1);
a = 5;
a += -3;
(a==2);

So a += b; is the same as writing a = a + b;, just a simpler syntax.

OK, thanks for the reply. I learned something today, now I know what "+=" means.
Go to the top of the page
 
+Quote Post
Chesso
post Jan 2 2007, 11:53 PM
Post #14


Teh Coder
Group Icon

Group: Members
Posts: 1,053
Joined: 18-April 06
From: Australia
Member No.: 12,833
myCENTs:89.25



I actually didn't know what it meant either, but I don't think I have ever needed to use it, but then again Iv'e only seen it used rarely.
Go to the top of the page
 
+Quote Post
yordan
post Jan 3 2007, 10:17 AM
Post #15


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 2,242
Joined: 16-August 05
Member No.: 7,896
myCENTs:56.55



QUOTE(Chesso @ Jan 3 2007, 12:53 AM) *

I actually didn't know what it meant either, but I don't think I have ever needed to use it, but then again Iv'e only seen it used rarely.

rarely is already a lot. I never saw thins += thing until today, and I don't even mind seeing somebody using it. Nevertheless, from a philosophical point of view, knowledge is supposed to be a good thing, even for (probably) useless things laugh.gif
Go to the top of the page
 
+Quote Post
FoRsAkEn
post Jan 3 2007, 11:13 AM
Post #16


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 42
Joined: 2-January 07
Member No.: 19,036



Well, it was a great tutorial and i found it a very useful addition to my learning of programming. There were a few minor improvements in store, which SP Rao has stated for me.

All in all a good tutorial, and i await the next part with great anticipation smile.gif
Go to the top of the page
 
+Quote Post
matthewk
post Jun 8 2007, 06:18 AM
Post #17


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 47
Joined: 24-May 07
Member No.: 22,128



Wow, I hope these guides keep coming! There are a lot of differences for me for C compared to c++ and java. I like the syntax better in c++ and java, so the more guides I can read like this, the better off I am! Thanks a lot for your hard work smile.gif
Go to the top of the page
 
+Quote Post
Chesso
post Jun 8 2007, 06:23 AM
Post #18


Teh Coder
Group Icon

Group: Members
Posts: 1,053
Joined: 18-April 06
From: Australia
Member No.: 12,833
myCENTs:89.25



C and C++ aren't too different, C++ is more an upgrade to add Object Orientation to the mix.
Go to the top of the page
 
+Quote Post
vidit
post Jul 1 2007, 12:33 PM
Post #19


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 27
Joined: 1-July 07
Member No.: 23,058



Thankx for the second part man, glad to learn it. rolleyes.gif
I think i'm gonna learn a lot here.smile.gif
Go to the top of the page
 
+Quote Post
dani2810
post Aug 11 2007, 03:20 PM
Post #20


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 9
Joined: 11-August 07
Member No.: 23,990



Hey,

Long time no see, digital brother. <LOL
Wow I am just amazed at how much you guys are literate in computer programming languages. For me, it's HTML and I only know the basics. Well, it's kinda sad but I guess it can hold out for a little time being while I go try to learn PHP.

Can someone answer my question:

How can you benefit from being literate in C programming and C++?? What about C++ Visuals? Is that another programming language too?
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. [tutorial] Basics Of C Programming - Part 1(12)


 



- Lo-Fi Version Time is now: 5th December 2008 - 05:45 PM