Search:

Type: Posts; User: otchster

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,409

    They are declared. I think there may be a syntax...

    They are declared. I think there may be a syntax problem that I can't seem to find after staring at that block of code for 15mins.
  2. Replies
    8
    Views
    1,409

    Function Error

    I wrote this function for displaying a matrix, but it won't compile..

    What am I doing wrong?




    void display(int A[] [], int m, int n)
    {
    for (i =0; i< m; i++)
  3. Replies
    19
    Views
    3,808

    How many numbers do you wish to input?: 9...

    How many numbers do you wish to input?: 9
    Number? 12
    Number? 23
    Number? 45
    Number? 4332432141
    Number? 34
    Number? 23
    Number? 12
    Number? 9
    Number? 2332432145254325325
  4. Replies
    19
    Views
    3,808

    Thanks everyone, my program now fills an array to...

    Thanks everyone, my program now fills an array to the amount of the users preference, to a maximum.

    The next step is to have the user input a number, search the array, and then respond with an...
  5. Replies
    19
    Views
    3,808

    I wish to go the route of a maxinum array.. ...

    I wish to go the route of a maxinum array..


    #include <iostream>
    #include <string>
    #include <algorithm>


    int length;
    int list[100];
  6. Replies
    19
    Views
    3,808

    I am new to C++ and I know nothing about vectors,...

    I am new to C++ and I know nothing about vectors, etc.. Also, I haven't been taught anything about them in my class, so I'm guessing that they shouldn't be required to code the program I am trying...
  7. Replies
    19
    Views
    3,808

    Im having trouble figuring out how to take an int...

    Im having trouble figuring out how to take an int input from a user and create the array with that amount..


    #include <iostream>
    #include <string>
    #include <algorithm>


    int length;
    int *...
  8. Replies
    19
    Views
    3,808

    Size of Array, user inputted..

    I am familiar with basic arrays...

    int list[50]
    Creates an array named list, that is 50 long.

    How do I go about coding an array that is the length that the user inputs?

    I thought about...
  9. Replies
    22
    Views
    3,372

    #include #include ...

    #include <iostream>
    #include <string>


    std::string string1; //First string
    std::string string2; //Second string

    int main()
    {
  10. Replies
    22
    Views
    3,372

    Ok, when I try to use substr, heres what I get: ...

    Ok, when I try to use substr, heres what I get:


    #include <iostream>
    #include <string>


    std::string input1; //First string
    std::string input2; //Second string
    int length;
  11. Replies
    22
    Views
    3,372

    Heres where I'm at... #include ...

    Heres where I'm at...

    #include <iostream>
    #include <string>


    std::string input1; //First string
    std::string input2; //Second string
    int length;
    std::string crop; //Second...
  12. Replies
    22
    Views
    3,372

    First off, thanks everyone for their input thus...

    First off, thanks everyone for their input thus far..

    Heres how I want to handle this..

    Two strings are inputted, I need to see if the first string begins the second string (hell, hello = true)...
  13. Replies
    22
    Views
    3,372

    Ok, got it. I knew I was interpreting it...

    Ok, got it. I knew I was interpreting it incorrectly.

    What control statment is reccommended to search a string for another string??

    Heres where I am at:



    #include <iostream>
    #include...
  14. Replies
    22
    Views
    3,372

    Simple Function program, with Strings?

    I am using O'reilly's Practical C++ Programming book in its 2nd edition. I have to create a program to complete the following question:

    Write a function begins(string1, string2) that returns true...
  15. Replies
    4
    Views
    1,959

    Thank you so much, your post totally made me...

    Thank you so much, your post totally made me understand what I wasn't. Take care.
  16. Replies
    4
    Views
    1,959

    Help with a simple C++ program

    Hey everyone, this is my first post in some time.. I need to create a simple C++ program that will count the number of words in an inputed sentence. I will admit that I am completely lost on how to...
  17. Replies
    5
    Views
    2,220

    could i see an example code. the excerpt is...

    could i see an example code. the excerpt is confusing me. thx
  18. Replies
    5
    Views
    2,220

    im not sure how to understand this. the...

    im not sure how to understand this. the assignment called to incorporate the different sorts and record the times it took to sort the data.
  19. Replies
    5
    Views
    2,220

    Simple Sorts Confuse ME =/

    In my class we are learning about different sorting methods. Im kind of confused about all of it, and the fact that functions still confuse me dosen't exaclty help either.

    We have the code...
  20. Replies
    2
    Views
    1,408

    dont know whats wrong

    i think this program is right, but i cant figure out why its not working.





    #include <stdio.h>
    #define SIZE 10
    double number[ SIZE ];
  21. Well my fault, I assumed this was a help message...

    Well my fault, I assumed this was a help message board, one that helps one in need. Not a board where people say "nope, thats wrong" and give no help or examples, and then proceed to tell me to do a...
  22. hmm, check what I did. Is this any closer? ...

    hmm, check what I did. Is this any closer?



    #include <stdio.h>

    int main()
    {
    FILE *afile, *anotherfile;
    int number;
  23. Will you please show me an example on how to...

    Will you please show me an example on how to incorporate getc and putc. All I can think of is how i presented it, similar to scanf and printf. I am referring to a text that dosen't show a good...
  24. the below is still throwing errors. ...

    the below is still throwing errors.





    #include <stdio.h>

    int main()
    {
  25. #include int main() { FILE...

    #include <stdio.h>

    int main()
    {
    FILE *afile, *anotherfile;
    int number;

    afile=fopen("fun-with-numbers.txt","r");
    anotherfile=fopen("more-fun-with-numbers.txt","w");
Results 1 to 25 of 30
Page 1 of 2 1 2