Beginners - June 2010 (Page 17)

ERROR C3861 microsoft visual 2010
 
HELLO c++ gurus, my name is andres and im here to ask for your help. #include <cctype> #include <iostream> #include <string> using namespace std; bool...
[11 replies] Last: In the error message, compiler can't find 'bermudas_or_coordinates' . ... (by hamsterman)
Time function call
 
Hello friends, I have this code: char *ParseDate( char* pDate ) { int Day; int Year; int Month; int Hour; int Min; time_t Date; tm NewDate; char d...
[2 replies] Last: Hello jecaestevez, thank you for the reply. But I don't handstand whe... (by giovannigiorgio)
Word Counter
 
I have to create a word counter function which counts the words of a string. When I run the program, it doesn't end. This is what I have created so far: /...
[3 replies] Last: You do char *revString = string2; and its maybe fault becaus you dont... (by jecaestevez)
How to split lines of code
 
Hello, How do I split a line of code so that it is better readable? Thank you!
[5 replies] Last: Oh sorry, that was a stupid question. I should have given it more thou... (by oringent)
by michy
constructor
 
hi experts, I have a question about class constructor. For example: class salesman{ private: string name; int ID; public: salesman(); }; salesma...
[4 replies] Last: oh thx, you're guiding me the way to solve my problem... THX firedrac... (by michy)
Question on my code.
 
I'm running into some issues with this code and not sure where to turn next to fix it. Can anyone help? Here is my code: http://pastebin.com/11fDGyw7
[4 replies] Last: So what should I add to fix it and where? (by SouShadow)
Simple String Program
 
I am creating a program that can count the number of characters and display backwards a string that a user inputs. I got the string length down, but not worki...
[7 replies] Last: @ kempofighter Why not help him satisfy the requirements of his home... (by Duthomhas)
vector declare in header file
 
I am trying to declare a vector in my header file. Here is what is in my header file (yes, i used #include <vector>) public: std:vector<int> testV...
[17 replies] Last: jecaestevez was just pointing out what I did which is that you can mak... (by kempofighter)
passing variables
 
So I took this program from a tutorial that I have been following and modified it to give the average of ten grades. I am having two problems, 1. I don't really...
[1 reply] : You need to understand scope. First the variables within getGrades do... (by kempofighter)
by Toudo
Triangle-Programm
 
The program should operate as follows: Only the user must enter any values (a, b, c, alpha, beta, gamma). Then the program will calculate the angles and sid...
[2 replies] Last: Some other problems ( in addition to those noted by Athar ): 1) Data ... (by closed account D80DSL3A)
String as Variable Name
 
I'm trying to use a string as a variable name but I don't know how. For example, str declared as a string and gets the value of "number" and I wanted to use th...
[11 replies] Last: The generic structure of the C language is good to start with (impleme... (by Albatross)
Guys really stuck!
 
If anyone can offer there help it would be much appreciated! i have a post saying program code problems and all the info is there. I was told this is the plac...
[6 replies] Last: Go back to the original post and follow the instructions here. http:/... (by kempofighter)
by vulee
recommending compiler flag options for beginer
 
What would be the compiler flag options to identify errors and dangerous warnings for g++? Thanks
[5 replies] Last: Would the compiler know that the method bool run() has been declared ... (by Galik)
Assingment variable problmes
 
Ok so I have this game I am working on and I am trying to stream line it a bit by cuting out a lot of the if else statments by replacing them with this; cas...
[4 replies] Last: Thanks Master, that fixed it. ORO and I just got out of my first calcu... (by Kakashi)
by bruynz
2d array initialization and inaccessible data members.
 
So I am writing a class that will randomly select a colour from an array of colours. The problem is that I can't seem to initialize the constructor with the val...
[1 reply] : In your colour constructor, colour_list =... is an assignment to the ... (by cmorrow)
how to read data from .txt if the row is not fixed?
 
hello guys, hope u're fine. i would like to ask your opinion on how to read the data from text file. The data doesn't have a fixed number in its rows. I give u ...
[3 replies] Last: string nameFich ="fich.dat"; string line; ifstream fich; fich... (by jecaestevez)
program
 
Thanks Everyone.
[7 replies] Last: Please don't erase your original message even if it's to "thank everyo... (by cnoeval)
what is computationally more efficient
 
Hi there, I want to compute a geometric average. would it be faster to multiply values and then take the nth root over the result, or to sum logs and then t...
[1 reply] : The best and often the only way to tell is to test both variants. How... (by Athar)
50 errors in 79 lines??
 
Hello all, After my Tic-Tac-Toe game I wanted to make 4 in a row. I would need a much larger board, so I used a multidimensional array. But now I get a bunch...
[9 replies] Last: nvm, topic solved! (by xander333)
Class Copier function doesn't want to copy.
 
Hi all, I am just testing my new knowledge of Shallow vs. Deep copying by writing my own copy function. However it's producing this error error: invalid...
[10 replies] Last: Thank you all, Think that's sorted - many thanks again. Cheers s... (by Tset Tsyung)
June 2010 Pages: 1... 1516171819... 26
  Archived months: [may2010] [jul2010]

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