• Welcome to Valhalla Legends Archive.
 

plz help wit c++, new to this!

Started by neoxgold, January 02, 2004, 10:01 PM

Previous topic - Next topic

neoxgold

hi, i was introduced to c++ by grok, because he said i was still young to learn vb... so can sum 1 here explain c++ to me in a way i can understand it?
thx! :)

Spht

Quote from: neoxgold on January 02, 2004, 10:01 PM
hi, i was introduced to c++ by grok, because he said i was still young to learn vb... so can sum 1 here explain c++ to me in a way i can understand it?
thx! :)

Start with C.

neoxgold

ok..... than can sum 1 here explain c to me, in a simple way? the introduction of c..

iago

#3
play with this:

#include <stdio.h>
int main()
{
   printf("This is a test!\m");
   for(int i = 0; i < 10; i++)
   {
       printf("i = %d\n", i);
   }
   return 0;
}

If you don't have a compiler, get one from www.bloodshed.net
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


MoNksBaNe_Agahnim

I don't think you need to know C before C++...although i guess it could depend on the person's age.

C++ is a language that can do anything you need...best way i can describe it haha

iago

C and C++ have some limitations.  Basically, some things, while they can all be done, take a lot of effort to do.  Just as an example, RMI in Java same TONS of trouble in C++ :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Kp

Quote from: iago on January 03, 2004, 07:16 AM
C and C++ have some limitations.  Basically, some things, while they can all be done, take a lot of effort to do.  Just as an example, RMI in Java same TONS of trouble in C++ :)

RMI = Remote Method Invocation?  If so, sounds much like RPC, which has been pretty easy to set up under Unix C implementations for a while, with the aid of rpcgen.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Skywing

I think that would be fairly easy under Win32 if you knew ATL and C++.

iago

There's other things too.  Mostly because they have a huge collection of classes to do pretty much everything from downloading websites to calling remote methods, etc.  I'm sure it can be done in C++, but I'm not sure that anybody has.  
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Skywing

Quote from: iago on January 03, 2004, 12:24 PM
There's other things too.  Mostly because they have a huge collection of classes to do pretty much everything from downloading websites to calling remote methods, etc.  I'm sure it can be done in C++, but I'm not sure that anybody has.  
There are plenty of libraries to do that from C/C++ on just about every major platform - for instance WinInet or WinHTTP for Win32.

Grok

Quote from: iago on January 03, 2004, 12:24 PM
There's other things too.  Mostly because they have a huge collection of classes to do pretty much everything from downloading websites to calling remote methods, etc.  I'm sure it can be done in C++, but I'm not sure that anybody has.  

Not being sure that anybody has is a far cry from nobody has done.

What I try to make clear to my managers at work is the answer is always "yes".  Whatever business problem we could possibly come up with at our little company (< 500 employees), has been met and conquered at hundreds or thousands of companies around the world.

Same thing here, C++ is in such widespread use that just about every possible useful and popularly needed library has been written dozens of times.

neoxgold

how come when i compile my c project, and run it. it would pop up for like 1 sec and dissapear? :-\

iago

It's closing when it's finished.

At the top,
#include <stdlib.h>

Before your main function's return:
system("pause");

that's the easiest way.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


imablackhat

Yeah I'm new to C++ too, I used to program in Visual Basic 6.0. Which I don't consider programming since its so basic and simple. I don't have a windows C++ compiler, so I use linux gentoo's G++ compiler. Can anyone point out some good tutorial/source code learning websites for this? Thanks.  :P

MrRaza

easiest think to do is search google or read a book.