Search:

Type: Posts; User: xaykogeki

Search: Search took 0.01 seconds.

  1. Thread: Array Help

    by xaykogeki
    Replies
    1
    Views
    915

    Array Help

    Good Day,

    Actually, I am stuck with an assignment and I need help badly.

    I got a char check[] = "TFFTF"

    and I should receive an input on the number of students

    Number of Students: 2
  2. Replies
    12
    Views
    1,044

    can't find my error in the for-loop. I don't...

    can't find my error in the for-loop. I don't think I have one.
  3. Replies
    12
    Views
    1,044

    uh... char n = '0'; I didn't write int n =...

    uh...
    char n = '0';

    I didn't write
    int n = 1;
  4. Replies
    12
    Views
    1,044

    n is a single char.

    n is a single char.
  5. Replies
    12
    Views
    1,044

    I tried your code, and it works, thanks, but I am...

    I tried your code, and it works, thanks, but I am now having a problem with my code.


    {

    char n = '0';
    int x = 0;
    int loop = 0;
    int count = 0;
    char trial[50];
  6. Replies
    12
    Views
    1,044

    String problem

    How can I input into one %s.
    in this manner,

    scanf("%s",&x);

    a string with spaces (and still maintains the spaces);

    The Day of the Dragon
    Young Gun of Of Love
    Mouse of Gondar
  7. Replies
    5
    Views
    1,085

    malloc() and memory leaks

    Good day,

    I've been tasked to actually write a sample of a memory leak in c (linux or windows), I've been searching around the net, but I can't get an example to analyse on. can somebody direct me...
  8. Replies
    6
    Views
    7,962

    oh...it works..O_O puzzling indeed. ...

    oh...it works..O_O

    puzzling indeed.

    uh..thanks..
  9. Replies
    6
    Views
    7,962

    I'll read up on ASCII, bt if you mean in place...

    I'll read up on ASCII,

    bt if you mean in place of the atoi,

    converter = atoi(&answer[i] - '0');
    it, all gave me 0.
  10. Replies
    6
    Views
    7,962

    atoi() for char

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

    int main()
    {

    char *status;
    char buffer[1024];
    FILE *fp;
  11. Replies
    2
    Views
    912

    Passing char as an array?

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #define SIZE 81


    void display(char *pointerCheck[]);

    int main(void)
    {
  12. Replies
    10
    Views
    1,026

    Yeah, the last one is shorter. but I think the...

    Yeah, the last one is shorter. but I think the last one should contain a \n since the second one has it too.
  13. Replies
    10
    Views
    1,026

    if I don't put -1, it will print 776

    if I don't put -1,
    it will print 776
  14. Replies
    10
    Views
    1,026

    #include #include #include...

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #define SIZE 81
    #define SIZEANS 81

    int main(void)
    {

    FILE *fp, *outFp;
  15. Replies
    10
    Views
    1,026

    This is for testing purposes if I am getting the...

    This is for testing purposes if I am getting the desired output xD
  16. Replies
    10
    Views
    1,026

    I changed the 3 chars, but the problem in the...

    I changed the 3 chars,

    but the problem in the string compare is that, when I put "&" as indicated by the pointer error,

    my text file has

    dbbac

    so how many letters are the same with
  17. Replies
    10
    Views
    1,026

    Pointer Error

    Good day, I am having a pointer error in my string compare. can somebody please correct me? the program is reading have a rough text file of

    abcde
    ebcad
    acdbe

    and several same letters of the...
  18. Replies
    5
    Views
    858

    So if I want to the whole string one by one, I...

    So if I want to the whole string one by one, I will have to copy the whole string as one, put it in a char (which in this case is insert) and using a for loop, try to test it out by printing out each...
  19. Replies
    5
    Views
    858

    #include #include #include...

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #define SIZE 81
    #define SIZEANS 81

    int main(void)
    {

    FILE *fp;
  20. Replies
    5
    Views
    858

    char and string questions

    Good day,

    I have a text file with this kind of input.

    5 ABCDE
    1000 ABBBB
    1001 BCCDA

    Can somebody help me start on how I will read the first line only where the first number
    signifies the...
  21. Replies
    3
    Views
    1,438

    Converting Symbols to Integers

    Can anyone give me somewhere to start if
    I have to convert from Roman Numeral to decimals?

    M - 1000
    D - 500
    C - 100
    L - 50
    X - 10
    V - 5
    I - 1
  22. Replies
    4
    Views
    5,419

    From your help, I managed to fix my code, but...

    From your help, I managed to fix my code, but it's giving me another error.



    I got the stuff working, but I am having a few more errors.


    #include <stdio.h>
    #include <string.h>
    #define...
  23. Replies
    4
    Views
    5,419

    FILE and strtok problems (C Linux)

    Good day,

    I am having a compiling error with my code.



    #include <stdio.h>
    #include <string.h>
    #define SIZE 81
Results 1 to 23 of 23