Search:

Type: Posts; User: DLR

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,484

    try this: scanf("%c", &locationtosave)

    try this:




    scanf("%c", &locationtosave)
  2. Replies
    8
    Views
    4,953

    can't I use int year? this is what I have so...

    can't I use int year?
    this is what I have so far. I have the printf statement at the bottom just to see if it works (which it doesn't). I can't figure out any way to fix it. I also get a warning...
  3. Replies
    8
    Views
    4,953

    oh yeah duh :rolleyes:

    oh yeah duh :rolleyes:
  4. Replies
    8
    Views
    4,953

    yeah i caught that

    yeah i caught that
  5. Replies
    2
    Views
    1,530

    ok thanks

    ok thanks
  6. Replies
    8
    Views
    4,953

    Random access files and structures

    Right now I'm trying to read in a buncho f data from the text file "Top_Movies.txt" and putting the data into a structure. This is what I have so far. Now I know it isn't goign to work so I'm not...
  7. Replies
    2
    Views
    1,530

    Reading data from a randomly accessed file

    I want my program to open up a text file....in visual c++ do i have to put the text file in 'source files' 'header files' or 'resource files' folder? Also when i save the text file that i'm going to...
  8. Replies
    15
    Views
    2,101

    well if anybody gives a damn i figured it out: ...

    well if anybody gives a damn i figured it out:



    void swoopinfo(char nameptr [], int i, char *majorptr)
    {
    char plezwork; //it worked!
    char dummy;
    printf("Enter seed #%d's...
  9. Replies
    15
    Views
    2,101

    from what I can tell the function is getting the...

    from what I can tell the function is getting the char for major correctly...so I think that it's not sending it back to main correctly.
  10. Replies
    15
    Views
    2,101

    ok I'll try that. I apologize for not being a...

    ok I'll try that. I apologize for not being a good programmer like yourself.
  11. Replies
    15
    Views
    2,101

    it's still not working right. It always prints...

    it's still not working right. It always prints the persons major as Und. I've tried everything I can think of. Right now it works best with


    for (i=0;i<8;i++)
    {
    ...
  12. Replies
    15
    Views
    2,101

    oh duh...yeah i'm surprised it worked too. thanks...

    oh duh...yeah i'm surprised it worked too. thanks a lot!
  13. Replies
    15
    Views
    2,101

    Here's what I have. It should work from what I...

    Here's what I have. It should work from what I can tell, but it has a little bit of a problem printing the bracket. Also there's a few warning messages, which I am pretty sure are because I'm...
  14. Replies
    15
    Views
    2,101

    haha well I finally figured out why i kept...

    haha well I finally figured out why i kept getting 56 errors.....the printBracket calls for Player with a capital P, I had the Player structure as player.
  15. Replies
    15
    Views
    2,101

    oh yeah i guess that makes sense....I'm just...

    oh yeah i guess that makes sense....I'm just going to get ride of the typedef
  16. Replies
    15
    Views
    2,101

    cool thanks ...are you sure that you're not...

    cool thanks

    ...are you sure that you're not supposed to have
    void struct printBracket(Player x []); ?
  17. Replies
    15
    Views
    2,101

    couple problems with structures

    Here's the assignment:
    "You must create a structure called Player, that contains each of the following variables:
    - A string called name that has a maximum size of 10 characters.
    - A character...
  18. ok well this is what i ahve so far void...

    ok well this is what i ahve so far


    void parseString( char *string, int *lines_ptr, int *words_ptr, int *chars_ptr )
    {

    int i;
    int j;
    int k;
  19. here's what i got for counting lines ...

    here's what i got for counting lines


    for(j=0; string[j] !='\0'; ++j)
    {
    if (string[j] == '\n')

    {
    *lines_ptr +=2;
    }
  20. thanks dave_sinkula once i somehow get started i...

    thanks dave_sinkula once i somehow get started i get the hang of it
    we'll see how it goes from here
  21. ok now i'm trying to figure out how to make it...

    ok now i'm trying to figure out how to make it count the number of characters
  22. oh duh ^ that's why nothign was working

    oh duh ^
    that's why nothign was working
  23. printing a string via a function/pointer/array/i don't know what i'm talking about

    ok so the assignment is for the user to enter some ........ and then the program prints it out, then pritns the number of characters, words, lines, etc. I'm trying to modify the first function...
  24. Replies
    17
    Views
    3,465

    apparently last night i changed it so you can...

    apparently last night i changed it so you can enter negative numbers, but -1 to quit.



    if (a[i] == -1)
    {
    i = 25;
    }
  25. Replies
    17
    Views
    3,465

    i'm not too concerned about changing that right...

    i'm not too concerned about changing that right now, I just need to finish the assignment. I've added a couple things, but it still needs some more.

    what i still have to do is :
    Print out...
Results 1 to 25 of 35
Page 1 of 2 1 2