User Profile

Collapse

Profile Sidebar

Collapse
boltster
boltster
Last Activity: Jan 17 '11, 04:25 PM
Joined: Mar 14 '10
Location: Southern NJ
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sometimes it's the obvious that gets overlooked. That did the trick (as if you had any doubt...

    Thank you for the quick response to all.

    Very nice site and very nice people. I will be letting my classmates know.
    See more | Go to post

    Leave a comment:


  • Here is the last bit to get my assignment 100%...

    I am using a separte switch statement to print the day of the week but I keep getting an error stating Undefined symbol 'weekDay' in function printReceipt

    I set it up almost identical to the above examples but can not get it to compile...

    Code:
    char *weekday;
    char *RArray;
    char *UArray;
    char *SArray;
    
    switch
    ...
    See more | Go to post

    Leave a comment:


  • I figured that it had to be something straightforward . After reading your post I went looking further into my text book and 3 sections further it brings up the break; statement use with the switch. I will give this a try and that will help big time.

    Thanks
    See more | Go to post

    Leave a comment:


  • boltster
    replied to Loop won't iterate
    in C
    I believe you can just use the n in your print statement

    printf("The population at the", n, "generation will be: %.6f\n", Population);
    See more | Go to post

    Leave a comment:


  • boltster
    started a topic Switch Statements will not recognize a char comparison
    in C

    Switch Statements will not recognize a char comparison

    I wanted to use a switch statement to select from several choices and print the choice.

    The problem I am having is that it does not reconize the case statements the way I would assume they should:

    Intel based, xp pro, borland 4.5

    Code:
    switch (gasType)
    {
         case (('r') || ('R')): printf("Type of gasoline: %s\n",RArray);
         case (('u') || ('U')): printf("Type of gasoline:
    ...
    See more | Go to post

  • I picked up on that about midnight last night. I have most of it working now. I still have 1 more function to work through to get the whole program working. That is the big one where I bring everything together. Will up date when I get stuck in that section.. Thanks Weak for the point out...
    See more | Go to post

    Leave a comment:


  • Pointers Adresses and getting data byRef from a functions

    OK... have been working on a class project and I am about at my wits ends...

    First using intel / XP-Pro / TurboC++4.5 (don't ask me why) / Using a dell D610

    I get the concept. I get the usage. I just can not get it to work. I believe the problem is a memory error but can not figure out why.

    I kept the code as short as possible (I won't post my entire program unless I need to...

    Here's the...
    See more | Go to post
No activity results to display
Show More
Working...