Search:

Type: Posts; User: C++Child

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    3,408

    Thanks! It worked and now I'm happy! Thy program...

    Thanks! It worked and now I'm happy! Thy program I shalt make shalt work and shalt work fluently. LOL, old english.
  2. Replies
    13
    Views
    3,408

    Oh, yeah? Example program (Not the program that...

    Oh, yeah?
    Example program (Not the program that this is going to be used in)


    int main()
    {
    char digit = '3';
    int dgt = digit-0;
    cout<<dgt<<endl<<flush;
    cin.get();
  3. Replies
    10
    Views
    1,372

    Thank you jlou, I didn't know that. I usually...

    Thank you jlou, I didn't know that. I usually append my strings with '\0' anyways.
  4. Thread: new line

    by C++Child
    Replies
    16
    Views
    2,140

    Couldn't you use cout.flush() and cin.flush()...

    Couldn't you use cout.flush() and cin.flush() before cin.get()?
  5. Replies
    13
    Views
    3,408

    atoi not converting chars to ints?

    What should I use to convert character variables into integer variables? I need to do this for a thing I'm making. Any help will be appreciated. :)
  6. Replies
    10
    Views
    1,372

    If you include the header file , you can...

    If you include the header file <string>, you can make a string using the variable type std::string; and if you include the header file <cstring>, you can find the length of a string using the...
  7. Replies
    30
    Views
    4,179

    I learned C++ from a similar language used...

    I learned C++ from a similar language used online, Javascript. (No comments from the people that think JS is a whole different thing.) I personally prefer C++ over the low-level for the beginners AND...
  8. Replies
    10
    Views
    1,787

    Correct Thantos. After all your tags that dont...

    Correct Thantos. After all your tags that dont have a closing tag, you need to put a / before the closing >.
  9. Replies
    6
    Views
    1,737

    I'll comment that code out for you better: ...

    I'll comment that code out for you better:


    #include<iostream.h>
    #include<string>
    #include<fstream.h>
    int main()
    {
    std::string filename; //uses <string>
    getline(cin, filename); //input...
  10. Replies
    5
    Views
    1,827

    I don't think you can change the images...

    I don't think you can change the images resolution because I have been told that you can't even OPEN images in C++. Someone might suggest ios::bin, F-I/O but I think this would have to be done in...
  11. Replies
    28
    Views
    5,330

    if(m[0]==n[0]&&m[1]==n[1]&&m[2]==n[2]) //stupid...

    if(m[0]==n[0]&&m[1]==n[1]&&m[2]==n[2]) //stupid code!

    There's an easier way to compare strings in cstring. Use strcmp(). strcmp() returns a value of false (0) if both strings are the same. so say...
  12. Replies
    8
    Views
    2,500

    #include int main() { char...

    #include<iostream>
    int main()
    {
    char suit[4]={3,4,5,6};
    std::cout<<suit[0]<<std::endl;
    std::cout<<suit[1]<<std::endl;
    std::cout<<suit[2]<<std::endl;
    std::cout<<suit[3]<<std::endl;
    return 0;
    }
  13. Replies
    28
    Views
    5,330

    No its a 3 bit. 0 - 1 - 10 - 11. 11==3.

    No its a 3 bit. 0 - 1 - 10 - 11. 11==3.
  14. Replies
    8
    Views
    1,309

    how about create an array of chicken instances.

    how about create an array of chicken instances.
  15. I need a type of variable that uses however much range needed

    I am making a simple typecast program that converts an integer (not the variable type) into a string but typecasted. The integer is too big to store in an int or long or double. Is there any way to...
  16. Replies
    17
    Views
    2,982

    I use Dev-4 so I don't get depricated header...

    I use Dev-4 so I don't get depricated header errors. I don't understand when to put std:: or when to put using std::. When do you, I mean, you have to put it unexpectedly in std::string and you...
  17. Replies
    17
    Views
    2,119

    You forgot the ! (NOT) operator. It is usually...

    You forgot the ! (NOT) operator. It is usually used to make a boolean value the opposite of what it actually is for a conditional. the .* and ->* are just saying -> then "value pointed by" or . and "...
  18. Replies
    9
    Views
    1,271

    I don't have the skill to learn APIs and I know...

    I don't have the skill to learn APIs and I know binary file i/o. I think it's simple, but; whatever!
  19. Replies
    17
    Views
    2,982

    I think Borland includes more header files and...

    I think Borland includes more header files and I'm used to the command line so I use Borland's BCC 5.5. I think the installation procedure is easy because I'm a computer addict. ;) Dev-C++, at least...
  20. Replies
    9
    Views
    1,271

    You can use ios::bin or ios::binary in fstream...

    You can use ios::bin or ios::binary in fstream but you would have to know the format of excel
  21. Thread: Linked Lists

    by C++Child
    Replies
    2
    Views
    1,198

    It worked! Stupid me on that structure I didn't...

    It worked! Stupid me on that structure I didn't put a semicolon.
  22. Thread: Linked Lists

    by C++Child
    Replies
    2
    Views
    1,198

    Linked Lists

    I create a linked lists and get three errors:

    Error E2176 C:\linkedlist.cpp 10: Too many types in declaration
    Error E2111 C:\linkedlist.cpp 11: Type 'linkedlist' may not be defined here
    Error...
  23. Replies
    36
    Views
    5,510

    >>>>>>>>>>Hmm what a good idea for a project: A...

    >>>>>>>>>>Hmm what a good idea for a project: A compiler that will audiobly berate you for errors and warnings. Something in a sarcastic brithish tone

    Hmmm, I like that idea, "You included...
  24. Thread: fstream ?

    by C++Child
    Replies
    16
    Views
    2,054

    You said that wasn't a function at all! You said...

    You said that wasn't a function at all! You said >>Did you mean feof()?
  25. Replies
    6
    Views
    1,455

    Yea, you have to put both the statements in the...

    Yea, you have to put both the statements in the same set of parentheses.
Results 1 to 25 of 60
Page 1 of 3 1 2 3