Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C++ help

Featured Replies

hi

 

 

 

Im trying to learn c++ and im finding it very hard, so can anyone recocomend a book or online tutorial

 

 

 

This is my second language as i all ready know Visual Basic so please dont tell me to try and learn an easier language

 

 

 

many thanks

 

 

 

p.s i have visual c++ 2005 edition

Visual C++ = Crap

 

 

 

I suggest you learn C. Either way, C++ or C use Gnu tools such as GCC and G++.

 

 

 

Try Wikipedia's wikibooks ..

I said, Visual C++ the IDE/Compiler sucks.

 

 

 

Anyways, I prefer C over C++. Closer to the machine, you can use inline assembly, etc. C++ isn't any more powerful than C.. it's just a implementation to make things easier than C.

  • Author
Visual C++ = Crap

 

 

 

I suggest you learn C. Either way, C++ or C use Gnu tools such as GCC and G++.

 

 

 

Try Wikipedia's wikibooks ..

 

 

 

Why is C++ so crap???

 

 

 

Is it because you do not understand how to script in object orientated programming languages? To be honest, C++ is one of the best, if not the best, type of programming language to use (coming from an avid Java programmer!), just because how powerfull it is. Also, C++ is the upgrade to C so it shows that it should be better then C!

 

 

 

i said that i already know visual basic i want to know the name of a good tutorial

The way I learned C is by associating everything in C with stuff I knew in VB. Example:

 

 

 

For i = 0 to 5

  'code

next i

 

 

 

is equivalent to

 

 

 

for(int i = 0; i < 5; i++)

{

   //code

}

 

 

 

in C++ or a C99 compliant C compiler.

 

 

 

When it comes to tutorials, all I can suggest is http://invisionfree.com/forum/cpplearningcommunity for help with C++ later on

  • Author

thanks alot!

If i was you, i would learn c# as well, companys are starting to convert to c# now, instead of c++.

yourmysin.jpeg

Current Goals

80/80 Fletching

60/75 Woodcutting

97/100 Combat

Can you tell me a corperation that uses java for their main programming?

yourmysin.jpeg

Current Goals

80/80 Fletching

60/75 Woodcutting

97/100 Combat

Can you tell me a corperation that uses java for their main programming?
All of Jagex's stuff is java. :-s

Lol, should have been more specific, i didnt really think abouit that fact lol. But my point is, not many companys do use java, because it is, well, slow.

yourmysin.jpeg

Current Goals

80/80 Fletching

60/75 Woodcutting

97/100 Combat

C# is slow, nasty, lame.

 

 

 

Java will never match C++ in speed?

 

Why, because it's interpreted.

 

 

 

Why is it portable?

 

Any computer that can run a Java Virtual Machine can interpret .class files which are the medial form of a Java binary file (Between Source and Binary.)

 

This makes them slow. The only decent solution is using GCJ to compile Java straight into binaries. GCJ usually requires modification to the Java file's source code and must be on a GNU system.

 

 

 

Why do many companies not use it?

 

You can use a Java Decompiler such as JAD to decompile the .class files into source code. You can use a byte code editor to edit it in .class form. Even if obfuscated it's very possible to deobfuscate it and then decompile it.

 

 

 

IBM makes an excellent JVM, don't compare Java and any decent languages like C. =D>

I hope your not trying to make a runescape cheating program :shame:

  • Author
I hope your not trying to make a runescape cheating program :shame:

 

 

 

lol ive got better things to do than that and i hate cheaters. Some of my visual basic projects have been a scientific calculator some things to help me with my maths at school and my most recent is an encrypter/decrypter.

 

 

 

i just want to move onto c++ as ive heard its alot more powerful

:shock: Oh god, this all gives me a head ach... all i know is VB, and that can even get confusing sometimes... matters if i make my code all screwed up.

mergedliongr0xe9.gif

Sig by Ikurai

Your Guide to Posting! Behave or I will send my Moose mounted Beaver launchers at you!

