General C++ Programming (Page 42)

If Statements
 
Trying to figure out the IF statement. Really new, so this will be simple I'm sure. I'm essentially ...
[7 replies] Last: == is a relational operator that compares its operands. The result ... (by keskiverto)
Using Z to exit
 
Not sure what am doing wrong on this program, trying to use atoi to hit 'Z' to exit from the console...
[6 replies] Last: Also note that if the string doesn't contain a valid integer, atoi() w... (by Chervil)
Return Reference for derived function
 
I dont know what kind of return reference I have to put to override the following derived member fun...
[8 replies] Last: I stand corrected. (by helios)
debugging
 
// Debug 6-1 // function counts down from higher number to lower number entered // e.g., if numbers ...
[1 reply] : on line 24: x = lowest should be x >= lowest // Note: > ... (by coder777)
Linked List ADT / Return and-or increment an objects member
 
Algorithmically / Pesudo What I would like to accomplish is. -> Add and object -> If list ...
[no replies]
std::cin.get() looping text?
 
How do I fix that proplom and heres my code #include <stdlib.h> #include <stdio.h> #include <w...
[1 reply] : It would help if you told us what you were trying to do. Anyways, inst... (by giblit)
SENTEINAL as char in a C++ code
 
I have a program that is to calculate the mean for a class into two parts , when is above 70 and the...
[3 replies] Last: No. I am saying that if you enter "10 20 n" . your program will threa... (by MiiNiPaa)
Random Response Generator
 
Hey guys. I'm new to C++, and looking for some help. I'm trying to use a random response generator. ...
[4 replies] Last: That makes perfect sense. Also, it worked in the program. Thank you so... (by cavendert)
SoundFont 2.04 specification question?
 
Is it possible for a preset to exist without any instrument, or an instrument which is linked to a p...
[no replies]
Reading lines from a text file
 
Hello. I am trying to read lines from a .txt file like this: // "file.txt" This is the first l...
[1 reply] : I don't see the need for a stringstream there. Simplify: int main() {... (by Chervil)
Set std::chrono::time_point<> time
 
How do you set time for an instance of std::chrono::time_point<> ? For example: 6 pm tomorrow. I ju...
[1 reply] : chrono library doesn't have a concept of a calendar day. You can take ... (by Cubbi)
segmentation fault(core dumped)
 
Below program got compiled properly, but while execution, throws "segmentation fault error. pls help...
[8 replies] Last: ********************************************************************... (by Computergeek01)
Help FTP update MFC
 
hello, i'm a beginner MFC and I've currently been scripting a C++ dialog-based FTP Uploader using MF...
[3 replies] Last: Which version of visual studio do you use? Did you create the right ty... (by coder777)
by Bizzle
animation ascii art с++
 
Hello! There was one problem I've got a header file and cpp file. The header file contains the ascii...
[5 replies] Last: a) you dont need stdio.h b) if you did need it i would use cstdio c) y... (by Little Bobby Tables)
Problems with const
 
Hello I have written some code and I wanted to avoid that the parameters are getting copied every ti...
[6 replies] Last: that's right, I must have misread it. However, ¿where do you set the ... (by ne555)
Checking if a floating point value is within a certain range
 
Suppose I wanted to check if a given floating point value is within a certain range. What would be Y...
[7 replies] Last: That's only if you test for equality, i.e. == and !=. That is why chec... (by Daleth)
[SFML][Vector] Problem with Polar and Cartesian Coordinates convertion
 
In a testing SFML project of mine, I've made 3 sf::CircleShape 's: a big one, 2 small ones. The 2 s...
[2 replies] Last: I #include d math.h but the compiler is complaining identifier 'M_... (by dleanjeanz)
cin >> nuances
 
I'm looking at a program written in a professionally published book: #include <iostream> using ...
[3 replies] Last: Both of your answers are very unique but congruent with the same idea ... (by Aaron Vienneau)
Strange compiler behaviour
 
Today I experienced a very strange compiler issue. I started the compilation and it outputted that a...
[3 replies] Last: You are totally right! Making CInGameManager a pointer has solved the ... (by alastairl)
Why doesn't my overloading operator activate??
 
#include<iostream> using namespace std; class Try{ public: Try(int); Try(const Try &p...
[4 replies] Last: Thank you SO VERY MUCH!!!! :))) (by stefoka)
Pages: 1... 4041424344
  Archived months: [may2014]

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