Jump to content

C++ (Programming language)


Tentacruel

Recommended Posts

[CODE]
#ifndef TOPIC_H
#define TOPIC_H
class topic{
int postcount;
string title;
bool canPost;
public:
topic(string Title);
void post(string Post);
void discuss();
}
#endif
[/CODE]

[CODE]
#include <topic.h>
#include <string>
#include <iostream>
topic::topic(string Title)
{
title=Title;
postcount=0;
canPost=0;
}
void topic::post(string Post)
{
if(canPost)
{
cout << Post;
postcount++;
}
}
void topic::discuss()
{
canPost=1;
}
[/CODE]

Link to comment
Share on other sites

  • 2 weeks later...

[quote name='+Catman' timestamp='1328845847' post='5807813']
I actually like Java better since I actually learned how to do crap with GUIWindows instead of the plain old terminal window that we used in C++. But maybe if I stuck around longer, I would've learned a thing or two.
[/quote]

I had tried Java but could only print a string in the console before I lost my patience.

Link to comment
Share on other sites

[code]
import ycm.memes.nolife;

public class YugiohCardMaker {

public static void main StringArgs() throws LifeNotFoundException {

{
[/code]

This is what I remember from Java, which is really nothing and this threw several exceptions. Mostly because I tried to import YCM and make a fake exception.

Anyway, back on topic, I don't know C++, nor do I plan to learn it. C# is on my list to learn with HTML and PHP as of now.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...