generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is C++ designed to be difficult to learn, or something?

Previous Thread :: Next Thread 
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
29 Jun 2012 02:11 PM
I'm having no luck at all. All I can make is simple stuff, and even then it is inefficient. It's like doing:

part.Position = part.Position + Vector3.new(0, 1, 0)
wait()
part.Position = part.Position + Vector3.new(0, 1, 0)
wait()
part.Position = part.Position + Vector3.new(0, 1, 0)
wait()
part.Position = part.Position + Vector3.new(0, 1, 0)
wait()
part.Position = part.Position + Vector3.new(0, 1, 0)
wait()
part.Position = part.Position + Vector3.new(0, 1, 0)


Instead of using a for loop.

Not only this, but 99.9% of online examples error for some reason that I cannot decipher. Only the script kiddie stuff works, but that being script kiddie stuff, why would I use it?

I know the majority of you here know C++ to a reasonable extend. How did you not kill yourself in the face of these issues?
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
29 Jun 2012 02:19 PM
You should spend your time learning the language rather than whining that you can do only simple inefficient stuff..

Start from cplusplus.com
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
29 Jun 2012 02:20 PM
Or you could use C? :D
Report Abuse
myrkos is not online. myrkos
Joined: 06 Sep 2010
Total Posts: 8072
29 Jun 2012 02:22 PM
@popin

we like to post-increment our C :D
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
29 Jun 2012 02:24 PM
@myrk

Then name it C++; just to make it a valid statement, pl0x. :3
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
29 Jun 2012 02:30 PM
I learned C++ by not learning it. I taught myself C# and Java first, and knowing the syntax of those helped me when going back to C++. There are a lot of difference between them, since C# and Java are far more heavily OOP based than C++ is, but it was still helpful and taught me some good coding techniques. I then went and learned some more advanced things about C++, like how to link libraries correctly (which was something I could not grasp when I first tried to learn C++ for some reason) or how to use many of the great features the standard library includes.
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
29 Jun 2012 02:33 PM
@Poke

Kind of how I learned a bit of C#: By not learning it. Google was my friend many times in that situation, but not so much now.
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
29 Jun 2012 02:45 PM
" Is C++ designed to be difficult to learn"

I would't think it would be harder because it's "C with classes" then C which you have to write all your classes yourself.
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
29 Jun 2012 02:46 PM
"then C which you have to write all your classes yourself."

unlike C which you have to write all of your classes yourself

Fail grammar.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
29 Jun 2012 02:47 PM
"Is C++ designed to be difficult to learn"

No languages are designed to be hard to learn, purposely.
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2012 03:38 PM
I watched about 100 youtube videos on it...

Just takes time.
Report Abuse
Multidimensional is not online. Multidimensional
Joined: 05 Apr 2012
Total Posts: 866
29 Jun 2012 03:41 PM
YouTube is a horrible resource to learn C++.
Report Abuse
eyeontheprizeREBOOT is not online. eyeontheprizeREBOOT
Joined: 30 Jan 2011
Total Posts: 1555
29 Jun 2012 03:44 PM
Err... this is inaccurate. You have to write all the classes yourself in C++. In C you just don't, because it doesn't have them.
Report Abuse
myrkos is not online. myrkos
Joined: 06 Sep 2010
Total Posts: 8072
29 Jun 2012 03:46 PM
@eyeontheprizeREBOOT,

I think he means C++ has OOP facilities built-in while in C you have to simulate them/implement them yourself.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
29 Jun 2012 03:54 PM
I'm not sure where you are having troubles, unless you mean you have actually tried to do what you described in your example.
Report Abuse
Multidimensional is not online. Multidimensional
Joined: 05 Apr 2012
Total Posts: 866
29 Jun 2012 03:56 PM
He's complaining because he has to type more.
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
29 Jun 2012 04:55 PM
Of course I didn't actually try that example, I'm just saying that I can't seem to find efficient ways of doing things.

References would be better than guides, tbh.
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
29 Jun 2012 04:58 PM
"References would be better than guides, tbh."

cplusplus.com is a reference to the standard definition of the C++ language and standard C++ libraries (though I'm not sure if it's updated to have reference for C++11 yet). Google search for the references for whatever libraries you use and you'll find them.
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
29 Jun 2012 06:29 PM
What I know in C++:

#include "iostream"
int var1 = 4;
int var2 = 5;
int main(){
std::cout << var1 + var2;
};

Yep.. that's just about, maybe, almost it.
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
29 Jun 2012 06:37 PM
"No languages are designed to be hard to learn, purposely."
Malbolge. 'Nuff said.

-Jode
Report Abuse
Varp is not online. Varp
Joined: 18 Nov 2009
Total Posts: 5333
29 Jun 2012 07:27 PM
No it is not. Instead of whining, why not post a problem you have with C++ and so we can actually help you.
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
30 Jun 2012 04:03 AM
There is a difference between whining and questioning the difficulty of learning this language in comparison to all others I have ever encountered.

I once asked for help, but was given a nil response in the basic form of "You have no idea how much coding would go into this".

Hence the question of difficulty.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
30 Jun 2012 04:14 AM
You must have been setting your expectations astonishingly high or coding exceptionally badly. Although C++ is difficult it's not as difficult as you are making it out to be. How about posting a problem you have so someone can help you instead of ranting about how you can't solve it?
Report Abuse
sncplay42 is not online. sncplay42
Joined: 27 Nov 2008
Total Posts: 11891
30 Jun 2012 09:14 AM
> would't think it would be harder because it's "C with classes" then C which you have to write all your classes yourself.

ow, my brain!
Report Abuse
Varp is not online. Varp
Joined: 18 Nov 2009
Total Posts: 5333
30 Jun 2012 10:03 AM
"There is a difference between whining and questioning the difficulty of learning this language in comparison to all others I have ever encountered."

Criticism is specific. It names what makes C++ hard to learn. The most specific thing you have is that online examples don't work, but I've never actually encountered that and it's not really the fault of the language. Not once in this thread do you point to any syntax of the language (okay, you give an example, but it's a hyperbole; if you write that instead of a for loop, it's really not C++'s fault). Even when I asked for specifics, you didn't give them.

If this were criticism, we could help remedy your problems with the language. We cannot based on what you gave us.

"I once asked for help, but was given a nil response in the basic form of "You have no idea how much coding would go into this"."

What was the question? I can't think of many questions that have an easy solution in other languages, but a complicated one in C++.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image