Search:

Type: Posts; User: rynoon

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    5,176

    #include using namespace std; ...

    #include <iostream>

    using namespace std;

    int main()
    {
    int iVal1 = 32;
    cout << &iVal1 << endl;

    int* ptrVal2 = new int(128);
  2. Replies
    17
    Views
    1,836

    I'm going to echo laserlight's suggestion. There...

    I'm going to echo laserlight's suggestion. There should only ever be one single instance of main. What it looks like you want to do here is have the program exit when it reaches the return statement...
  3. Replies
    17
    Views
    1,836

    I'm not sure I understand the question. Could you...

    I'm not sure I understand the question. Could you post an example?
  4. Replies
    12
    Views
    1,298

    Well, you're not outputting anything in your...

    Well, you're not outputting anything in your code. You're just assigning values to the variables in your employee object.
  5. Replies
    12
    Views
    1,298

    What does every line of your code have in common...

    What does every line of your code have in common except for std::cin.get()?
  6. Replies
    4
    Views
    1,257

    So you want to get rid of OSX on your Mac if I'm...

    So you want to get rid of OSX on your Mac if I'm understanding correctly?
  7. Replies
    12
    Views
    1,298

    Before your return statement.

    Before your return statement.
  8. Replies
    12
    Views
    1,298

    Add std::cin.get() after your your last statement...

    Add std::cin.get() after your your last statement in main and it will wait for user input before it exits.

    return 0;

    Add that too. :)
  9. Alright. You have to remember that a * is just a...

    Alright. You have to remember that a * is just a char. What do you do when you want to !-->"string"<--! more than one char together?
  10. Replies
    4
    Views
    2,187

    If you replace your printf function with the...

    If you replace your printf function with the following, what happens?

    printf("flangerDelay: %f samples: %f\n", flangerDelay, tmp);
  11. For question one you need to ask for the number...

    For question one you need to ask for the number of lines before you enter a loop. Consider the example output below.



    Enter the number of lines (press 0 to quit): 4

    *
    **
    ***
    ****
  12. Could you post your code so far and explain your...

    Could you post your code so far and explain your specific problems?
  13. Replies
    6
    Views
    1,445

    What exactly are you having trouble with?...

    What exactly are you having trouble with? Defining the method, manipulating the file?

    May I ask if this is homework?
  14. Replies
    8
    Views
    1,374

    As far as I know, Macs cannot safely write to an...

    As far as I know, Macs cannot safely write to an ntfs partition. So write permissions are most likely disabled. I could be wrong.
  15. I'd just use a vector of vectors and avoid this...

    I'd just use a vector of vectors and avoid this entire headache.
  16. Thread: storing data

    by rynoon
    Replies
    4
    Views
    1,073

    Why don't you post your code so far and tell us...

    Why don't you post your code so far and tell us what the specific problem you are having is? Here's a tutorial on file i/o that might help.

    http://www.cprogramming.com/tutorial/lesson10.html
  17. Replies
    6
    Views
    1,188

    Take a look at what your loop does. Say you enter...

    Take a look at what your loop does. Say you enter the following data.

    loan = 3.33
    rate = 3.1
    payment = 0.33

    (I like three's)

    So on month twelve, loan will equal 0.093329. The next...
  18. Replies
    8
    Views
    1,946

    Excuse me. Apparently I can no longer read.

    Excuse me. Apparently I can no longer read.
  19. Replies
    8
    Views
    1,946

    Disclaimer: The following advice is most likely...

    Disclaimer: The following advice is most likely useless.

    Are you using guards in your headers?



    #ifndef __HEADERNAME_HPP__
    #define __HEADERNAME_HPP__

    // Code
  20. Replies
    6
    Views
    1,194

    I see. Have you tried Caption.c_str()?

    I see. Have you tried Caption.c_str()?
  21. Replies
    6
    Views
    1,194

    Seconded. If you absolutely have to then I...

    Seconded. If you absolutely have to then I believe you would use something like...

    (void*)&strVal[0]
  22. Replies
    18
    Views
    2,953

    Your getWord function implementation takes one...

    Your getWord function implementation takes one argument (an ifstream) and in your main you are passing it an ifstream and a string as the second parameter.
  23. Replies
    18
    Views
    2,953

    Could you describe the errors?

    Could you describe the errors?
  24. Replies
    2
    Views
    5,536

    Absolutely. ...

    Absolutely.

    http://www.cprogramming.com/tutorial/lesson10.html
  25. Thread: labeled breaks

    by rynoon
    Replies
    7
    Views
    1,201

    It's best to avoid goto statements whenever...

    It's best to avoid goto statements whenever possible. I'd try something like...



    for(int u=0;u<N;u++)
    {

    //snip

    bool bOut = false;
Results 1 to 25 of 28
Page 1 of 2 1 2