C++ help machan!!!!

00gayan00

Well-known member
  • Machan mama C++ walata new! (New kiyanne newma new):P:P

    Mama vdo tute ekaka thibba widiyata basic project ekak hadanna try kalaa;)
    Eke thibba widiyata mama win32 console project ekaka .cpp file ekaka me codes tika type kalaa:yes::yes:

    Code:
    #include <iostream>
    
    main()
    {
           std::cout << "Hello World!" << std::endl;
    
    }

    and pressed F5

    it returned an error and it was something like "HelloWorld.exe cannot be found"???:(:(:(

    Wy iz dat??:(:(:(
    Plzz help me brosss!!!:confused::confused::rolleyes::(
     

    nismok

    Well-known member
  • Jun 27, 2008
    9,391
    673
    113
    Main function must have return type. Use "void" if you return nothing :)

    Code:
    [SIZE=4][FONT=Arial]#include <iostream>
    
    void main()
    {
           std::cout << "Hello World!" << std::endl;
    
    }[/FONT][/SIZE]