General C++ Programming (Page 43)

How to output this file into a new program or code?
 
//code ofstream outFile; outFile.open("p4a.dat"); outFile << setw(8) << "90.0"; outFile << setw(8)...
[1 reply] : explain (by SamuelAdams)
Wrong answer in Output. Not calculating.
 
Whenever this program runs, the repeated statements gives off-the-wall numbers. Thanks for any help....
[7 replies] Last: I guess so, though it seems a bit overkill to me. FWIW, I've just t... (by MikeyBoy)
Help: Output not as nice as I thought
 
Hi. I want it to output like a table or at least nicely arranged but for some reason it didn't outpu...
[2 replies] Last: If this is your code, I think you should have been able to figure it o... (by SamuelAdams)
by Jijgee
unicode character
 
In mongolian cyrillic, one character has 2-byte size. 'а' - 2 byte, 'б' - 2 byte, 'в' - 2 by...
[14 replies] Last: I solved the problem on windows. #include <iostream> #include <stdi... (by Jijgee)
by Dalton
classes and semi-colons giving me troubles
 
Hey guys, I've got some troubles in this code declaring classes and having the program run due to so...
[3 replies] Last: When defining functions outside of the class or namespace scope, you n... (by AdrianH)
by madhuj
Create a string with wierd characters in c++
 
i want to create a binary file based on some hex data : Ex Input Hex :54313032202020303030 Out ...
[2 replies] Last: What are you trying to do? Go backwards from a generated hex file to ... (by AdrianH)
Name resolution not working as expected
 
I was trying something ( which is now obsolete due to some new understandings of templates I change...
[2 replies] Last: Now consider class A. It is a template class. It knows nothing what d... (by AdrianH)
by djibn7
ERRORS
 
The following game has errors and wont run! Help please. /* Guess the computers Number game *...
[2 replies] Last: The following game has errors and wont run! Help please. Instead of ... (by cire)
Can I make something similar to this beautiful game using C++?
 
I heard that you are only limited to your imagination with C++. If making a game like this is possib...
[1 reply] : First you will need to learn the basics. Tutorials which makes you do ... (by MiiNiPaa)
Main.cpp
 
Ok so I am currently trying to add and subtract two sets of integer arrays. When I run my program, t...
[1 reply] : well we would have to see your subtract function in the SafeArray clas... (by GreyOwl)
by xsesx
Programs outputs random numbers in answer. EDIT SOLVED
 
EDIT: SOLVED
[no replies]
design a class that can be used to represent a parabola, any help is greatly appreciated
 
First off thank you for taking out time on even thinking of helping me. So i've been up for way t...
[no replies]
by djibn7
WONT IDENTIFY ERRORS
 
I am having difficult to identify the errors in this program. Please help. #include "stdafx.h" ...
[1 reply] : Please use code tags http://www.cplusplus.com/articles/z13hAqkS/ init... (by Yanson)
First time with arrays, help
 
#include <iostream> #include <iomanip> using namespace std; void get_emp_rec(int &id, double &...
[4 replies] Last: no that is not what i intended and i believe i have fixed it (by baketballcourt)
by nunks
[ERROR] Class error
 
So i have a c++ file like this login.cpp #include <iostream> #include "login.h" using namesp...
[8 replies] Last: ok thanks for help ^^ (by nunks)
operator= Overloading error
 
I'm attempting to overload the = operator for a class designed to manage arrays of integers (inb4 ve...
[4 replies] Last: Right, thanks for your help. The instructor for the class wrote the ma... (by johnpants)
how to limit the number of function call in C/C++
 
In my program, i have a function, example: bool open(string szString); this function i have known i...
[2 replies] Last: Thanks you, Could you please illustrate program memory when we call fu... (by ta tung)
8 Queens
 
Does anyone scout the problem with my Eight Queens solver? the output is this 10000000 0000...
[2 replies] Last: errr... this code is scary. if(placeQueen(*new Queen(0,x))) is a mas... (by Zaita)
Working with strings
 
Suppose we had a particular site is sending only random variables via url, but before sending Random...
[no replies]
Converting cmdline tmain function into a library function.
 
I need to convert this code into a normal function that can be put into a library. Code: #include...
[1 reply] : Trying to make it work, not scanning properly. #include <windows.h> ... (by usandfriends)
Pages: 1... 4142434445... 84
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.