General C++ Programming - August 2014 (Page 21)

ifstream reader and iterations
 
I'm reading Mike McGrath's book on C++. This page I'm on is suppose to read an inut file and count the iterations, but it goes 0 and 1. This book isn't the best...
[2 replies] Last: Thanks, I've moved reader.close(); to the bottom but it still has the ... (by NewCComer)
by dmauk
Looking for Assistance on a Program - Stack
 
I have written a program that asks a user to input a string of digits, accepting a decimal as well, and separates the digits into different stacks. My professor...
[6 replies] Last: You have lots of compile errors in your code. Line 2: Correct hea... (by AbstractionAnon)
no Windows Form Application
 
http://msdn.microsoft.com/en-us/library/ms235634%28v=vs.80%29.aspx It says select Windows Forms application, but there is no such thing on my menu. I have Vis...
[no replies]
URGENT help needed please! Tic Tac Toe game upgraded!
 
Hello everyone! I have recently taken up C++ as a new hobby and have just finished going through the beginning stages of it. I have decided to create a simple g...
[1 reply] : I understand you think this is an urgent request for help, but please ... (by wildblue)
class_CallMemberFunction
 
hello, i am getting an error message saying that the float is not declared in line 14. tho this program is from a book that i am studying i have tried to figure...
[2 replies] Last: ok now i feel like an idiot i cant believe i overlooked that! thank yo... (by MaseratiDeluxe)
C++ Networking
 
Hello everyone, my question is how could I transfer a .txt file from Computer A to Computer B using c++. (over LAN) Please go easy cause I am new pretty new ...
[3 replies] Last: I think it depends on the OS you are using. In Windows, you could use ... (by fcantoro)
program with boost::serialization
 
I am writing program with boost::serialization and output with text archive. after I write the object to a file, I cant read deserialize it correctly. The recor...
[4 replies] Last: thx, the problem is solved though I dont know why. I implemented the s... (by breadbread1984)
Need Urgent Help Fixing Errors in Program
 
I'm creating a space simulator program for uni and I've got 3 errors that I just can't seem to fix. I need help ASAP as it needs to be in tomorrow morning, if a...
[10 replies] Last: This #include "ItemFactory.h" Items *newItems(string &description) { ... (by kbw)
how to send yahoo mail using basic socket program
 
Hi, I am trying to send yahoo mail using socket program. Using the commands like ehlo, starttls, auth login, data,.,quit. but starttls is error. yahoo close ...
[1 reply] : You're using Windows, right? If then, I'll take a look... (by iQChange)
Error:Declarartion terminated incorrect
 
Hello Everyone ! My name is raymond and I am new to this site I do not have much knowledge of C++ system as in my school the do not teach so much would u be k...
[6 replies] Last: Thank U sir may U live a hundred years...your right it could be at ran... (by raymondgeorge1982)
SDL rendering texture to another texture
 
I am trying to convert a graphical user interface that I developed using SDL1.2 to SDL2.0. My GUI uses a bunch of png images loaded from file which are rotated,...
[no replies]
The <<= operator in ostrstream
 
Hi All, I'm working on an old code and seen the following usage of the ostrstream class: ... ostrstream s; float f=1.234; s <<= f; ... I nev...
[4 replies] Last: Hi Cubbi, You were right, on my side the stand-alone program doesn'... (by CPP2012)
Windows Form Vending Machine, Need Help School Project
 
Help on school Project, regarding Vending machine, i really need help as my grades are really poor, please contact me at yeo_darren@yahoo.com and i will provide...
[no replies]
removing a substring
 
Hello. I have a C-based string. trying to remove some sub-string, I got at: char str ="alireza tavakkoli"; char* pos = strstr( str, "reza"); for(int j=pos-...
[7 replies] Last: #include <iostream> #include <cstring> using namespace std; int mai... (by naraku9333)
Unordered_map
 
Hi, Could you tell what is the hash function used to map key<->value pair in an Unordered_map? Is there a way to modify this hash function? Thanks!
[1 reply] : It depends on your compiler. You can modify its behavior using the "co... (by Duthomhas)
how to make a dockwidget have 'pin' effect in Qt
 
hi~,i have a issue. i want to make a dockwidget have 'pin' effect in Qt, but i can't find a good method,please give me some suggestions. Thanks.
[no replies]
by sbas10
If Statements
 
When I compile this it skips the over my error checking and ends the program. Can anyone point out what I am doing wrong? #include <iostream> #include <...
[2 replies] Last: Thanks! I just had to changed the all the "Greater than" signs to "Les... (by sbas10)
error: no matching function for call to
 
I'm serious stuck and really need some help. I'm working on a calorie counter. It's a simple program that reads ingredients from a nutrient file and a recipe ...
[1 reply] : if you pass a vector of Nutriant to seqOrderedSearch the second parame... (by Yanson)
unbuffered output need, not working
 
#include <iostream> #include <conio.h> using namespace std; int main(){ char c; while(c != '\n'){ c = getchar(); putchar(c); }...
[2 replies] Last: woops my google research too makes me realize the truthfulness of this... (by danicpp)
Need help with Code Errors
 
Hi, I am new to C++. This code wasn't showing errors, but when I debug it, I get errors. Any pointers would be great! #include <iostream> #include <st...
[2 replies] Last: Line 238, 245: Salaried default constructor defined twice. Line 239... (by AbstractionAnon)
August 2014 Pages: 1... 1920212223... 25
  Archived months: [jul2014] [sep2014]

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