Page 3 of 6 FirstFirst 123456 LastLast
Results 25 to 36 of 64

Thread: Ask any Question About C++ here!

  1. #25
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default

    Quote adee143 said: View Post
    bhai mujhey ap sey aik sawal puchna hai C aur c++ k barey m

    bhai bht hi basic sawal hai
    wo yh keh
    header files kya hain
    aur kya har program k lye difrent header file use karni parti hai
    iski mujhey samajh nahi aa rahi plz explain here
    i am waiting for ur answer
    Bhai header file include karna zaroori nahi,
    agar aap basic learner ho to leave it for now,

    Header file mein aap functions and classes ki
    declaration code save kar sakte ho aur source
    file se us code ko call kar sakte ho, lekin abhi
    k liye aap ko us ki zaroorat nahi pare gi,

    Quote DouBle TrouBle said: View Post

    Is LAungage Ko Seekhne ki Basic requirement Ki HAi
    Kiya Kiya KArna PAre Ga Or is k Liye Kisi Software Ki Zaroorat hoti hai
    bhai koi bhi seekh sakta hai, koi requirement nahi,
    just aap ko basic calculation ani chahye aur meaning
    of words ka pata hona chahye. Baqi aap basic level
    se start kar do,
    Aap ko apna code compile aur run karne ke liye
    compiler ki zaroorat parye gi,
    App different compilers free haasil kar sakte hain,
    for example: Micrsoft Visual C++ express edition is
    free to download. There is, Dev-C++, Borland-C++ etc

    Bhai aap koi book le kar seekhna suru kar do,
    book ke 1st chapter mein aap ko in cheeson ke
    bare mein tafseel sa bataya jaye ga.

    -Saif

  2. #26
    FritZie's Avatar
    FritZie is offline Senior Member+
    Last Online
    5th March 2015 @ 01:46 AM
    Join Date
    21 Aug 2009
    Gender
    Male
    Posts
    21,919
    Threads
    377
    Credits
    935
    Thanked
    1803

    Default

    Quote SufyanGujar said: View Post
    Bhai header file include karna zaroori nahi,
    agar aap basic learner ho to leave it for now,

    Header file mein aap functions and classes ki
    declaration code save kar sakte ho aur source
    file se us code ko call kar sakte ho, lekin abhi
    k liye aap ko us ki zaroorat nahi pare gi,



    bhai koi bhi seekh sakta hai, koi requirement nahi,
    just aap ko basic calculation ani chahye aur meaning
    of words ka pata hona chahye. Baqi aap basic level
    se start kar do,
    Aap ko apna code compile aur run karne ke liye
    compiler ki zaroorat parye gi,
    App different compilers free haasil kar sakte hain,
    for example: Micrsoft Visual C++ express edition is
    free to download. There is, Dev-C++, Borland-C++ etc

    Bhai aap koi book le kar seekhna suru kar do,
    book ke 1st chapter mein aap ko in cheeson ke
    bare mein tafseel sa bataya jaye ga.

    -Saif
    AGar Aap Book Ki Link Dete To Behtar Tha

  3. #27
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default

    Quote DouBle TrouBle said: View Post


    AGar Aap Book Ki Link Dete To Behtar Tha
    bhai mein zaroor deta, infact mein ne link paste bhi kia
    tha lekin remove kar diya, mein sirif English Books ke
    links janta hoon, aur aap urdu perna chahien ge, dats
    y mein ne link nahi diya, lekin agar aap ko english se
    problem nahi hai to i got the best book for a learner
    like you, this book explains everythn in detail, perfectly,
    Here is link: Sams Teach Yourself C++ in 21 Days! (6th Edition)
    This is the latest edition of this book, realy awesome book,
    -Saif.

  4. #28
    stillawolf's Avatar
    stillawolf is offline Senior Member+
    Last Online
    14th February 2017 @ 11:09 PM
    Join Date
    13 May 2009
    Age
    37
    Posts
    298
    Threads
    12
    Credits
    11
    Thanked
    3

    Default

    Aslamoalikum,
    bhai meri bhi help kr do please..yar aj he reply kr do jaldi se

    this is my programe

    #include<iostream.h>
    #include<conio.h>
    #include<iomanip.h>
    void main()
    {
    clrscr();
    double r, n1=132.364, n2=26.91;
    r=n1/n2;
    cout<<r<<endl;
    cout<<setprecision(5)<<r<<endl;
    cout<<setprecision(4)<<r<<endl;
    cout<<setprecision(3)<<r<<endl;
    cout<<setprecision(2)<<r<<endl;
    cout<<setprecision(1)<<r<<endl;
    getch();
    }


    and jb compile krta hoon to 10 error atay hn

    jo kahta hai

    Fatal..\include\iomanip.h: must use C++ for the io stream manipulators directives error
    help me please

  5. #29
    knowldge_hunter is offline Senior Member+
    Last Online
    19th February 2010 @ 12:52 AM
    Join Date
    26 Oct 2009
    Posts
    44
    Threads
    4
    Credits
    945
    Thanked: 1

    Default

    yeh errors i think so progrms key nahi balkey my computer mein jis drive mein apne c++ save ki hoi hay os mein headrefiles key folder mein setting thek nahi hay jhan tak mujy maloom hay.

    baqi sufyan bahi janty hunge baehter

  6. #30
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default

    Guys be patience; i am still in college, let me get home and i will sort dat out, i cant
    compile dat code here, cuz there is no such software installed on college machines.

  7. #31
    stillawolf's Avatar
    stillawolf is offline Senior Member+
    Last Online
    14th February 2017 @ 11:09 PM
    Join Date
    13 May 2009
    Age
    37
    Posts
    298
    Threads
    12
    Credits
    11
    Thanked
    3

    Default

    thanks bhai jaan ab rat hogai hai... i hope ap bata den gay kal tk

  8. #32
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default

    Here you go, took me 30 seconds to do dat;
    I aint gona explain everythn; just compare
    both codes and search for mistakes if u want:

    Compilable Code:
    Code:
    #include<iostream>
    #include<conio.h>
    #include<iomanip>
    
    using namespace std;
    
    void main()
    {
    system("CLS");
    double r, n1=132.364, n2=26.91;
    r=n1/n2;
    cout<<r<<endl;
    cout<<setprecision(5)<<r<<endl;
    cout<<setprecision(4)<<r<<endl;
    cout<<setprecision(3)<<r<<endl;
    cout<<setprecision(2)<<r<<endl;
    cout<<setprecision(1)<<r<<endl;
    getch();
    }
    I do apologise for keep you waiting, but cant
    do much in college;

    -Saif

  9. #33
    stillawolf's Avatar
    stillawolf is offline Senior Member+
    Last Online
    14th February 2017 @ 11:09 PM
    Join Date
    13 May 2009
    Age
    37
    Posts
    298
    Threads
    12
    Credits
    11
    Thanked
    3

    Default

    let me check

  10. #34
    stillawolf's Avatar
    stillawolf is offline Senior Member+
    Last Online
    14th February 2017 @ 11:09 PM
    Join Date
    13 May 2009
    Age
    37
    Posts
    298
    Threads
    12
    Credits
    11
    Thanked
    3

    Default

    bhai nahi ho raha yar ye complete paste kia hai phir bhi nahi hota..
    yar ap mind na kren to dobara bata den..
    or zara ghor se daykhen..
    k apnay
    #include<iostream> likha hai jo k galat hai still kafi sari galtian hai
    jb ye galti remove krta hoon to 4 reh jati hn
    esi trhan jb iomanip ko jb #include<iomanip.h> krta hoon to 12 galtian ho jati hn : /
    yar ap ek kam kren apne ye programe jahan pe save kia hai mj wo library files notepad wali he copy kr k paste kr den.. agr wo theek run howa hai..
    i am still confuse ye nahi ho raha..
    helppppppppppp saif bhai help ........

  11. #35
    adee143 is offline Senior Member+
    Last Online
    7th February 2016 @ 02:32 AM
    Join Date
    05 Jan 2006
    Posts
    115
    Threads
    8
    Credits
    0
    Thanked
    0

    Default

    to kya bhai mein har program k lye <stdio.h> use kar sakta hun???

  12. #36
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default

    Quote stillawolf said: View Post
    bhai nahi ho raha yar ye complete paste kia hai phir bhi nahi hota..
    yar ap mind na kren to dobara bata den..
    or zara ghor se daykhen..
    k apnay
    #include<iostream> likha hai jo k galat hai still kafi sari galtian hai
    jb ye galti remove krta hoon to 4 reh jati hn
    esi trhan jb iomanip ko jb #include<iomanip.h> krta hoon to 12 galtian ho jati hn : /
    yar ap ek kam kren apne ye programe jahan pe save kia hai mj wo library files notepad wali he copy kr k paste kr den.. agr wo theek run howa hai..
    i am still confuse ye nahi ho raha..
    helppppppppppp saif bhai help ........
    here is more relible code; try this, and get some better compiler;
    get Microsoft Visual C++ (Express Edition) or Dev-C++,

    Code:
    #include<iostream>
    #include<conio.h>
    #include<iomanip>
    
    using namespace std;
    
    int main()
    {
    system("CLS");
    double r, n1=132.364, n2=26.91;
    r=n1/n2;
    cout<<r<<endl;
    cout<<setprecision(5)<<r<<endl;
    cout<<setprecision(4)<<r<<endl;
    cout<<setprecision(3)<<r<<endl;
    cout<<setprecision(2)<<r<<endl;
    cout<<setprecision(1)<<r<<endl;
    getch();
    return 0;
    }
    idk why you think iostream is header file; its input output library;
    that means you dont need to include .h at the end of it, and the code
    i post is working perfectly with Microsoft Visual Studio as well as Dev-C++,
    try it, if it still dont work i cant do much cuz its your compiler, i use different
    compilers.

    Some compiler dont have some libraries installed, you need to manually
    install extra featurs.

    -Saif

Page 3 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Solved Q21. ITD Winner Rank Question (Final Question)
    By Afridi in forum ITDunya 18th Anniversary (8 Nov 2023)
    Replies: 9
    Last Post: 8th November 2011, 10:09 PM
  2. Solved c++ question
    By shamsgul in forum Solved Problems (IT)
    Replies: 17
    Last Post: 11th July 2011, 01:17 AM
  3. new game question with question..........
    By lucky shah in forum Baat cheet
    Replies: 12
    Last Post: 16th July 2010, 02:53 AM
  4. a little question
    By esr in forum Ask an Expert
    Replies: 8
    Last Post: 10th October 2008, 12:02 AM

Tags for this Thread

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
  •