Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

C++ is difficult


ghost's Avatar
0 0

I just started a C++ class in school. It seems to be hard, mathematical, and a little boring. Will it get better?


ghost's Avatar
0 0

If you let it.


What_A_Legend's Avatar
...Legend?
0 0

It will get intresting if you enjoy programming. Just need to concentrate and you will pick it up and get making some call intresting apps, in your own time ones you do at school are always bad, we done LPG calculTORS :@


spyware's Avatar
Banned
0 0

No. C++ will always stay boring and difficult. Your compiler will never work when you need to code something real quick, if it works it will crash while saving/compiling your project. If you code in C++ you will die tomorrow.

Aliens will invade your country and abduct your family. Your computer will blow up while coding C++. If you have errors in your program and you compile it your harddisk will be reformatted. Your friends will hate you if you actually know how to code in C++.

After you coded something in C++ you find out that it could be done better/quicker in another language.

There is no point in learning it. Turn back, as you always do.

Move away, gently.


ghost's Avatar
0 0

(M)ASM is also hard. Reversing is also hard. Unpacking is also hard. Keygenning is also hard.

You need to learn more and you will love it.

spyware: hmm…long post, man :)


ghost's Avatar
0 0

That's hard as well. But since those people like what their doing and want to do it, they have done it. Without dying or cursing like a sailor

If you enjoy programming, then C++ should eventually get fun. If you hate programming, then C++ will be the worst thing in your life. :p


ghost's Avatar
0 0

<3 spyware

anyways, get a grip and just learn it if you want to or dont if you dont. is learning in generall easy? no. get over it.


ghost's Avatar
0 0

C++ will always stay bored and difficult

C++ is actually easy, once you grasp the concepts on OOP and Advanced Data Structures (Understand: Arrays & Pointers!!)

This is the best website on the matter, to my opinion, it actually gives you a visual map of what you are doing/learning:

http://www.cprogramming.com/tutorial.html

If you have any specific questions use Google, and then come to me for any specifics. Knowing C and JAVA, helps Significantly in knowing C++.

Once you know C++, other languages are SOO easy to pick up after wards.


mido's Avatar
Member
0 0

Spyware : Why all of that hate to C/C++?! Have you forgotten in which languages has UNIX/Windows been coded? C++ is one of the best programming languages (if not the best). What do you want him to code in? Visual shit?! Or HTML! C++ is the dominant language for game development, and the hardness is coming from C (the language which is C++ coming from) was coming from CPL language, which was deadly difficult, then developed to BCPL, etc etc…

C++ is regarded as a mid-level language, so it Covers low-level programming features, and high-level programming features. And C++ isn't that hard, ASM is death… Many people think that Assembly is more powerful than C/C++ because, its more near to the machine language, but that's not true. C++ includes the ease, OOP of high-level programming, and the "power" of low-level programming. In C++ you can "handle" your machine. OOP is the main feature for C++. Another thing, You can compile the same C++ code on any operating system. That made it more global, so then C++ is the most used and ported programming languages in the world. C is the core language of Unix. C++ is very closely related to C, but all of that doesn't mean that its easy. It's best, actually, to learn all five of Python, C/C++, Java, Perl, and LISP. Programming is a complex skill, don't think you'll learn it in 5 minutes.


ghost's Avatar
0 0

@mido: ASM is much more powerful that C++ and C. but the sort of thing people program in ASM are not the same as the desired effect from C++ programs. If you want to develop cybernetics ASM is the key. so :P


mido's Avatar
Member
0 0

So what?, here's a sample in ASM which multiply hight by width (without entering width/height, nor displaying results) :

; intel styled assembly code ; some code to display & enter the values ; … ; some code to calculate area mov eax,width mov ebx,height mult eax,ebx mov area,eax ; some code to display the result ; …

