Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++
Author Message
Milk2Go Offline
Fanatic

Posts: 2,430
Joined: Dec 2007
Thanks: 0
Given 38 thank(s) in 29 post(s)
Post: #1
C++

#include <iostream>
using namespace std;

int main ()
{
cout << "In this topic we talk in C++.";
return 0;
}
08-04-2008 02:52 AM
Find all posts by this user Quote this message in a reply
liq3 Offline
Fanatic

Posts: 2,240
Joined: Mar 2007
Thanks: 0
Given 21 thank(s) in 16 post(s)
Post: #2
Re: C++

Code:
#include <cstdio>

int main(int argc, char** argv)
{
    printf("Ok, but you should really use [%s] tags.", "code");

    while(threadActive == true) {
        if (question == true) {
            answer_question();
        }
    }
    
    return 0;
}

Epic win book.
Personal Development for Smart People.
08-04-2008 03:07 AM
Find all posts by this user Quote this message in a reply
LOON_ATTIC Offline
A NERD

Posts: 5,158
Joined: May 2009
Thanks: 9
Given 60 thank(s) in 49 post(s)
Post: #3
Re: C++

Code:
// This may even compile and run correctly.
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;


int main()
{
    char lol[5]="VIM"
    for(i=1; i<10; i++)
    {
        cout << "Wha up!";
    }
    cout << "I'm learning " << lol;
    lol = "code"
    printf("I %s about the %s tags", "agree", lol);
    system("pause")
    return 0;
}

[Image: glorious666.png]
05-21-2009 09:37 AM
Find all posts by this user Quote this message in a reply
the_ryan Offline
Renegade

Posts: 66
Joined: Aug 2009
Thanks: 0
Given 0 thank(s) in 0 post(s)
Post: #4
Re: C++

wtf why are you typing in code? isnt that a litle to confusing?

this forum cant tale a joke
08-24-2009 08:30 PM
Find all posts by this user Quote this message in a reply
random_name Offline
Fanatic

Posts: 7,744
Joined: May 2008
Thanks: 0
Given 15 thank(s) in 15 post(s)
Post: #5
Re: C++

God, im such a n00b.

the_ryan Wrote:wtf why are you typing in code? isnt that a litle to confusing?

I used to type worse than this on here xD

Hidden stuff:
"A 'no' uttered from deepest conviction is better and greater than a 'yes' merely uttered to please, or what is worse, to avoid trouble." - Mahatma Gandhi

"The irrationality of a thing is no argument against its existence, rather a condition of it."

"Beer is proof that God loves us and wants us to be happy."
-Ben Franklin

"when I was a kid I used to pray for a bicycle. then I realized that god doesn't work that way. so I stole one and prayed for forgiveness."
"I would rather die for something I believe in than live for anything else."
"What is the task of higher education? To make a man into a machine. What are the means employed? He is taught how to suffer being bored." – F W Nietzsche
[Image: s-event.png]
08-24-2009 10:14 PM
Find all posts by this user Quote this message in a reply
Sociopath Offline
©o℗yright Infringe®

Posts: 3,692
Joined: Mar 2008
Thanks: 679
Given 160 thank(s) in 104 post(s)
Post: #6
Re: C++

HOW DO I SPEAK C++?

TEACH ME, OH WISE ONES...

Hidden stuff:
TRIGGER WARNING: THIS TRIGGER WARNING CONTAINS TRIGGER WARNINGS!

Dear Tumblrites: Despite your wrongly self-diagnosed PTSD, no line of scientific evidence suggests people can be triggered over the internet. Triggering works through the senses (i.e. smell, taste, touch, vision, hearing.) but it goes through real time; if you're not experiencing it in real life as it's ACTUALLY HAPPENING in your ACTUAL life, you CANNOT be triggered. The only exception to this is if you have a seizure, but then again, that's triggered by epilepsy (i.e. rapidly-changing flashing lights) NOT PTSD. Remembering a bad incident is NOT the same thing as having a flashback. When you remember, you think; when you flashback, you feel.

#HashTagsAreForIdiots

