Thread: Structs

Results 1 to 5 of 5
  1. #1
    Token's Avatar
    Join Date
    Oct 2008
    Location
    Crackhouse
    Posts
    416
    Reputation
    10
    Thanks
    89

    Cool 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;
    
    }

  2. #2
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    :O You should be using printf over cout.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  3. #3
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    Quote Originally Posted by Jetamay
    :O You should be using printf over cout.
    #define cout<< printf

    Problem solved! = D

  4. #4
    Threadstarter
    Dual-Keyboard Member
    Token's Avatar
    Join Date
    Oct 2008
    Location
    Crackhouse
    Posts
    416
    Reputation
    10
    Thanks
    89
    Nooooooo -.-

  5. #5
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    Quote Originally Posted by Token View Post
    Nooooooo -.-
    Yessssssssss -,-

Similar Threads

  1. Sharing Is Caring { Share your Offsets & Structs }
    By Melodia in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 108
    Last Post: 08-22-2018, 12:03 PM
  2. CA Player Structs
    By whatup777 in forum Reverse Engineering
    Replies: 1
    Last Post: 10-02-2010, 08:34 PM
  3. Local PLayer Structs
    By DeadLinez in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 07-26-2010, 11:48 AM
  4. Local Player Structs
    By UnOwN CoD3R in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 10
    Last Post: 07-16-2010, 11:40 PM
  5. [QUESTION] Reversing classes/structs?
    By schim in forum C++/C Programming
    Replies: 11
    Last Post: 07-15-2010, 07:08 AM

Tags for this Thread