Beginners - November 2012 (Page 22)

Writing to second line
 
Hi all I have two what I hope are simple questions. using namespace std; COLORREF centerColor; POINT cent; int main() { int int_var; HDC hdc_ = Get...
[7 replies] Last: Thanks. I'll try that. (by MartinMH)
pointers
 
in the syntaxes below 1.convertToDollar(&euro); 2.convertToDollar(euro); suppose euro is an integer variable ....... what is the difference? and: Is thi...
[3 replies] Last: then in functions ....if you have not used &....the program will not c... (by Clearner1)
MOVIES and VIDEO GAMES
 
Hey all, i am really passionate about games and movies and am hoping to get a job in either of the two industries. Can anyone tell me what language i should be...
[no replies]
Custom stream manipulator
 
I am trying to read a file where each line contains data separated by commas. I passing each line to a istringstream object to treat that line as a stream. Now ...
[6 replies] Last: @andy: luckily no @Catfish2: thanks for the advice, I'll get on it. (by turingcomplete)
Functions :'(
 
//i was trying the use the functions for this particual program but i keep //getting erros in it even after reading the textbook can you please help me //tha...
[8 replies] Last: I see Thank you very much :) (by chikaibeneme)
Overloading of the < operator
 
Hi everyone. I'm dealing with those lines of code that does not compile: bool operator< (const GlutSphere& first_sphere, const GlutSphere& second_sphe...
[4 replies] Last: If you need it for use with the std::sort alg, it's better to use a fu... (by andywestken)
For loop problem
 
I'm very new to c++. I was just practicing and i decided to make a little secret santa program. Everything is working fine except for the first for loop.(line 2...
[3 replies] Last: Glad I could help out! (by Wolfenstien)
by enemy
functions, strings
 
Hello! I have to write a program writting a line made of * if the input number is odd and 0 if the number is even. Have to use functions with stings. I could n...
[2 replies] Last: in your first post you are declaring functions inside another function... (by Darkmaster)
Question requirement (1,2,3)
 
#include <iostream> #include <string> #include <conio.h> using namespace std; template< class T > class Item{ private: public: Item(); ~Item...
[40 replies] Last: i did it myself d. my tutor say cannot show out the class object unles... (by Felicia123)
user input and instantly provide a feedback
 
Beginner here..., i was tasked to make a adventure game and have trouble at this one part.. after reading past most of the forums here, it is said that system()...
[16 replies] Last: Thanks for all the help ! - CASE CLOSED - or - PROBLEM SOLVED - (by MewEight)
by Tulock
Dam strings...
 
Well I've been picking at a program for some time now, and I've come to a obstacle.... I'm looking to have the program take in so many characters. ( mostly sen...
[6 replies] Last: [quote=Tulock]and what letters or if a space occurs at points 2 4 6 8 ... (by Chervil)
Help needed in verifiying the code
 
There are some kind of Errors in the Following item: For some Reason SetAt,str.SetAt(pos), & for( char c : s ) if( !std::isdigit(c) ) ...
[13 replies] Last: Bu benden Halile gelsin :) #include <iostream> #include <string> using... (by sck123)
do while loop failure
 
First off here's the program #include <iostream> using namespace std; int main() { int answer; cin>>answer; if(cin.fail()) { do ...
[2 replies] Last: http://www.parashift.com/c++-faq/stream-input-failure.html You should... (by cire)
Class assignment - Decode
 
Hello I can normally do my class assignments no problem but today I am having an issue with one of them. I have a text document that has been encoded and I am t...
[3 replies] Last: unimportant content removed. (by closed account D80DSL3A)
by h4344
Comparing a TCHAR to "whatever" not working
 
Im trying to have a while loop go through until a TCHAR variable is = "name" but after the loop completes it reports back that it was never = to *name* but aft...
[2 replies] Last: Thanks. (by h4344)
string manipulation
 
i am trying to get the total value of a string for my encryption program but am only getting value of the first character of the string. here is my code for(...
[1 reply] : Make sure to put your code in [co de] tags so it is formatted proper... (by firedraco)
by CPDubs
Error Message
 
I’m making a Tic-Tac-Toe game, when I ran the program this was my output. How can I fix this? Would you like to play Tic-Tac-Toe? (Y/N) error: failed to l...
[2 replies] Last: Incis B wrote: Because you only have 11 possible positions in the... (by TheIdeasMan)
Error while testing.
 
Hello. I have the following files& code Main.cpp #include "move.h" #include <ncurses.h> int main() { moveClass moveObj; moveObj.st...
[1 reply] : It's a linker error. If you are using an IDE, make sure that move.cp... (by Peter87)
Forever looping through the array
 
Hi everybody. I'm having trouble making a leap of imagination and solving this on my own. Here is the problem. I need to step trough the array of ints, starti...
[6 replies] Last: Thank you every body! Modulo did the trick! (by Stremik)
by Tulock
Anyway to make this simpler...
 
Probably to much to ask, and I think I have the code down to as simple as I'm going to get it. However I'd still like someone else to look at it to see if it's ...
[5 replies] Last: instead of declaring each 'counters' like int i; int j; why don't... (by MinwooJu)
November 2012 Pages: 1... 2021222324... 75
  Archived months: [oct2012] [dec2012]

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