Beginners - June 2009 (Page 7)

iostream path
 
Hi, I am getting an error on the last line posted here. I have printed the string and it works as i want it too, but using it as the path for the iostream is...
[1 reply] : file streams get C strings as arguments. You can fix this by calling s... (by Bazzy)
by arshak
entering web-sites
 
Hi. I wanna write a program, that enters a web-site (for example www.yahoo.com). Can u help me and write the code?
[3 replies] Last: He probably means Logging into a website. (by junglePIMP)
Mouse movement on Image
 
Hi, i am new in this forum. I have searched through this forum and found another post about mouse movement but it is somewhat different, so i am actually kind o...
[2 replies] Last: Erm, can you elaborate more on subclass? I have never tried using it b... (by XnarutokoolX)
How to make an executable file?
 
Hello. I'm using Visual Studio 2008. I've done a simple program and i want to make an executable file that will run on another computers without visual studio o...
[14 replies] Last: Sorry, I've always used either VC Enterprise or Professional edition s... (by Lodger)
by wretch
sizeof(char[]) lost if char[] passed into function?
 
I have some questions about the following code: 1. Why does sizeof(myCharray) go from 15 in main() to 4 in strInfo(). Is the only way to get correct size in...
[5 replies] Last: Thanks helios and Disch for the very helpful explanations, I think... (by wretch)
Char arrays in a text file
 
Ok, I have a problem. I have to make a program in which there is a struct Student with 3 char arrays. The information is written in a textual file and I need to...
[2 replies] Last: Hmm..I just outputted a char array which is size of 20 and has charact... (by arnes99)
Reading from a file and storing it in array
 
Hi iam new to C programming.i have text file with 1 line containing 10 numbers each separated by blank space.i am able to store the 10 numbers in an array and u...
[3 replies] Last: Here is an example in the vein of what I believe you are asking. It c... (by jsmith)
by Pether
[Quick]Formatting output. Adding empty spaces. (1,2)
 
I stole my thread to ask something new. I read somewhere else how to format the output text, say, add 20 spaces before the actual output comes. Something ...
[21 replies] Last: Gah, this is getting crazy. Somehow that only works on some lines, ... (by Pether)
if-else statement in a function
 
How do you call a function (in c++) that is only composed of if-else statements and cout(s)? I need it to be able to repeatedly display the cout statement in...
[5 replies] Last: Oi, both of you. Alright, computerquip , I'll admit that you have a p... (by QWERTYman)
Calculation problem
 
hi it's musa again.now i have a new problem.i write some code using rand() but it can't calculate DEVIATION correctely like it show 0% when it will be 0.39% ....
[1 reply] : Change all your ints (not the for indices) to doubles. EDIT: Oh, al... (by helios)
Int type questions
 
well...According to the tutorial or other online sources or things I already know, I would like to say something about them and wanna ask questions about the in...
[5 replies] Last: Awesome and now I got it. And now after the search of wiki, I understa... (by kenryuakuma)
Inputting file for first time for dynamic array
 
I am trying to read in my file for the first time so I can set my dynamic array of a class. The code I have compiles but it hangs up when I try to run it. ...
[3 replies] Last: Because I make stupid mistakes like that. It works now, thanks! (by forre65413)
how to skip line in input file.
 
Hi, I am getting info from a text file and putting it in an array. There is a blank line that I want to skip over. b/c when I use getline(file, array ), the...
[1 reply] : Read the line into an intermediate string. If !string.size(), don't ad... (by helios)
by Master
whats wrong with visual studio?
 
hello all, im having a problem with my Visual studio 2008 , i recently tried to move my project to VC++ environment ( from codeblocks) , after making a console ...
[5 replies] Last: tanx, i checked it there were couple of errors (because of not comment... (by Master)
by ljin
Copy constructor and assignment operator for Container Class
 
I am trying to construct a template class Set<T> which models a container like the mathematical notion of a set. I should really provide an assignment operator...
[10 replies] Last: I know where I am wrong. The elements is an array of pointers to the ... (by ljin)
Rand() mis-generates numbers in the hundreds of thousands?
 
This program is a game. Two random numbers are generated, and the user must guess where the two numbers will match at. However, my rand() function generates num...
[9 replies] Last: Warrior, the real problem with globals has nothing to do with performa... (by jsmith)
by whate
is it a pointer?
 
Hi guys, I haven't coded c++ for more than 5 years and need some help. I got following code and can't tell if the "*" is pointer or it's something else, espe...
[3 replies] Last: The line is not *token = strtok(buffer, " \t"); , the line is char ... (by Bazzy)
Age Disadvantage in finding C++ programming required jobs
 
Hi, I am currently trying to learn C++. I hold a Bachelor degree in Mathematics, 1999 and currently studying Masters Degree in Quantitative Finance - only ...
[1 reply] : It would possibly not be a disadvantage in a specialised field, with a... (by closed account z05DSL3A)
by Toader
need to modific code
 
i writed this code.. but need to can chenge more 1 words.. how to do this? if i write 1 word that chenge.. but cant do 2 or more words((( help plz #include...
[2 replies] Last: no, dont work(((( that allways say "cant find this word" plz help ... (by Toader)
problem with if/else if
 
ok so i am almost completely new to c++, and i am just messing around with some code to learn, so here is the problem. it keeps goingto the pass word is incorre...
[10 replies] Last: In C++, the standard library header is cstdlib.h but cstdlib.h is ... (by closed account z05DSL3A)
June 2009 Pages: 1... 56789... 18
  Archived months: [may2009] [jul2009]

This is an archived page. To post a new message, go to the current page.