Staredit Network

Staredit Network -> Miscellaneous -> C++ Help
Report, edit, etc...Posted by Toad on 2005-08-14 at 15:53:19
Okay this is for the people here that know how to program wink.gif (duh!)

Im learning C++ and I was tring to figure out how to display images onto the screen.
Is it a built in command or do I need to include a whole new library?

If anyone has any links to any C++ Resources lettme kno.

Thx for the help

-Toad-
Report, edit, etc...Posted by notnuclearrabbit on 2005-08-14 at 17:52:19
[center]Try cplusplus.com[/center]
Report, edit, etc...Posted by SacredElf on 2005-08-14 at 19:09:45
Web address editted. Never I have I seen that so blatently posted...SEN doesn't support hacking sites!

-Kame Da Sniper
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-14 at 19:44:03
[Link Baleted. PSYCHE! -Kame]

The site that Kame edited, blows compared to www.cplusplus.com

But to answer your question, yes.

But check out www.cplusplus.com

That will teach you everything you need.
Report, edit, etc...Posted by Kashmir on 2005-08-14 at 20:39:44
I myself am currently learning C++ too! hat compiler do you use? I use Visual C++ .NET and Dev-C++
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-14 at 21:45:34
Dev-C++ Is and IDE not a compiler it uses the g++ and gcc complier.
Best way to learn c++ is look at someone elses code.
Report, edit, etc...Posted by Toad on 2005-08-14 at 22:49:45
I use the borland compiler...Is there any better compilers that you would recommend?

I tried Bloodshed Dev C++ but it doesn't work as well for me sad.gif

Kellimus:

Yes I need a new library or Yes it is a built in command?
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-15 at 01:19:09
I think it's a build in library but i'm not sure.
Report, edit, etc...Posted by Rantent on 2005-08-15 at 04:17:39
QUOTE
hat compiler do you use?
Metroworks CodeWarrior! It does EVERYTHING!
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-15 at 15:09:03
Dev C++ is one of the best IDE I know. Make sure you use versions 4.9 or 5.0. It has refernces for Windows API as well open GL demo and of course the Stanard Templet libary.

Basic c++ program


#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{

cout<<"Hello World"<<endl;
system("PAUSE");
return 0;
}
Report, edit, etc...Posted by Kashmir on 2005-08-16 at 01:24:35
QUOTE
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{

cout<<"Hello World"<<endl;
system("PAUSE");
return 0;
}


ok first off, that can be made more basic.

CODE
#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World\n";
    system ("PAUSE");
    return 0;
}


OUTPUT: Hello World
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-16 at 01:38:37
Lol. Even more basic:

CODE
#include <iostream.h>
int main()
{
cout << "Hello world!\n\n";
return 0;
}


Output: Hello world!
Report, edit, etc...Posted by Rantent on 2005-08-16 at 02:05:24
You don't even need the \n\n. tongue.gif
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-16 at 14:18:09
But then you cant pass command line args.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-16 at 16:00:11
Um....... Okay?
Report, edit, etc...Posted by Syphon on 2005-08-17 at 03:41:33
what exactley is the percentage of prgrammers to non prgrammers here at SEN?
Report, edit, etc...Posted by ShadowBrood on 2005-08-17 at 03:53:54
Programmers: -19482%
Nonprogrammers: 4958430859q2879q60385638759685t78cxv7xdbzngkaw486yxb8yg87573e098idjoicjgn8ru59h%
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-17 at 08:54:21
QUOTE(ShadowBrood @ Aug 17 2005, 01:53 AM)
Nonprogrammers: 4958430859q2879q60385638759685t78cxv7xdbzngkaw486yxb8yg87573e098idjoicjgn8ru59h%
[right][snapback]290599[/snapback][/right]

Sorry thats not Valid Hex number or un signed int .
for hex in C++ remeber to use 0x
such as int a = 0xffff;
I would be glad to help anyone here with VB/Java/C++ Programming questions.
Report, edit, etc...Posted by Kashmir on 2005-08-21 at 15:44:41
actually i messed up with the \n\n, you only need one \n

you don't need it for the program to work, but otherwise the outcoem would be:
"Hello World!Press Enter to ESC."
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-21 at 22:30:20
You don't even need /n

You could use endl (End Line)

ADDITION:
You don't even need /n

You could use endl (End Line)
Report, edit, etc...Posted by O)FaRTy1billion on 2005-08-27 at 01:38:21
Uhhh.... Question for everyone who replied to this:
Why was it when I asked for help I got like... zero replies?
Next Page (1)