[Image: violator_blackbg_110x32.gif]
Max Stirnir Wrote:"In the time of spirits thoughts grew till they overtopped my head, whose offspring they yet were; they hovered about me and convulsed me like fever-phantasies -- an awful power. The thoughts had become corporeal on their own account, were ghosts, e. g. God, Emperor, Pope, Fatherland, etc. If I destroy their corporeity, then I take them back into mine, and say: "I alone am corporeal." And now I take the world as what it is to me, as mine, as my property; I refer all to myself." The Ego and Its Own, pg. 15
Charles Manson Wrote:“Look down at me and you see a fool;
look up at me and you see a god;
look straight at me and you see yourself”
HeartofShadows Wrote:"Life is nothing more than a druggie trying to get their quick fix of happiness while dealing with the harsh withdrawal of reality"
Osip Mandelstam Wrote:"I divide all of world literature into authorized and unauthorized works. The former are all trash; the latter--stolen air. I want to spit in the face of every writer who first obtains permission and then writes." The Fourth Prose, 1930.
Lukas Foss Wrote:That is why the analogy of stealing does not work. With a thief, we want to know how much money he stole, and from whom. With the artist it is not how much he took and from whom, but what he did with it.
PIRATE Pirate2 MEMBER
 Pirate Join the crew!Pirate
08-24-2009 11:27 PM
Find all posts by this user Quote this message in a reply
 Thanks given by: Rule_BreakerXVIII
Liquid Offline
poison - do not drink

Posts: 1,050
Joined: Aug 2007
Thanks: 0
Given 2 thank(s) in 2 post(s)
Post: #7
Re: C++

Code:
#include <iostream.h>
using namespace std;

int main ()
{
int i = 0 ;
while ( i !=13 )
{
cout << "Infinity is good for you" << endl;
}
return 0 ;
}

Code:
/*==================================================================

@ TrueAnarchist:

Learning C++ is easy,

Start by downloading an IDE & a compiler.
Ex -------> http://www.microsoft.com/express/product/default.aspx

The tradition for C++ is to do a "Hello, World!" first, before you do anything else.
Ex -------> http://www.engin.umd.umich.edu/CIS/course.des/cis400/cpp/hworld.html

After that just look at some tutorials for awhile.
Ex -------> http://www.intap.net/~drw/cpp/
Ex -------> http://www.cplusplus.com/doc/tutorial/

Once you have a basic understanding of the flow of it, try making a Tic Tac Toe app or something, you won't know enough to finish it or make it look nice, but whenever you need to do something that you don't know, google how to do it and your programming skills will grow.

==================================================================*/

//

[Image: techhoops5.jpg]
09-01-2009 03:06 AM
Find all posts by this user Quote this message in a reply
maxh Offline
Revolutionary

Posts: 364
Joined: Jul 2008
Thanks: 0
Given 1 thank(s) in 1 post(s)
Post: #8
Re: C++

print "Python is easier, faggots"

Carla Franklin has never denied that on the afternoon of the third of August 2006 she raped and killed sixteen children celebrating their friend's fifth birthday and forced their parents to share a dinner of their remains.


If a teacher you don't know tries to bust you for something, just tell them "Jsem výměnný student, nemluvím anglicky. Tak jdi do prdele ty posranej hajzle, tvoje matka je kurva!", then send me money.
09-01-2009 09:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
LOON_ATTIC Offline
A NERD

Posts: 5,158
Joined: May 2009
Thanks: 9
Given 60 thank(s) in 49 post(s)
Post: #9
Re: C++

#include <iostream>
using namespace std; int main () { cout << "but it is slower, and you can't really compile code."; }

[Image: glorious666.png]
10-15-2009 12:29 PM
Find all posts by this user Quote this message in a reply
Amortisatie Offline
Fanatic

Posts: 2,181
Joined: Feb 2009
Thanks: 0
Given 18 thank(s) in 16 post(s)
Post: #10
Re: C++

I swear this is Russian to me...

Mah style

Code:
<body>
<table border=0 width=100%>

