View Full Version: hi

C++ Learning Community > Off Topic > hi


Title: hi
Description: New here


kccc - November 21, 2006 10:04 PM (GMT)
Hi, I'm new here. I have experiance in Java, JavaScript, HTML, CSS, minimal C/C++. I have come here to get help on my programs and to learn various tricks that a text book wouldn't include.

C-Man - November 22, 2006 06:04 AM (GMT)
first trick
CODE

a ^=  b ^= a ^= b;

Viper - November 25, 2006 10:28 AM (GMT)
I bet you just confused him with that, you evil man. xD.

kccc - November 25, 2006 01:15 PM (GMT)
yes, very evil :(

C-Man - November 25, 2006 02:24 PM (GMT)
mwahahaha *evil laughter*

Zaqufant - November 26, 2006 12:34 PM (GMT)
Dude, why didn't you learn c++ first? C++ is the best!!! WOOOOOOOOO HOOOOOOO!!!

kccc - November 26, 2006 08:42 PM (GMT)
lol i don't know, I decided that I wanted to make sites(which never happened). I then decided to learn a programming and Java was what i had in mind.

Zaqufant - November 29, 2006 02:49 AM (GMT)
i see.

Ravotus - November 29, 2006 03:18 AM (GMT)
C++ isn't a good first language because its learning curve is kinda steep. :)

kccc - November 29, 2006 08:53 PM (GMT)
yep, i bet i would have had no usderstanding of classes unless i did java first.

Zaqufant - December 4, 2006 11:25 PM (GMT)
Just wondering, but why does everyone have to say hello once they start a new account in cpplc? I never did. Just wondering.

C00L - December 4, 2006 11:29 PM (GMT)
QUOTE (Ravotus @ Nov 28 2006, 10:18 PM)
C++ isn't a good first language because its learning curve is kinda steep. :)

I'd have to disagree. I think because of the learning curve you are forced to learn better practices and become a better programmer, and won't start getting used to using bad coding practices.

Much better than starting in BASIC or GML I say :)

Ravotus - December 5, 2006 03:29 AM (GMT)
You have a point, but if you're unfamiliar to the basic practices/ideas of programming it can be very hard to understand more complex parts that get thrown at you early (e.g. classes).

Zaqufant - December 5, 2006 12:39 PM (GMT)
So you need to just get urself familear with the lanuage earlier on then.

UMTopSpinC7 - December 6, 2006 10:20 PM (GMT)
I think learning C / C++ first was good because it forced me to understand some of the functionality that Java implements for you. A lot of people do things in Java and don't really understand whats going on. The learning curve isn't as steep for Java but I'm not sure that's a good thing.

Zaqufant - December 6, 2006 11:38 PM (GMT)
Well, I learned a form of basic that used some of basic C syntax. That gave me a firm platform for learning C++. It gave me the programming basics. So that's what i did.

Nose - December 22, 2006 06:08 AM (GMT)
C++ is awesome


sorry, im new here

AquaFox - January 17, 2007 06:24 PM (GMT)
QUOTE (Ravotus @ Nov 29 2006, 03:18 AM)
C++ isn't a good first language because its learning curve is kinda steep. :)

It wasn't steep to me.

dr voodoo - January 17, 2007 10:36 PM (GMT)
QUOTE (Ravotus @ Nov 29 2006, 03:18 AM)
C++ isn't a good first language because its learning curve is kinda steep. :)

The main reason for this is in my eyes the absence of a good introduction.

Often the difficulty of learning a particular language is estimated based upon the features for which the languages provides syntax support. Other things you need are regarded as programming technique and thus aren't counted. Using this method C++ gets bad marks as it has support for many things not strictly necessary.

You can say that you can program in C++ and just know about 1/4 of the language and 1/50 of all possible techniques. This is strictly not possible for for example GML.

Another language with similar properties is in my eyes Javascript. With the only exception that most people only know a fraction of what is possible and don't know that the is more to know. Who knows what the following code does:
CODE
function fib() {
 var i = 0, j = 1;
 while (true) {
   yield i;
   [i, j] = [j, i + j];
 }
}

var g = fib();
for (let i = 0; i < 10; i++)
 print(g.next());

Zaqufant - January 17, 2007 10:46 PM (GMT)
I don't know, but voodoo is right. The reason C++ is hard for most people to learn is because it takes a good intro duction for it to concreate the idea of C++ in a learners mind. If they can get the fact that all programs need a main function, braces are used for code blocks, if, swicth, else, while, etc. If they can find a good introduction to C++, they should be set to go.

Shonoby - January 18, 2007 02:29 AM (GMT)
Ok what i think the program does is have a type of shadowing effect like so:
QUOTE

ii

But i am not sure if this is right because i have no experience in Java nor Java scripting.
Not to include the fact that i dont know the difference...
But i think the code does as shown because from my prior knowledge of programming, but then this is Java. Which from what little knowledge i know of it has objects that have codes inside of them, almost like functions, but more as a object in an object.The [ i, j ] is probably the x, y coordinate in a plane. From what i know about programming with x,y,z coordinate. Then the 'print(g.next());' is what prints the small i ( but it is not really small but is just to show that it almost as a twilight effect ).
I have to agree with Voodo about a person's ignorance on the language they know. For example i tell ppl i know how to program with C++ which i do but i dont know all the aspects of it. For example i dont know if C++ can use a graphic interface system similar to GUI or something.
Unlike Voodo, it seems he bases some of his theory on his type of 'eyes' as weird as that sounds my theory are more difficult to understand. For the reason that i have a mentality that most people think is genus but then again also crazy. I base my theories on a person ability to 'think', i am not talking about thinking like what is 2 + 2? But more of 'Philosophies' based on scientific studies and objective thinking which is where my idealism of learning a language comes in.
My first language is C++ and i have understood it quite easily, because i have alot of experince in OBJECTIVE thinking ( an example of what i mean can be found here ). So that is what i think, that it is not how hard the language is but it is how u think of the language.

[Edit]
Ohh and i think that the variable g = the function fib ( at a second look ) so what it does is make the character object move 9 spaces ( because 'g.next()' ). But this is only me thinking of this objectively. Even though i dont know any Java script || Java. So really i am making a 'objective guess' based on the code and a little prior knowledge of Java.

C-Man - January 18, 2007 08:20 AM (GMT)
prints (throo an actual printer) elements 0 trough 9 of the fibonacci sequance

Zaqufant - January 18, 2007 10:36 PM (GMT)
C-man, ur just too smart.

Shonoby - January 18, 2007 11:02 PM (GMT)
Damn, i was really off LOL, i will be better someday...i guess better than Voodo....

C-Man - January 18, 2007 11:24 PM (GMT)
check out what's new on JavaScript 1.7 in mozilla dev wiki
http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7

Shonoby - January 19, 2007 01:29 AM (GMT)
Sweet, something new yea




Hosted for free by InvisionFree