Search:

Type: Posts; User: jlharrison

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,734

    OMG Thanks I feel so dumb.

    OMG Thanks

    I feel so dumb.
  2. Replies
    2
    Views
    2,734

    Using the ciel() function

    I am trying to figure out what I am doing wrong. I have included cmath.

    I want to round the value of a double to the next whole number using the ciel function and store that value in a integer....
  3. Replies
    8
    Views
    868

    I see... Thanks again for the help everyone! I...

    I see...

    Thanks again for the help everyone! I was stuck for a while on that.
  4. Replies
    8
    Views
    868

    ifstream inFile; string fileName; cout

    ifstream inFile;

    string fileName;

    cout << "Please enter the name of the file to open: ";

    cin >> fileName;

    cout << "You entered:" << fileName << endl;
  5. Replies
    8
    Views
    868

    maxhavoc, here are the declarations ...

    maxhavoc, here are the declarations



    ifstream inFile;

    string fileName;


    Thanks for the help guys I think a do while would work properly but I cant figure out why the only the priming...
  6. Replies
    8
    Views
    868

    Opening a file using a String

    I am trying to make a loop that repeats untill I get a valid file name from the user. Unfortunatly it only works if the correct file name is input on the first attempt. Can someone give me some ideas...
  7. Replies
    20
    Views
    2,867

    This is what I came up with for him after a PM. ...

    This is what I came up with for him after a PM.


    /*
    Create a voting booth program. Once both districts are completed, report to the administrator.
    Your totals MUST include which candidate...
  8. Replies
    6
    Views
    1,902

    This post needs a

    This post needs a <bump>
  9. Replies
    6
    Views
    1,902

    This is what I have. #include //...

    This is what I have.


    #include <stdio.h> // includes standard in out library
    #include <stdlib.h> // includes standard library
    #include <time.h> // includes system time library
    #include...
  10. Replies
    6
    Views
    1,902

    I declared my CDInfo info; in main. I...

    I declared my


    CDInfo info;
    in main.
    I thought that structs did not need to be passed as pointers because they...were pointers. Maybe thats for an array of structs...

    This does look like my...
  11. Replies
    6
    Views
    1,902

    Data Structures Warning

    I am getting a warning on the program I am coding and I dont know what the reason is.


    // assigns a data type String
    typedef char String[STRINGSIZE];

    // Assigns a data structure for file...
  12. Replies
    13
    Views
    2,049

    You need a sentinal controlled loop. I assume...

    You need a sentinal controlled loop.

    I assume that '!' is the last person sentinal.

    Pseudo Code



    // cin first file strings
  13. Adding the constant ARRAYSIZE to the typedef gets...

    Adding the constant ARRAYSIZE to the typedef gets rid of the 3 error 2087s but I dont think this is the correct way to fix the problem.


    typedef int SongArray[ARRAYSIZE];

    If that is correct I...
  14. #define works like this and comes after your...

    #define works like this and comes after your #includes


    #define USD 1.00; //1.00 USD = 1.00 United States Dollar
    #define GBP 0.569280; //1.00 USD = 0.569280 United Kingdom Pounds
    #define...
  15. Having Trouble Passing typedef Arrays to a Function

    I am noob to working with typedef and and arrays. I need to pass them to a function that inputs the info in to the arrays from a file songData.txt. I am getting these errors but I am stuck. I am...
  16. Replies
    9
    Views
    1,617

    Maybe something like this? I havent ran this code...

    Maybe something like this? I havent ran this code but it should get you on the right track.



    #include "stdafx.h"
    #include <iostream>
    using namespace std;

    int _tmain(int argc, _TCHAR*...
  17. Replies
    3
    Views
    1,054

    Ty

    Aha, I knew it was something dumb. Thanks Guys.
  18. Replies
    3
    Views
    1,054

    Just Starting Functions

    Just started working with functions and I cant figure out why this doesnt work. Can someone please explain? I know its probably something dumb, I just need some fresh eyes!

    It only prints the...
  19. Replies
    10
    Views
    1,898

    Nice

    Thanks again guys. I am learning this slowly but surley!
  20. Replies
    10
    Views
    1,898

    I think you are refering to OPTION 4 Custom...

    I think you are refering to OPTION 4 Custom Validation.

    That seems way ahead of where I am in class right now. We havent covered arrays or some of the other stuff in there yet.
  21. First create a new solution in MSVS. Then go to...

    First create a new solution in MSVS. Then go to new> files> c++source file. You will have to name the file before it opens. Name it Foo.c or whatever.c if you do not want it to be a .cpp file.

    I...
  22. Replies
    10
    Views
    1,898

    Error Checking

    I need to make sure the user enters a number from the menu. The do while loop will ensure that I get the choice in the right range. I now just need to be sure that the number entered is not a...
  23. Replies
    11
    Views
    2,445

    You absolutly right. I am a noob and should have...

    You absolutly right. I am a noob and should have kept my mouth shut!
  24. Replies
    11
    Views
    2,445

    #include #include int...

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

    int main()
    {
    char name[10];

    printf("Please enter your name.\n");
    scanf("%s", name);
    printf("Hello %s!\n", name);
  25. Replies
    11
    Views
    1,385

    Just out of curiosity

    I am really new to C and my instructor does not do a great job explaining things. Wondering if one of you can clarify this for me.

    I need to keep asking for input untill I get a R or S.


    ...
Results 1 to 25 of 36
Page 1 of 2 1 2