Search:

Type: Posts; User: mackol

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,007

    that was an excellent explanation mate i totally...

    that was an excellent explanation mate
    i totally understand now
    thanks a lot mate :)
  2. Replies
    4
    Views
    1,007

    actually when i added a cin.ignore () it did the...

    actually when i added a cin.ignore () it did the job too ;)
  3. Replies
    4
    Views
    1,007

    why is the flag being set to fail

    after the second input it seems like the fail flag is set and it wont accept input the next time

    here is the code.. really small and simple program



    #include <iostream>
    #include <conio.h>...
  4. Thread: cin

    by mackol
    Replies
    3
    Views
    1,075

    ignore question i got it cin.getline...

    ignore question

    i got it

    cin.getline (f,100);

    just in case anyone has the same question in the future. :)
  5. Thread: cin

    by mackol
    Replies
    3
    Views
    1,075

    cin

    stupid question

    if i wanted to cin a string

    but the string consisted of multiple words, how would i do it

    for instance
  6. Replies
    2
    Views
    2,566

    i hear ya mates thats exactly what i was...

    i hear ya mates
    thats exactly what i was thinking about and this other guy was having a debate with me about it
    so just wanted to confirm
    great example mate ;)

    btw, that works as u mentioned...
  7. Replies
    2
    Views
    2,566

    can u assign structs to another

    ??

    for example

    if u have a struct, TEMP which consisted of 3 members

    1 int, 2 char pointers which were dynamically allocated (for strings)

    and this structure is inside another node (for...
  8. Thread: sort ()

    by mackol
    Replies
    4
    Views
    1,889

    yeah the problem is kinda like that it tells...

    yeah the problem is kinda like that

    it tells me

    d:\Program Files\Microsoft Visual Studio .NET\Vc7\include\algorithm(1856): error C2064: term does not evaluate to a function


    and then when...
  9. Thread: sort ()

    by mackol
    Replies
    4
    Views
    1,889

    input file for testing ...

    input file for testing

    www.mdofit.com/ide/27/lab9/input.txt
  10. Thread: sort ()

    by mackol
    Replies
    4
    Views
    1,889

    sort ()

    hi
    my sort algorithm is having problems

    its rather an unsual error
    can anyone understand to solve the error
    i am posting the entire code so that it can be tested

    the error takes place in the...
  11. Thread: error 2679

    by mackol
    Replies
    3
    Views
    2,520

    sorry my friend...

    sorry my friend
    http://www.mdofit.com/ide/27/lab9/input.txt

    let me post the most updated code now.

    it works now
    no error
    no warning

    but the problem is that after it creates 3 elements in...
  12. Thread: error 2679

    by mackol
    Replies
    3
    Views
    2,520

    error 2679

    *** update ***
    now the code works but doesnt do exactly as it should. my vector jsut doesnt seem to exist properly.
    any clues.



    i give up. i cant seem to find the error in this code. i hate...
  13. Replies
    4
    Views
    2,621

    silly me i have learnt it but never used it :D

    silly me
    i have learnt it but never used it :D
  14. Replies
    4
    Views
    2,621

    cuz the teacher hasnt taught it yet ;) but i...

    cuz the teacher hasnt taught it yet ;)
    but i dont mind using the string class just that i havent used string data types
  15. Replies
    4
    Views
    2,621

    %3s equivalent for C++

    what happens if i have a char array [20]
    and i want to print only the first 3 letters of the string

    what c++ function would i use?

    the idea is that i have a ssn [10]
    and i want to display it...
  16. Thread: checking input

    by mackol
    Replies
    4
    Views
    1,066

    how would i use the ios::fail and ios::bad here...

    how would i use the ios::fail and ios::bad here
    i mean how would they be set if the int contains a character?
  17. Thread: checking input

    by mackol
    Replies
    4
    Views
    1,066

    my input is an int not a char array

    my input is an int
    not a char array
  18. Thread: checking input

    by mackol
    Replies
    4
    Views
    1,066

    checking input

    what happens if the user is asked to input a number or even comes from a file
    and u wanna check if the input is really numbers and not something liek 124a
    how would u check that
    isdigit wont work...
  19. Thread: int2string

    by mackol
    Replies
    3
    Views
    7,951

    thanks bros :)

    thanks bros :)
  20. Thread: int2string

    by mackol
    Replies
    3
    Views
    7,951

    int2string

    is there a function to do that in C++
    thanks :)
  21. Replies
    6
    Views
    28,167

    nah, i want to empty it completely cuz i am going...

    nah, i want to empty it completely cuz i am going through a loop to keep reading names from a file and i dont wanna use up space
    so i wanna re use the char array

    i was hoping that there might...
  22. Replies
    6
    Views
    28,167

    yup, i agree with that

    yup, i agree with that
  23. Replies
    6
    Views
    28,167

    oh thats right memset, i forgot about it :D...

    oh thats right
    memset, i forgot about it :D
    well, is there a string related function?
  24. Replies
    6
    Views
    28,167

    clearing an char array

    how would i reset an char temp [30] array back to empty

    for instance, after a loop it has some string stored in it. i want to clear it.
    i could do it manually by going through a loop and setting...
  25. Thread: isdigit ()

    by mackol
    Replies
    8
    Views
    2,012

    i have just been in my first ever C++ class for 2...

    i have just been in my first ever C++ class for 2 weeks now so we havent yet gotten to
    in.getline (though i can see what it does)
    i understand what the method getline would do
    but i dont...
Results 1 to 25 of 71
Page 1 of 3 1 2 3