Results 1 to 7 of 7
  1. #1
    PlSlYlClHlO's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    52
    Reputation
    10
    Thanks
    2

    [Tutorial] Basic user I/O

    I Was bored, and wanted to hopefully help someone, so i wrote this tutorial.

    It will teach you basic Input and Output in C++, with integers. And i wrote it, in a way that i hadn't seen anywhere else it's a tutorial, in command prompt..

    download it, and fire it up it's a pretty simple guide.

    btw...BoBo pwns you.

  2. #2
    qsc's Avatar
    Join Date
    Feb 2009
    Posts
    35
    Reputation
    10
    Thanks
    0
    Sorry - forgot virus scan:

    File: Psycho_s_Input-Output_Tutorial.ex received on 2009.06.12 20:44:56 (UTC)
    Result: 0/40 (0%)


    Antivirus Version Last Update Result
    a-squared 4.5.0.18 2009.06.12 -
    AhnLab-V3 5.0.0.2 2009.06.12 -
    AntiVir 7.9.0.187 2009.06.12 -
    Antiy-AVL 2.0.3.1 2009.06.12 -
    Authentium 5.1.2.4 2009.06.12 -
    Avast 4.8.1335.0 2009.06.12 -
    AVG 8.5.0.339 2009.06.12 -
    BitDefender 7.2 2009.06.12 -
    CAT-QuickHeal 10.00 2009.06.12 -
    ClamAV 0.94.1 2009.06.12 -
    Comodo 1323 2009.06.12 -
    DrWeb 5.0.0.12182 2009.06.12 -
    eSafe 7.0.17.0 2009.06.11 -
    eTrust-Vet 31.6.6555 2009.06.12 -
    F-Prot 4.4.4.56 2009.06.12 -
    F-Secure 8.0.14470.0 2009.06.12 -
    Fortinet 3.117.0.0 2009.06.12 -
    GData 19 2009.06.12 -
    Ikarus T3.1.1.59.0 2009.06.12 -
    K7AntiVirus 7.10.762 2009.06.12 -
    Kaspersky 7.0.0.125 2009.06.12 -
    McAfee 5644 2009.06.12 -
    McAfee+Artemis 5644 2009.06.12 -
    McAfee-GW-Edition 6.7.6 2009.06.12 -
    Microsoft 1.4701 2009.06.12 -
    NOD32 4151 2009.06.12 -
    Norman 6.01.09 2009.06.12 -
    nProtect 2009.1.8.0 2009.06.12 -
    Panda 10.0.0.14 2009.06.12 -
    PCTools 4.4.2.0 2009.06.12 -
    Prevx 3.0 2009.06.12 -
    Rising 21.33.44.00 2009.06.12 -
    Sophos 4.42.0 2009.06.12 -
    Sunbelt 3.2.1858.2 2009.06.12 -
    Symantec 1.4.4.12 2009.06.12 -
    TheHacker 6.3.4.3.344 2009.06.11 -
    TrendMicro 8.950.0.1092 2009.06.12 -
    VBA32 3.12.10.7 2009.06.12 -
    ViRobot 2009.6.12.1783 2009.06.12 -
    VirusBuster 4.6.5.0 2009.06.12 -
    Additional information
    File size: 484934 bytes
    MD5...: cd603373a5dfed513650867310cfeb45
    SHA1..: d2733faf6d120859a0c3c72e3ba28fa9d8c0cb48
    SHA256: 6f9e3fd15c892fd9026a434fe41cd99fbb01682b8da63110b3 4638d8229778d3
    ssdeep: -
    PEiD..: Dev-C++ 4.9.9.2 -> Bloodshed Software
    TrID..: File type identification
    Win32 Executable MS Visual C++ (generic) (62.9%)
    Win32 Executable Generic (14.2%)
    Win32 Dynamic Link Library (generic) (12.6%)
    Win16/32 Executable Delphi generic (3.4%)
    Generic Win/DOS Executable (3.3%)
    PEInfo: PE Structure information

    ( base data )
    entrypointaddress.: 0x1220
    timedatestamp.....: 0x4a316792 (Thu Jun 11 20:22:42 2009)
    machinetype.......: 0x14c (I386)

    ( 6 sections )
    name viradd virsiz rawdsiz ntrpy md5
    .text 0x1000 0x3e760 0x3e800 6.10 cbc86e68e56d66bdd9de59724655991b
    .data 0x40000 0x190 0x200 1.21 78c7b58b367c6ae86cdda4b8bd37581e
    .rdata 0x41000 0x30a0 0x3200 5.26 ad5663c50b212d23d8ca0e357ef8cdae
    .bss 0x45000 0x4bf0 0x0 0.00 d41d8cd98f00b204e9800998ecf8427e
    .idata 0x4a000 0x7b4 0x800 4.68 870b38f2d3d8aeb8c7081027c4c3615f
    .rsrc 0x4b000 0xc10 0xe00 2.87 7b3de9863ed7fe911a6fe9be8ad48c9d

    ( 3 imports )
    > KERNEL32.dll: AddAtomA, CreateSemaphoreA, ExitProcess, FindAtomA, GetAtomNameA, GetLastError, InterlockedDecrement, InterlockedIncrement, ReleaseSemaphore, SetLastError, SetUnhandledExceptionFilter, Sleep, TlsAlloc, TlsFree, TlsGetValue, TlsSetValue, WaitForSingleObject
    > msvcrt.dll: _fdopen, _read, _strdup, _write
    > msvcrt.dll: __getmainargs, __mb_cur_max, __p__environ, __p__fmode, __set_app_type, _assert, _cexit, _ctype, _errno, _filelengthi64, _fstati64, _iob, _isctype, _lseeki64, _onexit, _pctype, _setmode, _strnicmp, _vsnprintf, abort, atexit, fclose, fflush, fgetpos, fopen, fprintf, fread, free, fsetpos, fwrite, getc, localeconv, malloc, memchr, memcpy, memmove, memset, putc, setlocale, setvbuf, signal, strcmp, strcoll, strcpy, strftime, strlen, strtod, strxfrm, system, ungetc

    ( 0 exports )
    PDFiD.: -
    RDS...: NSRL Reference Data Set
    -
    Last edited by qsc; 06-12-2009 at 04:31 PM. Reason: soory - forgot virus scan

  3. #3
    PlSlYlClHlO's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    52
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by qsc View Post
    thxz0rs alt psycho, this is real helpful
    No Problem, i like helping.

  4. #4
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    #include <fstream>
    #include <iostream>

    using namespace std;

    int main()
    {
    char str[10];

    //Creates an instance of ofstream, and opens example.txt
    ofstream a_file ( "example.txt" );
    // Outputs to example.txt through a_file
    a_file<<"This text will now be inside of example.txt";
    // Close the file stream explicitly
    a_file.close();
    //Opens for reading the file
    ifstream b_file ( "example.txt" );
    //Reads one string from the file
    b_file>> str;
    //Should output 'this'
    cout<< str <<"n";
    cin.get(); // wait for a keypress
    // b_file is closed implicitly here
    }
    xD In case some one doesn't want to download to learn.

  5. #5
    Awsomehack's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    5
    My Mood
    Mellow
    It's helpful, but would you be kind enough to post a link to your C++ IDE so I can do better & understand more... Plz?

  6. #6
    qsc's Avatar
    Join Date
    Feb 2009
    Posts
    35
    Reputation
    10
    Thanks
    0
    Bloodshed Software - Dev-C++
    there u go Awsomehack

  7. #7
    PlSlYlClHlO's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    52
    Reputation
    10
    Thanks
    2

    hehe, glad you like it

    Hehe thanks for lookin at it everyone.. its not rly a tutorial more than attempt at making one when i was bored.

Similar Threads

  1. [Tutorial]Basic GSC Scripting
    By xbeatsszzx in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 22
    Last Post: 08-17-2010, 01:35 AM
  2. [Tutorial]Basic Spammer
    By Spookerzz in forum Visual Basic Programming
    Replies: 31
    Last Post: 08-09-2010, 05:31 PM
  3. [Tutorial] Basic C++ Game Hacking (Memory Editing)
    By Tukjedude in forum C++/C Programming
    Replies: 17
    Last Post: 06-05-2010, 08:23 AM
  4. [Tutorial] Basic C++ Console hack
    By Erinador in forum C++/C Programming
    Replies: 12
    Last Post: 02-27-2010, 01:44 AM
  5. Displacing Tutorial (Gimp Users)
    By Onocron in forum Tutorials
    Replies: 0
    Last Post: 07-12-2009, 10:45 AM

Tags for this Thread