Results 1 to 6 of 6

Thread: c++

  1. #1
    rameezjafrie is offline Junior Member
    Last Online
    26th January 2015 @ 11:29 PM
    Join Date
    14 Jan 2011
    Location
    karachi
    Age
    35
    Gender
    Male
    Posts
    28
    Threads
    1
    Credits
    0
    Thanked
    0

    Default c++

    koi bta skta hai iostream and iostream.h me kya farq hai or jb count and cin k barey me thora guide karde ...or c++ k lye best compiler kunsa hai or akher me ager kese k pas c++ book urdu me or is related tutorial agar urdu me hai to share karadey i need it alot ..........plz i am waiting for your reply.................thanks in advance ................but reply must ......

  2. #2
    IT.BOY's Avatar
    IT.BOY is offline Senior Member
    Last Online
    17th November 2017 @ 12:13 PM
    Join Date
    26 Dec 2007
    Location
    *MAA KI AGOOSH*
    Gender
    Male
    Posts
    28,374
    Threads
    651
    Credits
    998
    Thanked
    3079

    Default

    Moved From C++
    [FONT="Jameel Noori Nastaleeq"][CENTER][COLOR="Blue"][SIZE="5"][B]Coming Soon...:)[/B][/SIZE][/COLOR][/CENTER][/FONT]

  3. #3
    bais is offline Senior Member
    Last Online
    31st July 2015 @ 02:07 PM
    Join Date
    23 Aug 2008
    Location
    Izlooo
    Gender
    Male
    Posts
    3,519
    Threads
    96
    Thanked
    263

    Default

    Quote rameezjafrie said: View Post
    koi bta skta hai iostream and iostream.h me kya farq hai or jb count and cin k barey me thora guide karde ...or c++ k lye best compiler kunsa hai or akher me ager kese k pas c++ book urdu me or is related tutorial agar urdu me hai to share karadey i need it alot ..........plz i am waiting for your reply.................thanks in advance ................but reply must ......
    WSLM::

    iostream and iostream.h ma koi faraq nahi ha. Ye same han...ab jo new compliers han un ma #include<iostream> lihka jata ba nisbat #include<iostream.h>

    aur best complier k nahi btaya ja sakhta q k complier k kam hota hai code ko run karna aur run karna....bht acha aur lightweight complier ha Dev C++. Ma to wo use karta houn aur saroun ko recommend karoun ga its fast and easy and easy to debug...while visual c++ is a bit lazy and difficult.

    dev ma hamesha syntax is tarah ho ga:

    Code:
    #include<iostream>
    int main(){
    
    getch();
    return 0;
    }
    jo cheezain bold ma han ye must han aur as it is hi ayain gayae...q k har complier ki kuch requirements hoti hain.

  4. #4
    sayhellotoit's Avatar
    sayhellotoit is offline Senior Member
    Last Online
    23rd September 2017 @ 07:51 PM
    Join Date
    01 May 2009
    Posts
    1,003
    Threads
    5
    Credits
    53
    Thanked
    127

    Default

    iostream.h old standard hay jo kuch compilers support nahi kertay aur aap ko warning daitay hain

    iostream nayay standard kay mutabiq hay.
    Jab bhi aap iostream library ko include kertay hain (#included iostream) tu sath using namespace std; bhi likhtay hain.

    Koi bhi cheez aap nay display kerni ho tu aap cout istamal kertay hain.
    User say kuch input laini ho tu cin istamal kertay hain.
    Yeh aik sample program:
    #include <cstdlib>
    #include <iostream>
    #include <string>

    using namespace std;

    int main(int argc, char* argv[])
    {
    string name;

    cout << "Type your name: ";
    cin >> name;

    cout << "Your name is " << name << endl;

    system("PAUSE");

    return 0;
    }
    C++ kay compilers:
    TurboC, BorlandC, DevC++, VisualC++

  5. #5
    sayhellotoit's Avatar
    sayhellotoit is offline Senior Member
    Last Online
    23rd September 2017 @ 07:51 PM
    Join Date
    01 May 2009
    Posts
    1,003
    Threads
    5
    Credits
    53
    Thanked
    127

  6. #6
    bais is offline Senior Member
    Last Online
    31st July 2015 @ 02:07 PM
    Join Date
    23 Aug 2008
    Location
    Izlooo
    Gender
    Male
    Posts
    3,519
    Threads
    96
    Credits
    0
    Thanked
    263

    Default

    Quote sayhellotoit said: View Post
    iostream.h old standard hay jo kuch compilers support nahi kertay aur aap ko warning daitay hain

    iostream nayay standard kay mutabiq hay.
    Jab bhi aap iostream library ko include kertay hain (#included iostream) tu sath using namespace std; bhi likhtay hain.

    Koi bhi cheez aap nay display kerni ho tu aap cout istamal kertay hain.
    User say kuch input laini ho tu cin istamal kertay hain.
    Yeh aik sample program:


    C++ kay compilers:
    TurboC, BorlandC, DevC++, VisualC++
    Ye cstdlib & string header file use karna k maqsad kiya hai yahan? aur main ko char pointer and int pass karne k maqsad?

    ye sample program beginners k liya tough ha its like this:

    Code:
    #include<iostream>
    #include<conio.h>              // used because to use getch function to hold console.
    
    using namespace std;
    
    int main(){
    string name;
    
    cout<< "Enter Your Name: ";
    cin >> name; 
    
    cout<< "\nYour Name is: " << name;
    getch();
    return 0;
    }
    
    Output:
    Code:
    Enter Your Name: yourname
    
    Your Name is: yourname

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •