Search:

Type: Posts; User: automagp68

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    914

    Ok i think this is where i lost I have done...

    Ok i think this is where i lost

    I have done what you suggested many times but it requries a char array for every single string. Meaning i now need n number of arrays per string

    Is there any...
  2. Replies
    4
    Views
    914

    Array of pointers

    Hi guys

    Its been a while since i did some see

    I just want to let the user enter in a few strings in store them in an array of pointers. Which each pointer pointing to the begining of a...
  3. nevermind im retarded i know how Thanks always

    nevermind im retarded i know how

    Thanks always
  4. determining how many integers are in an unknown file?

    Hi

    Im trying to read in a txt file but i need i need to know how many lines there are in it before i set my array size,

    Do we have a C function that will go off an read how many lines there are...
  5. Thread: fgets help

    by automagp68
    Replies
    4
    Views
    3,466

    fread did exactly as i wanted i wanted the whole...

    fread did exactly as i wanted i wanted the whole file in an array thats it.

    but if i use fgets when it goes to read line two it over writes line one see what i mean.

    so if i use fread it does...
  6. Thread: fgets help

    by automagp68
    Replies
    4
    Views
    3,466

    Nevermind, switched to fread and now does what i...

    Nevermind, switched to fread and now does what i need

    Thanks if i knew how to delete the post i would
  7. Thread: fgets help

    by automagp68
    Replies
    4
    Views
    3,466

    fgets help

    Hi

    Can someone point me in the correct direction here

    I want to use fgets to read in a stream of data from a text file

    I call fgets once and it reads the first line and stores it in my...
  8. Replies
    7
    Views
    3,934

    Thanks for the link i know all that I dont get...

    Thanks for the link i know all that

    I dont get why this is so hard
    All i want is an array that has X amount of elements each that can store a string
    Thats it
  9. Replies
    7
    Views
    3,934

    My intent was to have a Char pointer pointing to...

    My intent was to have a Char pointer pointing to array 100 wide each capable of handleing its own string
    and its element intialized to null
  10. Replies
    7
    Views
    3,934

    The IDE is CODEBLOCKS The compiler is both GCC...

    The IDE is CODEBLOCKS

    The compiler is both GCC sorry not G++

    And if im trying to use redirection why would i want to use fgets?

    Im redirecting the STD IN to come from a file

    So what you...
  11. Replies
    7
    Views
    3,934

    can someone give me a hand

    I dont get this'

    Im practiceing with some redirections. I wrote this and it works fine in my IDE using gnu


    #include <stdio.h>
    #include<stdlib.h>
  12. Replies
    2
    Views
    1,104

    Works now! Thanks!!!

    Works now!
    Thanks!!!
  13. Replies
    2
    Views
    1,104

    Enumeration question

    Just working with some enumerations here
    in a switch.

    I thought we could use a switch as long as it was a constant and an enumeration evalutes to a constant. I keep getting a compile error here....
  14. Replies
    8
    Views
    1,554

    I just found the mistake! Thank you! it...

    I just found the mistake!

    Thank you!

    it works now!

    well i guess i should of posted this 10 hours ago instead of pulling my hair out
    Thanks man have a good day
  15. Replies
    8
    Views
    1,554

    sigh! ugh, thanks Somedays i feel like i wil...

    sigh! ugh, thanks

    Somedays i feel like i wil never be a good programmer. i need a martini and its not even noon

    check this out. I changed it to this and now the top part works but not the...
  16. Replies
    8
    Views
    1,554

    no you are not understanding my issue...

    no

    you are not understanding my issue correctly.

    a is a pointer to the begining of an array

    of you create a pointer inside of the function and point them to each toher then a never gets...
  17. Replies
    8
    Views
    1,554

    Hi i tried your example exactly like that...

    Hi i tried your example exactly like that yesterday and it crashes.

    Just for kicks i just tried it again. still crashes.

    @mk27
    Thanks for the idea. I know how to use subscripts very well. As...
  18. Replies
    8
    Views
    1,554

    pointer math

    I have been stuck on a simple problem for 10 hours, can someone please help


    all im doing is the following.

    I have a function that is being passed a pointer.
    The pointer points to an int...
  19. Replies
    9
    Views
    1,383

    Thanks yes it does work. I apprecaite the help...

    Thanks yes it does work. I apprecaite the help and suggestions
    I would like to make it as nice as possible but bot truly unerstand what we are doing above so im gonna spend some time on.
    For now,...
  20. Replies
    9
    Views
    1,383

    i think i got it! it was the semi colon the...

    i think i got it!
    it was the semi colon

    the track i was on was working might not be simplest or prettiest but it does work i think atleast lol


    #include <stdio.h>
    #include <stdlib.h>
  21. Replies
    9
    Views
    1,383

    Thanks for the help guys ill keep plugging away...

    Thanks for the help guys
    ill keep plugging away at it

    see if i can make any more progress
  22. Replies
    9
    Views
    1,383

    right because it has been terminated im using...

    right because it has been terminated

    im using codeblocks

    im very new to programming im a math major
    so im just learning what i can and cant do

    Thanks for the catch there. Do you think this...
  23. Replies
    9
    Views
    1,383

    i would love to do it an easier way if u have a...

    i would love to do it an easier way
    if u have a second could you explain a bit more what you have going on

    why in the begining you have small-large=intege1?

    i dont understand that
  24. Replies
    9
    Views
    1,383

    simple if statment need help

    i cant figure out this if statment

    It is driving me nuts

    all im trying to do is take in for floats

    evaluate them and print which one is bigger

    im very new to C
  25. Replies
    17
    Views
    12,823

    must be char right? and is it %c for char?

    must be char right?

    and is it %c

    for char?
Results 1 to 25 of 39
Page 1 of 2 1 2