<tr colspan=2>
<th>Oh look a table

<tr>
<td width=40%><font size=7>LEIK OMG I LOVE THE SIMPLICITY</font>
<td width=60%><IMG SRC="in-yo-face.gif">

</table>
</body>

Heh Im a code noob

[Image: spooky-1.jpg]

“The good thing about science is that it's true whether or not you believe in it.”
― Neil deGrasse Tyson
10-15-2009 12:47 PM
Find all posts by this user Quote this message in a reply
AWOL Offline
The Spooning Bard

Posts: 8,487
Joined: Mar 2008
Thanks: 0
Given 36 thank(s) in 34 post(s)
Post: #11
Re: C++

HTML is a really basic language, I'd suggest learning something a bit more advanced.

EDIT: FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK!!! I installed C++ and I got a bunch of folders with 'ASP.TLB' in it. Fucking hell, damn you Microsoft!

[Image: 9be30a7.png]
[Image: LyingFloraBanner.jpg]
10-20-2009 04:19 PM
Find all posts by this user Quote this message in a reply
Chrisuru Offline
Revolutionary

Posts: 128
Joined: Mar 2008
Thanks: 0
Given 0 thank(s) in 0 post(s)
Post: #12
Re: C++

*Mind Crushed* My extent of computer knowledge consists entirely of:

<html>
<body>
<p>I suck.</p>
</body>
</html>
10-21-2009 04:34 AM
Find all posts by this user Quote this message in a reply
Liquid Offline
poison - do not drink

Posts: 1,050
Joined: Aug 2007
Thanks: 0
Given 2 thank(s) in 2 post(s)
Post: #13
Re: C++

AWOL Wrote:HTML is a really basic language, I'd suggest learning something a bit more advanced.

EDIT: FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK!!! I installed C++ and I got a bunch of folders with 'ASP.TLB' in it. Fucking hell, damn you Microsoft!

Visual C++? Which version of Visual Studio was it, and what edition of Windows are you using on that computer?

