Search:

Type: Posts; User: vearns

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    2,934

    can u show me some examples of std::strings. ? ...

    can u show me some examples of std::strings. ?

    is it like this ?



    if(temp5->salary < 100 && std::string temp5->department != "SALES")


    but i got compilation error
  2. Replies
    20
    Views
    2,934

    daved, whats wrong with my code ? i get the...

    daved,
    whats wrong with my code ?
    i get the output that i need.

    i just facing with 2 more problems.

    for prob no 1.....

    temp5->department != "SALES" is comparing pointers.
    what i need to...
  3. Replies
    20
    Views
    2,934

    LOL. REMOVED ? hahahaha i removed old codes....

    LOL. REMOVED ?
    hahahaha

    i removed old codes.
    and i put my new codes.
  4. Replies
    20
    Views
    2,934

    OK,i did a lot of changes in my code. thanks to...

    OK,i did a lot of changes in my code.
    thanks to mats who give the idea to me.

    here is my code



    REMOVED

    now i faced with 2 more problems.
  5. Replies
    20
    Views
    2,934

    ok mats, i found the solution, i put it like...

    ok mats,
    i found the solution,
    i put it like this



    REMOVED

    however,it seems not so good if we have more than 1 person that have less than 100 salary and not a great solution since the...
  6. Replies
    20
    Views
    2,934

    REMOVED ok, i put inside the loop and it...

    REMOVED

    ok,
    i put inside the loop and it still crash.
  7. Replies
    20
    Views
    2,934

    ok, here is my code REMOVED the...

    ok,
    here is my code



    REMOVED

    the compiler dont show any error.
    but when i test the program,it crash.
    maybe stuck in the loop or something ?
  8. Replies
    20
    Views
    2,934

    oo yeah.. my fault. hahahahaha. thanks. can...

    oo yeah..
    my fault.
    hahahahaha.
    thanks.

    can someone show me how to list out person who have salary less than 100 ?
  9. Replies
    20
    Views
    2,934

    need help with singly linked-list

    Hello,
    i dont know where is the problem.
    i should input some data in the linked-list.
    when i put 2 person,the result just show the last person.

    can someone help me to solve this prob ?

    this...
  10. Replies
    7
    Views
    1,603

    ok, i already did the coding but the question...

    ok,

    i already did the coding but the question is why it show the same thing and keep looping ?

    here is the code


    #include <iostream>
    #include <fstream>
    #include <conio.h>
  11. Replies
    15
    Views
    1,952

    fflush(stdin); the function is same with...

    fflush(stdin);

    the function is same with cin.ignore()

    i still have no idea to use string::npos

    maybe someone can show me some example.
  12. Replies
    15
    Views
    1,952

    Hello, why when i inserted group name without...

    Hello,
    why when i inserted group name without space,the program suddenly quit.

    here is my code


    #include<iostream>
    #include<string>
    #include<fstream>
    #include<conio.h>
  13. Replies
    7
    Views
    1,603

    show me some codes plz.

    show me some codes plz.
  14. Replies
    7
    Views
    1,603

    how to generate data from file

    Hello,
    i need help.
    How to generate output from file ?

    example input from file:
    SERVICE_NUMBER, TO_NUMBER, DURATION, CHARGE, SEIZE_TIME
    0060419076, 035026088, 101, 60, 01-Nov-2006 09:30:58 AM...
  15. Replies
    15
    Views
    1,952

    HOho man...thats great....it is working now !

    HOho man...thats great....it is working now !
  16. Replies
    15
    Views
    1,952

    char groupname[300]; int numGroups; ...

    char groupname[300];
    int numGroups;

    cout<<"How many groups do you wish to create?"<<endl;
    cin>>numGroups;

    for(int i=0;i<numGroups;i++)
    {
    cout <<...
  17. Replies
    15
    Views
    1,952

    OK, I already fix it. the code is working but i...

    OK,
    I already fix it.
    the code is working but i got a problem with the file output.

    let say the file name is like this :

    example :

    ========================
    Group : test1
  18. Replies
    15
    Views
    1,952

    Need help about string

    Hello,this is my code.

    here is the output.

    http://img201.imageshack.us/img201/5564/cppqt3.jpg

    the problem is,
    the output must look like this.

    ========================
  19. Thread: Need help plz

    by vearns
    Replies
    18
    Views
    1,789

    Problem has been solved.

    Problem has been solved.
  20. Thread: Need help plz

    by vearns
    Replies
    18
    Views
    1,789

    Great idea ! i just create this code : ...

    Great idea !

    i just create this code :



    cout << "Enter the name of the file you want to create: ";
    cin >> FileName;

    ofstream Students(FileName, ios::out);
  21. Thread: Need help plz

    by vearns
    Replies
    18
    Views
    1,789

    I've arranged the code like this. 3 more...

    I've arranged the code like this.
    3 more functions to go.



    CODE REMOVED

    Problem 1 :

    If i want to remove student information,i must search the student with student ID.How can i search...
  22. Thread: Need help plz

    by vearns
    Replies
    18
    Views
    1,789

    thanks for your help :) im learning new codes...

    thanks for your help :)
    im learning new codes now.
    i just have basic.


    hope you dont mind to share with me.

    hmm.....

    how can i search the student id based on the file class ?
  23. Thread: Need help plz

    by vearns
    Replies
    18
    Views
    1,789

    i copy and paste your code to my code and i...

    i copy and paste your code to my code and i modified some of undeclared variables still got error.
    i dont know studMax and setw is referring to what.

    can u do based on my coding ?
  24. Thread: Need help plz

    by vearns
    Replies
    18
    Views
    1,789

    the first problem has been solved. what...

    the first problem has been solved.

    what function should i use for problem 2 and 3 ?
  25. Thread: Need help plz

    by vearns
    Replies
    18
    Views
    1,789

    hahaha...sorry...just edited my post. Can you...

    hahaha...sorry...just edited my post.
    Can you show me the code for problem 2 and 3 ?
Results 1 to 25 of 29
Page 1 of 2 1 2