I said, Visual C++ the IDE/Compiler sucks.

 

The Visual C++ IDE/Compiler is the most commonly used tool for professional development for Windows. MFC/ATL, Developer Studio Macros, MSDN Library.... All the things that make professional development much easier than if you were using Dev-C++... Dev-C++ is used for minimal hobbyist development. Visual C++ is used for professional/industry-standard application development.

 

 

 

As for Borland C++... whats the point when you have to distribute those huge runtime libraries just so people can run your programs?

 

 

 

Thats why I think VC++ is the best IDE/Compiler out there...

I hope your not trying to make a runescape cheating program :shame:

 

 

 

Making a runescape cheating program like a macroer or whatever in C would be HARD. Delphi is common. I know someone who used to help make these programs.

 

 

 

But anyway.

 

 

 

Learning VB was a bad idea. Never start programming in VB, ever. Its ok to learn VB after learning something else, but not as a first language. But I spose its a bit late now.

 

 

 

And dont use Visual C either. Microsoft languages suck loads, and they're Microsoft only, so they wont work on any platform.

 

 

 

For newbies, Python or Perl are good. After that, C is good, and after that, Java. I found java horribly complicated even with a simple Hello World program.

 

 

 

I would personally recommend you learn Perl, then C or C++. C is more powerful, but C++ is easier (only marginally, though).

 

 

 

PHP is good as a first language. Its not technically a programming language, but it has a nice C-like Syntax that will get you used to good programming. VB is not a nice language. Its completely different to everything else, and therefore moving to another language is different.

 

 

 

Here's a few code examples to show you some of the Syntaxes of two of the langauges i have mentioned. This is the 99 bottles of beer on the wall program. It outputs the entire 99 bottles of beer on the wall song, all the way from 99 to 0. I did study python for a while, but I forgot half of it :S

 

 

 

(For those who know what you're talking about, yes, i know i could use for loops, but i hate them. I prefer do-while loops.)

 

 

 

PHP

 

<?php



$bottles = 99;



while (bottles > 0)

{

echo $bottles . ' bottles of beer on the wall, ' . $bottles . ' of beer. Take one down, pass it around, ';



$bottles -= 1;



echo $bottles . ' of beer on the wall.
';

}



echo 'No more bottles of beer on the wall!';



?>

 

 

 

C++

 

#include 



void main(void)

{



int bottles = 99;



do {

cout << bottles << ' bottles of beer on the wall, ' << bottles << ' bottles of beer. Take one down, pass it round, ';



bottles -= 1;



cout << bottles << ' of beer on the wall.\n';



} while (bottles > 0);



cout << 'No more bottles of beer on the wall!';



return 0;



}

 

 

 

Python

 

#!/usr/bin/python



bottles = int(99)



while bottles > 99:

    print str(bottles) +  ' bottles of beer on the wall, ' + str(bottles) + ' bottles of beer, take one down, pass it around, '

    bottles -= 1;

    print str(bottles) + ' of beer on the wall\n'



print 'No more bottles of beer on the wall!'

 

 

 

Theres some examples for you. I personally hate the syntax of Python. I do like curly brackets and semicolons rather than tabs and linebreaks, but some people like the syntax.

 

 

 

I would recommend that you learn Python first. I imagine you probably like the syntax more just from my example because it does bear some similarities with VB, but also many similarities with C, and it was designed to be easy, too. As well as that, Python can be used for web scripting. Thinkgeek.com's shopping cart uses Python scripting.

 

 

 

I hope this helps.

tipitsig2gn.gif

Although very outdated I won some awards back in the day for my tutorials - You can view these by clicking the following link. http://pscode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?txtCriteria=michael+skelton&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&lngWId=3&B1=Quick+Search&optSort=Alphabetical

 

 

 

Personally, I'd learn Objective C (and this is coming from a full time programmer)...

codbar.jpg

4wmbar.jpg

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.