Installing VS.NET on anything lower than XP SP2 will screw things up :(

//

[Image: techhoops5.jpg]
10-21-2009 07:58 AM
Find all posts by this user Quote this message in a reply
AWOL Offline
The Spooning Bard

Posts: 8,487
Joined: Mar 2008
Thanks: 0
Given 36 thank(s) in 34 post(s)
Post: #14
Re: C++

This version on MS Vista Home Basic.

[Image: 9be30a7.png]
[Image: LyingFloraBanner.jpg]
10-21-2009 10:42 PM
Find all posts by this user Quote this message in a reply
Liquid Offline
poison - do not drink

Posts: 1,050
Joined: Aug 2007
Thanks: 0
Given 2 thank(s) in 2 post(s)
Post: #15
Re: C++

AWOL Wrote:This version on MS Vista Home Basic.

Hmmm...

It's supposed to work for that... I have that same version installed on one of my laptops that runs Vista..

I really don't know, maybe check the control panel and try to uninstall it if it shows up on the add/remove programs list, maybe try running the installation again?......

Shrug

//

[Image: techhoops5.jpg]
10-22-2009 03:50 AM
Find all posts by this user Quote this message in a reply
AWOL Offline
The Spooning Bard

Posts: 8,487
Joined: Mar 2008
Thanks: 0
Given 36 thank(s) in 34 post(s)
Post: #16
Re: C++

I installed it and I got MVS>COMMON>IDE>IDE98>ASP.TLB

i = File
B = Folder

So I have no idea what's going on.

[Image: 9be30a7.png]
[Image: LyingFloraBanner.jpg]
10-22-2009 06:39 AM
Find all posts by this user Quote this message in a reply
Liquid Offline
poison - do not drink

Posts: 1,050
Joined: Aug 2007
Thanks: 0
Given 2 thank(s) in 2 post(s)
Post: #17
Re: C++

Not sure, I haven't found anyone with the same problem on google...

I'll look from home and see if I can come up with any ideas.

//

[Image: techhoops5.jpg]
10-23-2009 10:28 AM
Find all posts by this user Quote this message in a reply
AWOL Offline
The Spooning Bard

Posts: 8,487
Joined: Mar 2008
Thanks: 0
Given 36 thank(s) in 34 post(s)
Post: #18
Re: C++

Well, my school's C drive has no security at all, so once I'm done downloading all their programs, I'm purging the computer.

Oh yeah, and I got C++ off there, but I'm not sure if it works.

[Image: 9be30a7.png]
[Image: LyingFloraBanner.jpg]
10-23-2009 02:52 PM
Find all posts by this user Quote this message in a reply
LOON_ATTIC Offline
A NERD

Posts: 5,158
Joined: May 2009
Thanks: 9
Given 60 thank(s) in 49 post(s)
Post: #19
Re: C++

AWOL Wrote:HTML is a really basic language, I'd suggest learning something a bit more advanced.

EDIT: FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK!!! I installed C++ and I got a bunch of folders with 'ASP.TLB' in it. Fucking hell, damn you Microsoft!
Get Code::Blocks. use GCC or minGW or whatever.
I've used it alot, in both windows and linux.
http://www.codeblocks.org/

[Image: glorious666.png]
10-24-2009 11:03 AM
Find all posts by this user Quote this message in a reply
Liquid Offline
poison - do not drink

Posts: 1,050
Joined: Aug 2007
Thanks: 0
Given 2 thank(s) in 2 post(s)
Post: #20
Re: C++

AWOL Wrote:Well, my school's C drive has no security at all, so once I'm done downloading all their programs, I'm purging the computer.

Oh yeah, and I got C++ off there, but I'm not sure if it works.

Try doing a "Hello World"

if that works you're all set Smile

//

[Image: techhoops5.jpg]
10-28-2009 08:47 AM
Find all posts by this user Quote this message in a reply
AWOL Offline
The Spooning Bard

Posts: 8,487
Joined: Mar 2008
Thanks: 0
Given 36 thank(s) in 34 post(s)
Post: #21
Re: C++

I've been far too lazy to transfer it to my computer.

[Image: 9be30a7.png]
[Image: LyingFloraBanner.jpg]
10-28-2009 01:16 PM
Find all posts by this user Quote this message in a reply
Ceiling Cat Offline
Fanatic

Posts: 3,630
Joined: Nov 2009
Thanks: 0
Given 16 thank(s) in 13 post(s)
Post: #22
Re: C++

Bump if it's still valid: DevCPP should work if you cannot install Visual for some reason. It has the gcc included.

Problem, officer?
Hidden stuff:
TrueAnarchist Wrote:and to think, i could be yiffing a hot vixen right about now
CrayolaColours Wrote:He just admitted today that he spent two hours...errr... shaking hands with the Bishop afterwards.
The Desert Fox Wrote:I thought when I downloaded it it was already emulated.
zagix Wrote:I'm stuck to the fagarena because I'm a fag
CrayolaColours Wrote:Woman up, will you? Grow a damn pussy and get over yourselves.
11-28-2009 02:08 PM
Find all posts by this user Quote this message in a reply
Liquid Offline
poison - do not drink

Posts: 1,050
Joined: Aug 2007
Thanks: 0
Given 2 thank(s) in 2 post(s)
Post: #23
Re: C++

Ceiling Cat Wrote:Bump if it's still valid: DevCPP should work if you cannot install Visual for some reason. It has the gcc included.

I haven't looked at this before... I'll add it to my giant to-do list Smile

//

[Image: techhoops5.jpg]
12-01-2009 02:51 AM
Find all posts by this user Quote this message in a reply
LOON_ATTIC Offline
A NERD

Posts: 5,158
Joined: May 2009
Thanks: 9
Given 60 thank(s) in 49 post(s)
Post: #24
Re: C++

Yup. DevCPP is also a very good one, more out of the box I thonk...

[Image: glorious666.png]
12-01-2009 04:02 PM
Find all posts by this user Quote this message in a reply
Specter Offline
Pariah

Posts: 914
Joined: Aug 2007
Thanks: 0
Given 4 thank(s) in 3 post(s)
Post: #25
Re: C++

void main();
{
While(System.ThreadStatus = "exist"; && System.ThreadTitle = "C++";)
{
Console.WriteLine("C# > C++");
}
}

Jesus backwards sounds like 'sausage'. =D
12-02-2009 12:00 AM
Find all posts by this user Quote this message in a reply
Ceiling Cat Offline
Fanatic

Posts: 3,630
Joined: Nov 2009
Thanks: 0
Given 16 thank(s) in 13 post(s)
Post: #26
Re: C++

ERROR:
"System" used without declaration.
"Console" used without declaration.
Unknown function "WriteLine".

Forgot to include, eh?

Also, you used ; on main(), which is a great mistake.
You only use semicolons on function when you declare them without adding the body. So, {} aren't used.
But... why the HELL use it in main()?

You, sir... can't code at all. Giggle

Problem, officer?
Hidden stuff:
TrueAnarchist Wrote:and to think, i could be yiffing a hot vixen right about now
CrayolaColours Wrote:He just admitted today that he spent two hours...errr... shaking hands with the Bishop afterwards.
The Desert Fox Wrote:I thought when I downloaded it it was already emulated.
zagix Wrote:I'm stuck to the fagarena because I'm a fag
CrayolaColours Wrote:Woman up, will you? Grow a damn pussy and get over yourselves.
12-02-2009 12:13 AM
Find all posts by this user Quote this message in a reply
Specter Offline
Pariah

Posts: 914
Joined: Aug 2007
Thanks: 0
Given 4 thank(s) in 3 post(s)
Post: #27
Re: C++

IntelliSense does all that shit for me Giggle

Also, I didn't feel like copying 10 lines of "Using" statements.

Quote:"System" used without declaration.
"Console" used without declaration.
Unknown function "WriteLine".

System is a namespace built in the .Net framework, you don't declare it :/

Jesus backwards sounds like 'sausage'. =D
12-02-2009 06:31 AM
Find all posts by this user Quote this message in a reply
Liquid Offline
poison - do not drink

Posts: 1,050
Joined: Aug 2007
Thanks: 0
Given 2 thank(s) in 2 post(s)
Post: #28
Re: C++

Only if you're developing for the .Net and Mono Frameworks though. Otherwise you always need it.

Isn't it good practice to put all the "Using"s in instead of just leaving it implied for the compiler to do?

//

[Image: techhoops5.jpg]
12-03-2009 01:38 AM
Find all posts by this user Quote this message in a reply
Specter Offline
Pariah

Posts: 914
Joined: Aug 2007
Thanks: 0
Given 4 thank(s) in 3 post(s)
Post: #29
Re: C++

Yea, exactly. Though I never really tried to write an un-managed code or use any library except Microsoft's. xD

Quote:Isn't it good practice to put all the "Using"s in instead of just leaving it implied for the compiler to do?

The visual studio compiler doesn't even allow using objects that haven't been "declared" by the using statement.

Jesus backwards sounds like 'sausage'. =D
12-03-2009 01:46 AM
Find all posts by this user Quote this message in a reply
Ceiling Cat Offline
Fanatic

Posts: 3,630
Joined: Nov 2009
Thanks: 0
Given 16 thank(s) in 13 post(s)
Post: #30
Re: C++

I on the other hand don't use Microsoft's bullshit, except the basic window API. Other than that I feel better with just the std, and occasional rendering engine for 3d.

Problem, officer?
Hidden stuff:
TrueAnarchist Wrote:and to think, i could be yiffing a hot vixen right about now
CrayolaColours Wrote:He just admitted today that he spent two hours...errr... shaking hands with the Bishop afterwards.
The Desert Fox Wrote:I thought when I downloaded it it was already emulated.
zagix Wrote:I'm stuck to the fagarena because I'm a fag
CrayolaColours Wrote:Woman up, will you? Grow a damn pussy and get over yourselves.
12-03-2009 01:50 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | School Survival | Return to Top | Return to Content | Mobile Version | RSS Syndication