Search:

Type: Posts; User: Dakaa

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. NEED GUIDANCE: Loading String from a .txt/.dat file into Arrays

    This is what's inside the .txt/.dat file :



    First, I created 3 arrays,

    employeeID int array
    employeeFirstName char array size 30
    employeeLastname char array size 30
  2. Replies
    2
    Views
    961

    what is char *something

    what is

    char *something

    ?

    What is the * for?
  3. Thread: trim spaces

    by Dakaa
    Replies
    4
    Views
    1,495

    Sorry for bumping up an old thread, but I need to...

    Sorry for bumping up an old thread, but I need to understand this.

    Quzah, what is the function? and what is buffer for?
  4. Replies
    17
    Views
    2,259

    I'll go with strtol() or atoi(), probably atoi(),...

    I'll go with strtol() or atoi(), probably atoi(), stay tuned.
  5. Replies
    17
    Views
    2,259

    Replacing scanf with fgets, it says, 1....

    Replacing scanf with fgets, it says,

    1. invalid conversion from `int*' to `int'

    2. too few arguments to function `char* fgets(char*, int, FILE*)'

    3. at this point in file
  6. Replies
    17
    Views
    2,259

    my mickey mouse code, trying to use isdigit() to...

    my mickey mouse code, trying to use isdigit() to make sure int bal, wit and dep are numbers, so I have to turn bal,wit and dep to char?



    #include <conio.h>
    #include <stdio.h>

    int main()
    {...
  7. Replies
    17
    Views
    2,259

    isdigit() worked for char... What if I had ...

    isdigit() worked for char...

    What if I had

    int num1;

    and user enter an alphabet for num1?
  8. Replies
    17
    Views
    2,259

    [HELP] functions to detect non-numerical

    If I wanted the user to enter 2 numbers to be multiply/add, if user enter something like A5, I need a function to detect the A, and tell the user non-numerical found. thanks.
  9. Thread: [HELP] key press

    by Dakaa
    Replies
    6
    Views
    2,220

    getch() or getche() worked.

    getch() or getche() worked.
  10. Thread: [HELP] key press

    by Dakaa
    Replies
    6
    Views
    2,220

    if i use scanf() or getchar(), user have to press...

    if i use scanf() or getchar(), user have to press ENTER.
  11. Thread: [HELP] key press

    by Dakaa
    Replies
    6
    Views
    2,220

    [HELP] key press

    #include <conio.h>
    #include <stdio.h>

    int main()
    {
    int bal,wit,dep;

    printf("enter balance: ");
    scanf("%i",&bal);
    printf("[W]=Withdraw [D]=Deposit\nPress a key to continue");
  12. Replies
    4
    Views
    1,791

    sweet.

    sweet.
  13. Replies
    4
    Views
    1,791

    how?

    how?
  14. Replies
    4
    Views
    1,791

    summing up an array?

    #include <conio.h>
    #include <stdio.h>

    int main()
    {
    int i,total,array[3]={4,5,6};

    total=0;

    for(i=0;i<3;i++)
  15. Replies
    5
    Views
    1,322

    thanks, i was talking rubbish.

    thanks, i was talking rubbish.
  16. Replies
    5
    Views
    1,322

    if it's i

    if it's i<2 then it won't go over i=2? because it's <2? Hmm?
  17. Replies
    5
    Views
    1,322

    multiple an array by another array?

    /*if i have*/

    array1[2]={1,2};
    array2[2]={3,4};

    /*how do I do (1*3)+(2*4)=11?

    I tried the one below, but sure it won't work*/

    for(i=0;i<=2;i++)
  18. Thread: Decimal convert

    by Dakaa
    Replies
    4
    Views
    2,028

    Decimal to Floating-Point Conversions...

    Decimal to Floating-Point Conversions

    i used that tutorial.
  19. Replies
    3
    Views
    1,490

    How, sir? iTotal=0; ?

    How, sir? iTotal=0; ?
  20. Replies
    3
    Views
    1,490

    [HELP] ISBN Check Digit (random outputs)

    #include <iostream.h>
    #include <conio.h>
    #include <stdio.h>
    #include <string.h>

    int main()
    {
    char cISBN[10];
    int i,iLen,iNNF,iISBN[9],iTotal,iCheck;
  21. Replies
    20
    Views
    5,719

    hello.

    hello.
  22. Replies
    20
    Views
    5,719

    cISBN[10], 9 characters of ISBN and 1 empty...

    cISBN[10], 9 characters of ISBN and 1 empty space, thanks for pointing that out. I'm trying to do it the noob way my teacher taught me, but the output is weird and we are doing the old style ISBN, 9...
  23. Replies
    20
    Views
    5,719

    *sigh*, been doing this all day, error number 2...

    *sigh*, been doing this all day, error number 2 is killing me.



    #include <iostream.h>
    #include <conio.h>
    #include <stdio.h>
    #include <string.h>

    int main()
  24. Replies
    20
    Views
    5,719

    thanks...

    thanks...
  25. Replies
    20
    Views
    5,719

    Example, isbn is 013190190, you times the first...

    Example, isbn is 013190190, you times the first isbn digit by 1, second digit by 2, third digit by 3, fourth digit by 5, fifth digit by 5, sixth digit by 6, seventh digit by 7, eighth digit by 8 and...
Results 1 to 25 of 32
Page 1 of 2 1 2