Assembly is very hard and primitive, so, using more higher level language would save a lot of hard work, so why then other programming languages were invented? And I would agree that Assembly is much faster than C++ (Thats because C++ use OOP, so, if you're trying to make a simple program, code it in C, better and easier). But C++ is very powerful, Linux / Windows XP wasn't written by ASM, unless who wrote it has been driven nuts!


ghost's Avatar
0 0

mido: asm is primitive and that's the thing that rules. It can make anything that c/c++ can. And I vote for asm because if you ever want to be good reverser, asm will be very important. (Especially in keygening).

C++ is good, but it still has to be compiled and it is very much different syntax than in asm.

(masm also has to be compiled, but that compiling is piece of cake and it doesn't change anything. Just calls to API.)

And VB6ay? 15 kb's for simple damn msgbox. That shit is shit. (I am not very proud for my knowing of vb)

I am sure you will see some of my apps I made. Sometimes I had to make inline patching on a vb program and make it better. Just because vb is bloated bitch.

Gah man, fuck it. ASM rulez!

edit: mido… erm.. nuts? Dude, some parts of windows were made in asm. And once you get going, asm becomes easy too. And when you learn asm, you can do whatever you want.

btw, your scrap code is pretty much wrong. It should be even more primitive :)


mido's Avatar
Member
0 0

Yes. Assembly is the nearest to machine language, and…Hey, what does a compiler do? it just converts the language (source code) to assembly and in turn its converted to machine language which a computer can understand (which also is VERY, and yeah very-hard to understand by human). Since its converted to assembly, then anything can be done with Assembly, but its very hard, and if you are going to write a program and need OOP, I'm deadly sure, you won't use Assembly, at least, won't write the whole program with it, if you wan to make a "class" in Assembly, it will take many and many lines, unlike more higer-level language, and everyone knows that low-level languages are :

  1. More powerful.
  2. Very hard.
  3. Won't be a good choice for OOP at all.

and knows too that high-level languages are :

  1. Much easier.
  2. Less lines written.
  3. Some languages covers OOP.
  4. Flexible.

So, I myself would rather use C++ within huge applications, than use assembly, despite its power.


ghost's Avatar
0 0

mido wrote: Yes. Assembly is the nearest to machine language, and…Hey, what does a compiler do? it just converts the language (source code) to assembly and in turn its converted to machine language which a computer can understand (which also is VERY, and yeah very-hard to understand by human). Since its converted to assembly, then anything can be done with Assembly, but its very hard, and if you are going to write a program and need OOP, I'm deadly sure, you won't use Assembly, at least, won't write the whole program with it, if you wan to make a "class" in Assembly, it will take many and many lines, unlike more higer-level language, and everyone knows that low-level languages are :

  1. More powerful.
  2. Very hard.
  3. Won't be a good choice for OOP at all.

and knows too that high-level languages are :

  1. Much easier.
  2. Less lines written.
  3. Some languages covers OOP.
  4. Flexible.

So, I myself would rather use C++ within huge applications, than use of assembly, despite its power.

You would use c++ because you thought asm will be a bit easier and when you started learning it, you gave up. Right?

You can't say that c++ is more powerfull if you can't code in asm.


What_A_Legend's Avatar
...Legend?
0 0

This thread was not started for a discussion about your favourate program launguages and Kaski was there any need to quote all what mido said could of just said In refrence to last comment … .

Would of saved a lot of space.


ghost's Avatar
0 0

What_A_Legend wrote: This thread was not started for a discussion about your favourate program launguages and Kaski was there any need to quote all what mido said could of just said In refrence to last comment … .

Would of saved a lot of space.

hmm, just a question. Did I say something wrong? :whoa:


What_A_Legend's Avatar
...Legend?
0 0

Nope not at all just dont see why you quoted such a large amount of text when theres better ways going bout it, and I jus wanted to bring the discussion back to the reason why the thread was started.

Dont get me wrong, I respect you man your quite talented.


ghost's Avatar
0 0

im actually learning alot as you guys are having this conversation i too am taking c++ / .NET and Java / Javascript this year hope its fun tell me more about c++ and all the languages mentioned i really enjoying this thread


ghost's Avatar
0 0

What_A_Legend wrote: Nope not at all just dont see why you quoted such a large amount of text when theres better ways going bout it, and I jus wanted to bring the discussion back to the reason why the thread was started.

Dont get me wrong, I respect you man your quite talented.

Thanks dude for compliment. You too :)

Well, I think we helped the dude that made the thread. (with the first few reply's)

But when it comes to reversing, I get little…


mido's Avatar
Member
0 0

Thanks for you both, its my fault, the post was long, lol. And for Rever, I dunno is it your choice, or not? If it is your choice, learn How web works, first, then involve to dynamic languages, then learn python as a beginning, LISP, Perl, PHP, (PHP kinda = C (contains same lib)). If its not your choice, go on with C++, you will find your way is clear… Thanks for you all, and hope that you may find helpful :) Cheers…


ghost's Avatar
0 0

mido wrote: Thanks for you both, its my fault, the post was long, lol. And for Rever, I dunno is it your choice, or not? If it is your choice, learn How web works, first, then involve to dynamic languages, then learn python as a beginning, LISP, Perl, PHP, (PHP kinda = C (contains same lib)). If its not your choice, go on with C++, you will find your way is clear… Thanks for you all, and hope that you may find helpful :) Cheers… oook so since php is similar to c and i know php c is going to be easy so it goes something like this ;) <?php

$c = "programming language based on c";

$php = "programming language interpreted by c";

$c = $php;

$i_know = $php;

echo "I should know". $php;

// i don't even know if the last line would work lol

?> [edit] i will make a thread for this disscusion lol [/edit]


ghost's Avatar
0 0

Thanks for the people who gave answers. Don't care if you go offtopic that much, doesn't really bother me. For the people who were assholes, no comment.

I've been taking the class for a few weeks, but we just started actual coding - sorta. The past weeks we've been doing truth tables. Then my teacher whips out 100 definitions and codes and i'm just like WTF. Doesn't help that the hole class is a little bit on the nerdy side, so I'm like the only guy who doesn't understand.

I have taken a HTML class and loved it, but C++ does seem a lot different - not that I was expecting them to be the same or anything.


ghost's Avatar
0 0

I like C++ and have around 3 books on it and have tried understanding it so far. It's hard for me to understand completely at the moment but am trying to learn it. But there are only 3 things pulling me down at the moment. 1) It's kinda hard to read a C++ book when all the kids in my class are annoying the hell out of me asking what I'm reading, 2) I'm only 13 and this is my first programming language (For applications though. I know most of web design languages already). and 3) In 8th grade at my school there is nothing close to classes for C++ or at most any programming language. The closest I can even get to a computer is in typing/technology class. I really wish they would have classes like that so I can learn more because I definitely want to, I just can't. I think C++ is easier than ASM (that's obvious). I need some help grasping how pointer's work and passing functions by reference (kind of confusing). If anyone wants to help me and teach me how those two things work that would be really awesome. It would help me out so much.

-Kirk


spyware's Avatar
Banned
0 0

SARCASM PEOPLE, IT WAS SARCASM.

That you guys didn't see that still puzzles me.


mido's Avatar
Member
0 0

At kirk_halo1994 : Thats good, but don't "overthink", or else you will hate coding, and will see that its boring, maybe python is good to start. Then learn Java, or C/C++, or even Java, then C/C++.