General C++ Programming (Page 3)

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)
#include <string.h> #include <iostream> using namespace std; #include "contenedor.h" #include "b...
[1 reply] : Dont Double Post. (by TarikNeaj)
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: (by Smac89)
by Dkob1
It is not outputting the lowest and largest frequency part correctly. How do I fix the part at the e...
[5 replies] Last: Ok, thanks. I think I got it now. (by Dkob1)
My loop is not saving lines in text file. HELP.
int sec; sec = 60; int min; min=59; int hour; hour = time-1; while(true){ Sleep(1000); ...
[9 replies] Last: for example. If you change the loop to this int counter = 0; while(c... (by TarikNeaj)
Message passing in UML and C++
hi. I studied msg passing between objects but can anyone please show how it is really done in cod...
[1 reply] : Have a look at: (by MikeyBoy)
Class member: When to declare pvt and public
Please explain to me with least ambiguity when is a class member should be declared public and when ...
[4 replies] Last: Structure whose only purpose is to group some values together. It has ... (by MiiNiPaa)
Compile but not Execute
Geany does not indicate any errors. It compiles successfully, but does not execute. #inc...
[1 reply] : What if myfile was not open correctly? Also: while (myfile) . If my... (by MiiNiPaa)
do something while input isn't 5..
I want to keep looping in a while loop until the user presses the value 5, but the function cin shou...
[4 replies] Last: ^^exactly something i was thinking.. but just having a hard time findi... (by DrJones)
by Mrkey
How to merge c++ code into Visual C++ studio project?
I have created Win32 Application project in Visual C++ 2010 and I want to add C++ Program to display...
[13 replies] Last: How are you trying to display the text? (by admkrk)
Need to open an instance of excel from C++ code and then attach to it
My software is an excel plug-in. I need to do some unit-testing through Visual Studio ( debug mode )...
[6 replies] Last: Unless you have the source, it won't make a lot of sense. If you can ... (by koothkeeper)
value-returning functions
For some reason this does not return the average of the three grades please help me figure out why i...
[2 replies] Last: Thanks for your help. (by kdriver04)
Passing value from function to another function
Hi i have these 2 functions.. function1() and function2()
[3 replies] Last: @TarikNeaj yeah i did notice :D thanks okay2, ill watch it (by tonitones)
One Object for two functions
Hi, I need to know if it is possible/not possible to share one object for two functions.. o.o
[13 replies] Last: Glad I could help :) And thanks for using code tags :DD (by TarikNeaj)
"Skipping" Cin?
Hello, my code here seems to be skipping my cin statement. Currently I compile with g++ then use ./...
[5 replies] Last: That would be different for each terminal/shell though, and what about... (by LB)
Pages: 12345... 51
  Archived months: [jan2015]

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