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()
Type: Posts; User: mcorn
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()
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++...
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...
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! :)
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....
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...
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...
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...
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) :...
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...
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:
...
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...
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...
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],...
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!...
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...
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...
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...
Thanks for the tips! mcorn
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...
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...
Thank you... that helps. I'm sure you will see many questions from me when I start trying to learn C++. Mcorn.
Can someone tell me some differences between a compiler error and a link error? Thanks.
Thank you Salem! this will get me on the right track. Mcorn
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...