Search:

Type: Posts; User: nicz888

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,368

    i change it to this int cnt = 1; for (int i...

    i change it to this

    int cnt = 1;
    for (int i =0; i <len; i++)
    {
    for (int j = i+1; j<len; j++)
    {
    if (!strcmp(array[i],array[j]))
    ++cnt;
    }
  2. Replies
    10
    Views
    1,368

    when i do that i get BILL 5 BILL 6 BILL 6...

    when i do that i get

    BILL 5
    BILL 6
    BILL 6
    JACK 4
    JACK 4
    KEN 2
    KEN 2
    MILO 1
  3. Replies
    10
    Views
    1,368

    #include #include ...

    #include <iostream>
    #include <cstring>

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    using namespace std;

    void checkDouble(char array[100][20], int len);
  4. Replies
    10
    Views
    1,368

    String Comparsion

    int main()
    {

    char strngs[100][20]={"BILL","BILL","BILL","JACK","JACK","KEN"};
    checkDouble(strngs,6);

    }

    void checkDouble(char array[100][20], int len)
    {
  5. Replies
    13
    Views
    1,985

    can someone please show a example of how i can...

    can someone please show a example of how i can delete a record completely. thanks
  6. Replies
    13
    Views
    1,985

    anyone?

    anyone?
  7. Replies
    13
    Views
    1,985

    Binary Inputs and Outputs *Files Questions

    Sorry, this is going to be a very long post :cool:

    first of all,here is my codes:

    Header File


    struct hardware
    {
    int record;
  8. Replies
    9
    Views
    1,198

    i kind of fix the concat string issue i had, now...

    i kind of fix the concat string issue i had, now can you help me on the "bill" issue?
  9. Replies
    9
    Views
    1,198

    ok i put the namespace after the #include.

    ok i put the namespace after the #include.
  10. Replies
    9
    Views
    1,198

    i notice that i can change both line 20 and 21 to...

    i notice that i can change both line 20 and 21 to
    strcat_s(string, " ");
    and
    strcat_s(string, temp);
    that will get rid of all the warnings.

    and the result is the same.
    but my "bill" is still...
  11. Replies
    9
    Views
    1,198

    i updated the code.

    i updated the code.
  12. Replies
    9
    Views
    1,198

    not sure what you by the std::string, can you...

    not sure what you by the std::string, can you give a example.
  13. Replies
    9
    Views
    1,198

    String Input & Output

    // Stopping input with an empty string
    #include <iostream>
    #include <cstring>
    using namespace std;

    int main()
    {
    int i = 1;
    char temp[80];
    char string[80]; // room for 255 strings
  14. Replies
    7
    Views
    1,150

    sorry if it is asking for too much, can you show...

    sorry if it is asking for too much, can you show me where i need it fix it more in depth?
  15. Replies
    7
    Views
    1,150

    sorry i didn't post the question quicker, it took...

    sorry i didn't post the question quicker, it took me a while to type it.
  16. Replies
    7
    Views
    1,150

    here is what i want it to do 1)choose a...

    here is what i want it to do
    1)choose a function and then enter two number for interval boundary.
    2)unless user enter two 0, it will keep asking for two "new number" to as the interval and display...
  17. Replies
    7
    Views
    1,150

    Recursion Function Problem

    #include <cstdlib>
    #include <ctime>
    #include <iomanip>
    #include <iostream>

    using namespace std; // prototype and name space declaration
    int sqr(int);
    int cube(int);
    int fourth(int);
    int...
  18. Replies
    3
    Views
    1,514

    thanks

    thanks
  19. Replies
    4
    Views
    878

    when i do that it will look like this sample...

    when i do that it will look like this
    sample output and input

    Enter 0 to end
    Enter a number: 2
    Enter a number: 5
    Enter a number: 6
    Enter a number: 8
    Enter a number: 0
    0
  20. Replies
    3
    Views
    1,514

    while loop question

    #include <cstdlib>
    #include <ctime>
    #include <iomanip>
    #include <iostream>

    using namespace std; // prototype and name space declaration
    int sqr(int);
    int cube(int);
    int fourthPower(int);...
  21. Replies
    4
    Views
    878

    recursivle function help

    #include<iostream>
    using namespace std;

    void reverseInput();

    void main(){
    reverseInput();

    }
    void reverseInput(){
  22. Replies
    7
    Views
    2,128

    help with a recursion function

    thanks
  23. Replies
    12
    Views
    1,417

    i need it to be in Descending order.

    i need it to be in Descending order.
  24. Replies
    12
    Views
    1,417

    1) i try to used tab but it just doesn't work....

    1) i try to used tab but it just doesn't work. sorry.
    2) i will print the number at the end.
    3) i am very confused on the recursive function, can you provide me with a example or help me started it...
  25. Replies
    12
    Views
    1,417

    that is what i am stock on. can you help me start...

    that is what i am stock on. can you help me start it off. thanks.



    int main() /// main function
    {
    numOrder();
    }

    int numOrder()
Results 1 to 25 of 37
Page 1 of 2 1 2