General C++ Programming - April 2013 (Page 16)

by areej
my q
 
Enter a number of integer values in the first edit box. Click Accept button after each entry in ord...
[no replies]
C++: Reading from file and delimeters?
 
I have a file that looks like: Student ID:88152; Grades: 83.67, 92.45, 74.43, 97.95, 76.45; Name:Ab...
[1 reply] : sounds like a job for getline(fin, str, ';'); (by Yanson)
2D Array programming questions
 
first time here just like to intoduce myself, my name is chris. im taking a programming class and ob...
[5 replies] Last: alright i seriously cant fill the array can someone please help. Here ... (by thatonenewguy)
cin not waiting for user input!!!
 
Hello, since around 2hours im really fighting with the cin command. It doesn't matter what exactly ...
[4 replies] Last: ^ unnecessary complicated. > It's the endl you have after the first c... (by ne555)
by Aceix
Meaning of some expressions
 
bool operator()(char const *a, char const *b) { return std::strcmp(a, b) < 0; } So what does the...
[3 replies] Last: You should take a look at the link provided above, strcmp can return a... (by Smac89)
iso forbids comparison between pointer and integer
 
hi im trying to make a program that prints out an 8 by 8 board with 1 queen on each row For example,...
[7 replies] Last: ok got it thanks for your help and youre right that is a silly input i... (by fresheze13)
When to use else if
 
I have a bit of code where doing else if after an if is a different outcome than if I just do an...
[2 replies] Last: Note that there is no "else if". Your second example is equivalent to... (by keskiverto)
by ttj
Need help: char array to string... string becomes garbage
 
Hi. I'm trying to "tokenize" a string using std::string functions, but I stored the text in a char a...
[3 replies] Last: Thanks Disch! Using the ANSI versions solved the problem; no complaint... (by ttj)
by BillH
which graphics library is best
 
I am fairly proficient with c++ and am now attempting to learn graphics programming. I would be inte...
[3 replies] Last: Thanks to you both for the advice. It looks like trying SFML 2.0 then (by BillH)
Help please!!!! (1,2)
 
In this code: // Ex8_05.cpp // Overloaded assignment operator working well #include <iostream> #in...
[24 replies] Last: Also based on this I can conclude that my author was wrong? right? (by Anmol444)
how do i replace the 2nd occurrence of a letter with x?
 
Hi guys, supposed i have a word hammer. how am i suppose to search for the 2nd occurrence of the le...
[6 replies] Last: thank you vlad! You are a life saver! (by CLearner88)
C++ Using QT Creator
 
Hello I seem to keep getting random error messages when trying to compile and run my program. ma...
[13 replies] Last: im still getting the error (by faieq92)
by azuew
azuew
 
Hi everyone. We have a project which is given by our lecturer and we don't move on this project. Fir...
[no replies]
how do i take into account the white spaces in a string?
 
Hi people, as i am doing an encryption program on a playfair cipher. I am now stuck on a problem on ...
[4 replies] Last: sorry about that, the code is way too lengthy to be posted here. I wil... (by CLearner88)
Can't run this project! Help Solve it pls
 
Please help me solve this problem. I think the problem is not declaring it or having it as a parame...
[12 replies] Last: Can anyone help me with this? just solve my problem at //Main and //Re... (by training91st)
rand()%10 generating the same number
 
hi i assign rand()%50 to operands ; operands = rand()%50; operands = rand()%50; ...
[4 replies] Last: @ Stewbond: you probably mean C++11's std::iota() , which does not ye... (by Catfish4)
C++11 Scoped Enums
 
Hi Guys, Can you please point out what is wrong with the code below? I keep getting this error on E...
[3 replies] Last: enum class do two things. 1. It forces you do access the enumerators b... (by Peter87)
by oneaz
while statement
 
I'm confused with this one particular while statement. Can someone explain when will the loop be ter...
[4 replies] Last: Oh ok, I get it now. Thanks for the help! (by oneaz)
char question and another problem
 
hello everyone, i have a question about chars and ill post the code also i have another question. ...
[5 replies] Last: No problem everyone one of us has been in the same position as you. Ju... (by closed account 3qX21hU5)
by LB
Delegating ctors & reference vs rvalue reference
 
#include <iostream> struct Test { Test(std::istream &s) { int x; s...
[2 replies] Last: Oh, hah. For some reason I thought that was infinite recursion. Thanks... (by LB)
April 2013 Pages: 1... 1415161718... 53
  Archived months: [mar2013] [may2013]

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