General C++ Programming (Page 2)

How to make c++ choose a random string
 
How do I make it so my program chooses a random pre-made string? or a random number or a random numb...
[1 reply] : Create 2 strings. use this - to insert a random number between 1 and ... (by TarikNeaj)
Problem in linked stack(Dynamic Stack)
 
when the program is executed there are 4 options a: push b: pop c: view stack d: exit all of...
[2 replies] Last: i think you did'nt got my point. just execute the program and enter o... (by amarjit86255)
How can i make my timer run while I can input? Help please.
 
Like if I hit Escape button from my keyboard, the loop will stop? #include <iostream> #include <co...
[3 replies] Last: Yeah it's working but you need some ... libraries and flags If you are... (by Gamer2015)
Need to declare a class ( defined in cpp file ) as friend
 
Hello, I have a namespace and class defined inside a cpp file (say x.cpp ). I want to declare thi...
[5 replies] Last: [quote=rajcrec]Now I want a function within C as a friend function for... (by Peter87)
heapInsert Array Corruption error?
 
I am trying to insert a number into a built heap using an array. However when i add a number and reb...
[3 replies] Last: As far as I know you can't just "extend" an array by writing past its ... (by Horscht)
Text Alignment Using Setw()
 
Hi, I'm trying to align text on the console and I'm having trouble getting everything aligned to whe...
[2 replies] Last: Thank you! That was helpful and helped me better understand the use of... (by RelentlessChaos)
need help
 
This is my code for the rainfall array.. // Arrays Lab.cpp : Defines the entry point for the consol...
[1 reply] : The problem is that you sort the array before calculating the highest ... (by Peter87)
Game of Life with Fstream
 
Can somebody show me how to start this and layout the program? I have no idea where to begin. I have...
[1 reply] : http://lmgtfy.com/?q=game+of+life+c%2B%2B (by TarikNeaj)
a method use while() difficult to understand
 
hi ! my friend . one beautiful day , i was met a part of code that i cant understand that is...
[4 replies] Last: hiihih thank you very much!!! i love all (by chauvoluuhuong)
Interesting Exercise. (c++)
 
Planet's radius is "R". Also, 2 satellites were located(longitude and latitude) another places. Ho...
[3 replies] Last: http://lmgtfy.com/?q=sphere+distance (by MiiNiPaa)
How to display a string per line (fstream)
 
How can i display a string per line on the .txt i made? There are 2 .txt files, the one has: John ...
[9 replies] Last: Still need help D: (by Zanmato)
I want to create .h file to loop a program
 
Hello, What I want to create is a file that I can Include in programs I create in the future. The p...
[1 reply] : If you want to loop your program just create a driver function for you... (by E l e c t r i c)
WTF is going on here on a lower level?
 
const int& x = 3; Simple one liner, but am a bit confused. Doesn't a const& store the address of ...
[8 replies] Last: This is what the standard specifies: const int& x = 3; When this c... (by JLBorges)
1 semester of Training, can I incorporate songs into my program?
 
I know all the basics of C++ but I although I don't understand the complex stuff, I want to learn. ...
[2 replies] Last: Don't reinvent the wheel. Find a library that does what you want and u... (by LB)
ListaCRC2
 
#include <string.h> #include <iostream> using namespace std; #include "contenedor.h" #include "b...
[1 reply] : Dont Double Post. (by TarikNeaj)
ListaCRC
 
class Lista{ private: Nodo* inicio; public: //Constructor Lista(){ inicio= NULL; } ...
[1 reply] : First of all, you are a software developer so please try to code in en... (by Gamer2015)
If the user enters the memory key (“m”), your calculator should display the last value or operator stored in memory.
 
private: System::Void One_Click(System::Object^ sender, System::EventArgs^ e) { if(endP...
[5 replies] Last: You can start by doing what I told you to do. (by TarikNeaj)
I/O from a text file
 
Im getting some crazy error messages.I have to use the data from the text file to calculate the avg ...
[1 reply] : 1) You are trying to manipulate closed file 2) You are trying to write... (by MiiNiPaa)
I need some help
 
I would like to create 250 vectors using a for{} loop, having the name changing by i.Exemple i want ...
[7 replies] Last: Well, there is always the range-based assignment: http://www.cplusplus... (by keskiverto)
assembly language C++
 
Im just stuck on these 2. I know I am overthinking them. Write an assembly language program that ...
[6 replies] Last: In case OP still doesn't get the hints: http://en.wikipedia.org/wiki/... (by Smac89)
Pages: 1234... 51
  Archived months: [jan2015]

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