CoolStructs

Posts 15 of 5 · Page 1 of 1
Structs
I was bored today so i was making random stuff.

Code:
// confuzed.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <cmath>

struct confused
{
	char handle[20];
	int age;
};

int main(void)
{
	using namespace std;

	confused token =
	{
		"Confused",
		19
	};

	cout << "Token is " << token.age << " Years old" << endl;
	system("PAUSE");
	return 0;

}
:O You should be using printf over cout.
Quote Originally Posted by Jetamay
:O You should be using printf over cout.
#define cout<< printf

Problem solved! = D
Nooooooo -.-
Quote Originally Posted by Token View Post
Nooooooo -.-
Yessssssssss -,-
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?