Search:

Type: Posts; User: nurulshidanoni

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,149

    i have this data 1: 40 2: 30 3:60 and...

    i have this data

    1: 40
    2: 30
    3:60


    and aExam.total.push_back(tempTotal); is to read a data....

    before thsi I use vector <int> total, and it succesfully read a data from file..........but...
  2. Replies
    5
    Views
    2,149

    vector to float

    I have done like this.. but still many error..
    i have change ti float..then for array.total i change to size.total=0.

    rror C2228: left of '.push_back' must have class/struct/union type...
  3. Thread: sort

    by nurulshidanoni
    Replies
    10
    Views
    1,484

    Foo

    Yes..I have see your homerpage..but i have two arrays..I dont know to use a class Foo.
  4. Thread: sort

    by nurulshidanoni
    Replies
    10
    Views
    1,484

    Foo means what..a cinese language?

    Foo means what..a cinese language?
  5. Thread: sort

    by nurulshidanoni
    Replies
    10
    Views
    1,484

    How to split the code into various functions?

    How to split the code into various functions?
  6. Thread: sort

    by nurulshidanoni
    Replies
    10
    Views
    1,484

    IS IT TRUE I STRUCT TEH DATA LIKE THIS? ...

    IS IT TRUE I STRUCT TEH DATA LIKE THIS?



    #include <iostream> // std::cout
    #include <fstream>
    #include <iomanip>
    #include <string> // std::string
    #include <vector> // std::vector<>...
  7. Thread: sort

    by nurulshidanoni
    Replies
    10
    Views
    1,484

    sort

    i have this data..but how to sort the data in descending order together with the examid?

    examid total
    1: 25
    2: 20
    3: 46
    4: 56
    5: 12
    6: 22
    7: ...
  8. Replies
    36
    Views
    3,041

    i have change to -1 ...but why the output do not...

    i have change to -1 ...but why the output do not appear any number?

    Fail Di buka.....
  9. Replies
    36
    Views
    3,041

    #include // std::cout #include...

    #include <iostream> // std::cout
    #include <fstream>
    #include <iomanip>
    #include <string> // std::string
    #include <vector> // std::vector<>
    #include <algorithm> //std::for each()
    using...
  10. Replies
    36
    Views
    3,041

    for j=0 until j=139... i want to sort the data...

    for j=0 until j=139...

    i want to sort the data in descending order...
  11. Replies
    36
    Views
    3,041

    abnormal program.... if...

    abnormal program....


    if (exams.at(i).total.at(j+1) > exams.at(i).total.at(j) ) // ascending order simply changes to <
    {
    temp = exams.at(i).total.at(j); ...
  12. Replies
    36
    Views
    3,041

    So I must change it to...

    So I must change it to exams.at(i).total.size()+.....?
  13. Replies
    36
    Views
    3,041

    I have this programming but I want to sort the...

    I have this programming but I want to sort the total in descending order...
    How to make an examid together with total after has sort the output?

    how to use hash and map in this programming?

    ...
  14. Replies
    36
    Views
    3,041

    indexes in the range? i dont understand

    indexes in the range? i dont understand
  15. Replies
    36
    Views
    3,041

    i do like this but abnormal if...

    i do like this but abnormal


    if (exams.at(i).total.at(j) < exams.at(i).total.at(j+1) ) // ascending order simply changes to <
    {
    temp = exams.at(i).total.at(j); ...
  16. Replies
    36
    Views
    3,041

    oo..i understand now..but i change (j_)+1 with...

    oo..i understand now..but i change (j_)+1 with (j+1) but its abnormal program.
  17. Replies
    36
    Views
    3,041

    No i dont know the diffreence (j)+1 and (j+1)...

    No i dont know the diffreence (j)+1 and (j+1)...
  18. Replies
    36
    Views
    3,041

    i do like this but error... C:\Documents and...

    i do like this but error...

    C:\Documents and Settings\ashida\My Documents\MASTER C++\main\412.cpp(68) : error C2106: '=' : left operand must be l-value



    #include <iostream> // std::cout...
  19. Replies
    36
    Views
    3,041

    soo...I must chage size() whit what? if...

    soo...I must chage size() whit what?



    if (exams.at(i).total.size() < exams.at(i).total.size()+1) // ascending order simply changes to <
    {
    temp =...
  20. Replies
    36
    Views
    3,041

    error..

    so...the error? how to make a correction?
  21. Replies
    36
    Views
    3,041

    error

    Can somebody tell me whats is the error?

    after if
    {.....
    C:\Documents and Settings\ashida\My Documents\MASTER C++\main\412.cpp(67) : error C2106: '=' : left operand must be l-value


    ...
Results 1 to 21 of 21