Search:

Type: Posts; User: mcorn

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,308

    Errors?

    Hi,
    I appreciate the help on this. I was given the following code:


    #include<iostream>
    #include<fstream>
    #include<string>
    #include<ctime>
    #include<cstdio>
    int main()
  2. Replies
    4
    Views
    1,308

    Random Pick from a file

    Hi all,
    Can anybody show me how to code a program that will pick a random string of text from a file stored on the local drive of a pc and display it on the screen? I have a copy of Visual C++...
  3. Thread: Random picks

    by mcorn
    Replies
    3
    Views
    1,104

    Random picks

    Hi,
    I am looking for some code that will pick a random name from a text file of names and dislplay the name on the screen. This seems easy enough logically, however, I'm not a programer. Is there...
  4. Replies
    5
    Views
    1,898

    I guess the only reason I did that is...

    I guess the only reason I did that is because....I don't know ...I've been at it too long....or "idiot" comes to mind! Thanks for the help! :)
  5. Replies
    5
    Views
    1,898

    Thank you Moi ! Is there some how to accomplish...

    Thank you Moi ! Is there some how to accomplish this with data casting...or something more on a beginner level? I impressed with your knowledge, however, you may as well be speaking Egyptian to me....
  6. Replies
    5
    Views
    1,898

    Error Description

    Hello,
    Can somebody tell me what this error means?

    : error C2676: binary '*' : 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' does not define this...
  7. Replies
    19
    Views
    2,761

    The only reason I'm doing that is because I'm...

    The only reason I'm doing that is because I'm currently taking a course in C++ and the instructor requires this in a project! Personally I think using them together is not beneficial *shurg *(at this...
  8. Replies
    19
    Views
    2,761

    Thanks...I somewhat understand my error! ...

    Thanks...I somewhat understand my error!
    Also, If I wanted to create child class, do I just need the class to inherit it in order to use the same stucture?
    something like

    CNewclass: public...
  9. Replies
    19
    Views
    2,761

    Thanks all! Here is still what I get.When I tried...

    Thanks all! Here is still what I get.When I tried veh1.vinfo.writeinfo(); as elad suggested here is the error message that I get. (I using Visual C++ 6.0 if that makes a difference.)

    er.cpp(9) :...
  10. Replies
    19
    Views
    2,761

    Classes and structures

    Hello. I am having trouble accessing a structure from a class. I don't think I'm using the dot operator correctly. Could somebody help me with this issue? I've commented where the error occurs in the...
  11. Replies
    1
    Views
    955

    Classes and Structs

    Hi
    Could someone show me an example of how to use a struct in a base class and then access the struct from a child class? Thanks for any help!



    class cBase_Class
    {
    protected:
    ...
  12. Replies
    1
    Views
    1,395

    classes and structures

    Hi, I was wondering how a person could use a structure and have classes access it. (I'm not sure if I'm using the correct terminology or not.) Would the struct go in the public: portion of the base...
  13. Thread: randon numbers

    by mcorn
    Replies
    3
    Views
    993

    Hi, I'm sorry, I was tactless on my question!...

    Hi,
    I'm sorry, I was tactless on my question! What I'm trying to do is generate random numbers between 1000 and 2000. Next, I'm generating random numbers between 0 and 1000. I can't get it to...
  14. Thread: randon numbers

    by mcorn
    Replies
    3
    Views
    993

    randon numbers

    Hi,
    Could someone look at this and tell me where my mistake is? Thanks. Mcorn


    #include <iostream.h>
    #include <stdlib.h>
    int Fill_It(int, int, int, int [20]);

    int i;
    int sample[20],...
  15. Replies
    14
    Views
    2,131

    Hi, Ok I think I'm getting closer but something...

    Hi,
    Ok I think I'm getting closer but something is still not right. When I run this code it should reverse the code entered. It only reverses the first 2 characters. Where am I going wrong? Thanks!...
  16. Replies
    14
    Views
    2,131

    Hey, Thanks all! Most of the code is way above...

    Hey,
    Thanks all! Most of the code is way above me right now; I haven't gotten that far in my learn C++ in 21 days book. However, I do recognize the for loops! Could somebody show me an example using...
  17. Replies
    14
    Views
    2,131

    reversing strings

    Hi,
    I found this code in the source section of this web site. My question is this; how could a person cout the string entered in reverse? For example, if the user enters "der" the program should...
  18. Replies
    4
    Views
    999

    Hi, I'm using pointers because the book that I'm...

    Hi,
    I'm using pointers because the book that I'm learning from stated that in order to return 2 or more values I must use pointers. I guess I could have misunderstood the point. If pointers are not...
  19. Replies
    4
    Views
    999

    Thanks for the tips! mcorn

    Thanks for the tips! mcorn
  20. Replies
    4
    Views
    999

    passing functions

    Hello,
    Could somebody tell me how to pass something from one function to another? For example, say I had 3 functions, one to get two numbers, one to add the two numbers together, and one to take...
  21. Thread: parameters

    by mcorn
    Replies
    2
    Views
    894

    parameters

    Hi,
    I have something wrong with some code that I'm trying to write.
    The error message said "function does not take 1 parameters"
    I'm using Visual C++ 6.0 and the MSDN Library states that I'm...
  22. Thread: compiler error

    by mcorn
    Replies
    4
    Views
    869

    Thank you... that helps. I'm sure you will see...

    Thank you... that helps. I'm sure you will see many questions from me when I start trying to learn C++. Mcorn.
  23. Thread: compiler error

    by mcorn
    Replies
    4
    Views
    869

    compiler error

    Can someone tell me some differences between a compiler error and a link error? Thanks.
  24. Replies
    12
    Views
    1,827

    Thank you Salem! this will get me on the right...

    Thank you Salem! this will get me on the right track. Mcorn
  25. Replies
    12
    Views
    1,827

    I'm making it worse.

    Each thing that I try is making it worse. Could someone look at this and at least tell me if I'm somewhat heading in the right direction?


    FILE *test;
    FILE *test1;
    void parse(char *){
    }

    int...
Results 1 to 25 of 34
Page 1 of 2 1 2