Search:

Type: Posts; User: Robertjh12

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,248

    A. Find the peak. B. find 1/2 the peak. Do...

    A. Find the peak.
    B. find 1/2 the peak.

    Do you mean width as in how many numbers from 1/2 to 3/2 of peak, or do you mean width as in the distance from each number?
  2. Alright, didn't think to do that, my head is a...

    Alright, didn't think to do that, my head is a bit mixed up with code
  3. Question about functions of string vs char string

    In the using of char strings(char x[50]) you are able to assign, change, and veiw what is in the string based on position. For strings(string x) is it possible to do the same? If so, would you mind...
  4. Replies
    16
    Views
    1,833

    Their poking at the use of cin>> rather then the...

    Their poking at the use of cin>> rather then the use of getline()
  5. Replies
    16
    Views
    1,833

    giving d a value worked, thank you. Before i did...

    giving d a value worked, thank you. Before i did that, the value for entering 1 was 2147348481, after, it gave the right answer.
  6. Replies
    16
    Views
    1,833

    I understand strings/chars, just not all the ways...

    I understand strings/chars, just not all the ways to use them. I am trying to use chars to do the roman numerals problem, because as an array, chars would be a bit easier to assign the letters to(at...
  7. Replies
    16
    Views
    1,833

    Thanks for the help, I did not know ' was...

    Thanks for the help, I did not know ' was different from "
  8. Replies
    16
    Views
    1,833

    How to fix this?

    int Y;
    char ett[10], out[50];
    cin>>ett;
    Y = atoi(ett); atoi() Makes Y the string ett
    for(int x = 0; x < Y;x = x + 1){out[x] = "I";}
    the error message is "invalid conversion from 'const char*' to...
  9. Replies
    13
    Views
    6,521

    Char arrays can be useful in some ways, strings...

    Char arrays can be useful in some ways, strings are quicker to use.
  10. Replies
    4
    Views
    843

    for the adding of the numbers, I would say using...

    for the adding of the numbers, I would say using a char array to hold each digit, and then adding them.
    C Strings in C and C++ - Cprogramming.com
Results 1 to 10 of 10