Beginners (Page 63)

Homework Error
ok I am making a program that asks this Create a structure for a classroom. Make sure it include...
[4 replies] Last: (by gwslow)
Prime number check with very strange result
This program I wrote to determine if a number is prime has some very interesting behavior. I have ch...
[11 replies] Last: 1.) I was trying to use the square root as a limit, but the modulo an... (by cire)
Cant find what I did wrong!
I'm doing a practice program I found online. It's tit...
[5 replies] Last: You're welcome! I'm glad I could help! (by cplusone)
Ramdom Numbers Program
Is there any way to write a program that displays infinite random numbers ?
[18 replies] Last: @IceStorm It generates only a few numbers and a lot of repetitions :)... (by bigorenski)
Constructor Not Initializing Passed Values
Hello all, Long time reader, first time poster. I'm trying to create a black jack simulator with ...
[3 replies] Last: This is where providing a compilable code sample rather than an arbitr... (by cire)
Function Placement and '}' Token Error.
Hello! I am still learning the basics of C++ and was trying to write this functions that returns the...
[2 replies] Last: Thank you very much! The function worked perfectly! (by cplusone)
by mtboy
Help! Not understanding Data Structures Code Examples
I am a newbie in C++ and recently reading the coding examples online, then I found the followings: ...
[7 replies] Last: So when and why do we use the pointer of the pointer?? A good examp... (by IceStorm)
Good reads for C+11 lambda functions and move semantics
Is there any good resources to read about C++ 11 lambda functions and move semantics feature? I went...
[2 replies] Last: Yes. Get "Professional C++ Second Edition", it covers many new featur... (by IceStorm)
i cant see any difference between these codes what really is the use of ampersand sign in function ...
[6 replies] Last: There are two ways of passing something to a function. One is pass-by-... (by IceStorm)
Basic Calculator
Hello. I have recently made a basic calculator using the operators (+, -, *, /). I am looking for an...
[14 replies] Last: No problem, you're welcome. I do understand that you won't be able to ... (by Chervil)
what is the error?
#include<iostream> #include<string> using namespace std; class personType{ public: void print()...
[4 replies] Last: I don't think that the semicolon is allowed at the end of the initiali... (by keskiverto)
by Ganado
ifstream, best way to ignore part of each line
I'm currently dealing with file data that looks something like this: //list.txt w 56 x ...
[4 replies] Last: Why "u"? I recommend a meaningful variable name so in the future when ... (by jlb)
How do you read 6 characters from a file at a time?
Hey guys, I'm writing from my fresh new account. I'm a beginner so please, excuse my ignorance. I wo...
[7 replies] Last: You could also bypass the C-string and just use the extraction operato... (by jlb)
Program not pausing cin and cin.get() to Accept input.
Hello, developers. I wrote a C++ console application and encountered a problem. Only the first cin>>...
[9 replies] Last: Thanks for your help, Softrix and Chervil. The program is now working... (by LusakaGuitarist)
Static member default argument
I got this code: class Screenet{ public: Screenet &clear(char = bkground); private: stat...
[3 replies] Last: It means that the default argument for the first parameter is 123. (by Peter87)
by mehak
when i use the following syntax in my code it says interrupt declared void but as far as i know thi...
[4 replies] Last: c++ knows nothing of interrupts. handlers are static void functions wi... (by Jaybob66)
by chanu
absolute value for long long it
How to obtain absolute value for an "long long int" n gcc-4.8.2 The following code facing compila...
[3 replies] Last: Thanks @chervil (by chanu)
How to convert QByteArray from QAudioInput to float
Hello, I'm a beginner in c++ and especially in Qt. I took the data that come from the QAudioInpu...
[3 replies] Last: I also this kind of error : -1.#QNAN so maybe it come from my code but... (by Saigneur)
std max
#include <iostream> int main () { std::cout << "max(1,2)==" << std::max(1,2) << '\n'; std:...
[6 replies] Last: can i use template function even i dont learn it just by using <algor... (by Lorence30)
by chanu
Bypassing enter
My doubt is how to read a string in next line followed by an integer like as follows 8 111111110001...
[7 replies] Last: okay i think the reference is enough. thank you (by Lorence30)
Pages: 1... 6162636465... 73
  Archived months: [jun2014]

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