Search:

Type: Posts; User: zerlok

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,142

    Thanks for the response. The only reason i say...

    Thanks for the response. The only reason i say its not efficient is because i have to write loop 7 times. So i thought of a new way of doing it.


    for(int i=0;i<7;i++)
    for(int...
  2. Replies
    6
    Views
    1,142

    for(int i=0;i

    for(int i=0;i<Counter[0];i++)
    {
    cout<<"I";
    }
    for(int j=0;j<Counter[1];j++)
    {
    cout<<"N";
    }

    i found out that this works but it's not very efficient...
  3. Replies
    6
    Views
    1,142

    I can't use Counter as the Loop size. ...

    I can't use Counter as the Loop size.


    for(int i=0;i<Counter;i++)

    wont work because counter is an array.
  4. Replies
    6
    Views
    1,142

    Need some Hints on how to figure this out.

    void eMath::GetIndex()
    {

    for(int i=0;i<MAX_SIZE;i++)
    {
    if(eNumber[i]== 'I' )
    Counter[0]++;
    if(eNumber2[i]== 'I' )
    Counter[0]++;
    if(eNumber[i]== 'N' )
  5. Replies
    2
    Views
    1,497

    Thanks! It'll just take some time to get it done...

    Thanks! It'll just take some time to get it done but i get it.
  6. Replies
    2
    Views
    1,497

    Help With Algorithm Egyptian Numbers

    So, i'm trying to figure out the algorithm for detecting egyptian numbers in the array and adding them properly.

    I can't seem to understand how to go from here. I can't think of how to add the...
  7. Replies
    3
    Views
    1,229

    void output(char name[][30],float totaldata[][6],...

    void output(char name[][30],float totaldata[][6], int counter)
    {
    for(int i=0;i<counter;i++)
    for(int j=0;j<counter;j++)
    cout<<left<<setw(31)<<"Name"...
  8. Replies
    3
    Views
    1,229

    Help with "cout" [2-dim arrays]

    Help with CODE can't seem to make the arrays i made and stuff to appear on screen.. (noobie)


    #include <iostream>
    #include <iomanip>
    #include <string>

    using namespace std;
    const double...
  9. Replies
    4
    Views
    1,009

    ahh yes i can't use string because i'm not...

    ahh yes i can't use string because i'm not allowed to for this assignment...
    cin.getline(empname) would work?
  10. Replies
    4
    Views
    1,009

    hai guys help on 2-dim arrays

    so i do loop for ex:


    #include <iostream>
    #include <cmath>
    #include <iomanip>
    #include <string>

    using namespace std;
    const int number_of_rows=40;
  11. Replies
    3
    Views
    2,855

    getline(cin,name[count++]); so like that right?...

    getline(cin,name[count++]);
    so like that right? but now that i put it in after i enter the number it just ends the program..
  12. Replies
    3
    Views
    2,855

    C++ cin.getline help

    This is part of my code and i'm stuck on the cin part i dont exactly remember how it went for arrays... i need to cin a name that contains whitespace but when i do that the program starts looping...
Results 1 to 12 of 12