Search:

Type: Posts; User: pinkfloyd4ever

Search: Search took 0.00 seconds.

  1. I always compile with all warnings on, and it...

    I always compile with all warnings on, and it wasn't showing any warnings or errors

    I'll see what my teacher says tomorrow
  2. hmm, weird.. Adding the curly braces at lines...

    hmm, weird..

    Adding the curly braces at lines 25 and 31 seemed to fix the problem (before I changed line 12 to initialize sum to 0), as I wasn't getting any compile warnings or errors and the...
  3. quick prob w/summing and averaging the elements of an array

    Yes, another hw assignment..

    the assignment is as follows:

    12 DIRECTIONS: Write a program which will prompt the
    13 user to enter 10 int values each in the range 0 to 9
    14 ...
  4. ahh right, rtfm sonofab!tch ...

    ahh right, rtfm

    sonofab!tch


    #include<stdio.h>

    /*
    Kevin Gentsch
    CS1250-001
  5. ahh, right. Thanks tab goddamn, using SSH...

    ahh, right. Thanks tab

    goddamn, using SSH Secure Shell is such a PITA!! And ytf are we even learning C!?! Who actually uses C anymore...ugh
    anyway, I've got it to compile w/o warnings and I have...
  6. ok, so I'm just trying to get this to at least do...

    ok, so I'm just trying to get this to at least do something that makes sense, so I currently have
    1 #include<stdio.h>
    2
    3 /*
    4 myname
    5 classsection
    6 ...
  7. ohhhhhh. It's supposed to be written for the...

    ohhhhhh. It's supposed to be written for the entry format
    "hh:mm:ss"

    so i guess I need to change the format string to "%d:%d:%d", huh?
  8. right, I know what the modulus and division...

    right, I know what the modulus and division operators do.

    So I would say

    s3=((s1+s2)%60);
    m3=(m1+m2+(s1+s2)/60)%60;

    this is what I have so far. When I run it, it prompts me for the first...
  9. hmm, how exactly? Obviously I want to simply add...

    hmm, how exactly? Obviously I want to simply add the seconds (or minutes) if the sum of the 2 input values is less than 60, but how do I account for sums greater than 60 without the if:els statement....
  10. How to add hours:minutes:seconds (hh:mm:ss) keeping output values

    the official assignment:
    "DIRECTIONS: Write a C program which prompts the user
    for two times specified in the format hh:mm:ss
    (hours:minutes:seconds). Your program should
    compute and display the...
  11. errr, anyhooters, I got the reversal part...

    errr, anyhooters, I got the reversal part working, and I've commented out what I think is how to start the character counting part..

    #include<iostream>
    #include<iomanip>
    #include<cctype>...
  12. huh? umm my teacher definitely is not an idiot-he...

    huh? umm my teacher definitely is not an idiot-he used to work for Autodesk and the Dept of Defense and he's the sh!t
  13. hokay, so... we haven't learned about arrays...

    hokay, so...

    we haven't learned about arrays or maps yet, so he said we can't use them. However, he did tell me this...For the counting of each character he said to use a FOR loop that takes the...
  14. oh thanks dude, I hadn't seen that:rolleyes:

    oh thanks dude, I hadn't seen that:rolleyes:
  15. Help with hw problem: counting characters in a string

    ok, I've got a homework assignment I need help with. We have to write a program to take a user-inputted (is inputted a word) string, display it in reverse order, and then count the occurrences of the...
Results 1 to 15 of 15