General C++ Programming - September 2016 (Page 18)

could anyone help me about this task?
 
Please help me how could I do this task. I'm a beginner in C++ Programming and very interested to learn this outstanding programming language.
[1 reply] : @gentleguy, pretty sure his task is to learn the C++ programming langu... (by Uk Marine)
How to insert a variable in a « ifstream » line
 
Hi ; It seems incredible ifstream does not accept a variable (name of the file) that i get with a cin. May someone help me. Many thanks Here is the code : ...
[6 replies] Last: Thanks to all of you. You gave me a lot of information. (by sylvain)
End user software for Siemens RCU Connect Remote control
 
This is a BlueTooth device which both sends and receives. I have plugged the unit into my usb. It now shows as a RCU device. This device is paired with a ...
[2 replies] Last: "anywhere anytime access" sounds like that you need an account on an c... (by closed account 48bpfSEw)
by Byteen
Banners with C++ for console app
 
Banners Hi everyone! I've developed a simple code for printing banners in console using C++, very easy to use: [code=cpp] writer.PrintBig("¡HI CPLUSPLUS!")...
[2 replies] Last: Hey, gentleguy , glad to see you are as humble as ever. Guess what? ... (by Duthomhas)
Trouble with while(getline(file, str))
 
void parseFile(std::ifstream &file, std::string &string){ std::ifstream file; file.open("text.txt"); if(file.is_open()){ std::string str =...
[2 replies] Last: I actually sort of answered it myself. Since I had already parsed the ... (by wh1t3crayon)
by mkb555
Accessing data in structs
 
I haven't coded in awhile, and apparently I'm REALLY rusty because I seem to have forgotten something about structs. I created some simple code to refresh my me...
[2 replies] Last: Uuuuugh, I'm such an idiot. Thank you. (by mkb555)
Five Grades of a Student
 
so my professor wanted us to create a program that accepts five grades of a student, then compute it's average and determine whether the average is passing or a...
[3 replies] Last: Well. It depends, how much points does the user have to get to get a p... (by TarikNeaj)
Fix coding
 
This is assignment congkak(mancala) game.Hope someone can fix and improve this code. #include<iostream> using namespace std; bool checkWinningCondition...
[1 reply] : Line 5: This is a bool function. Line 14: You're trying to return su... (by AbstractionAnon)
by np1984
const qualifier with function overloading
 
#include<iostream> using namespace std; class A{ public: void fun(char *a) const { cout << "non-const fun() " << a << endl; ...
[5 replies] Last: dhayden and JLBorges, thanks for the explanation. (by np1984)
by kusace
pls help with assignment
 
Ackermann Function The Ackermann function is the simplest example of a well­defined total function which is computable but not primitive recursive. The Ackerm...
[no replies]
Problem with Trap moving
 
void Draw() { system("cls"); for(int z = 0; z < 5; z++) { trapX = rand() % width; trapY = rand() % width; } ...
[10 replies] Last: What is wrong with the tabbing? Simply you code is not correctly alig... (by fcantoro)
A networking program
 
Hello guys, I need a reference how to start writing a program of list all networking configuration with a hop in graph.
[no replies]
by PacR
How to efficiently compare list elements against themselves?
 
For example my list consists of 4 integers : 1,2,3,4. Program flow sould go like this: 1 < 2 = true 1 < 3 = true 1 < 4 = true 2 < 1 = false 2 < 3 = tr...
[9 replies] Last: Thank you kemort & gentleguy. #include <iostream> int main() { ... (by PacR)
Stringstream returns 0
 
I'm building a program that simulates a game of Snakes & Ladders. I have a text file representing a 10x10 board. Every square not containing a snake or ladder i...
[1 reply] : I'm not sure exactly what you are doing with that stringstream, but yo... (by Duthomhas)
by jlb
Idiotproof y/n option
 
What I want is a code segment that So what have you tried? The snippet you've shown isn't doing any input validation and will continue until you enter 'Y'. An...
[6 replies] Last: I've been missing a lot, but IDK why swolff 's OP is missing or why h... (by Duthomhas)
Linked List program - Runtime Error
 
I normally work with the STL and love the features that it offers But just now i wanted to test my skills with programming: Can anybody help me with this ...
[2 replies] Last: Please use code tags. Highlight your code and click the <> button to t... (by dhayden)
Can anyone explain what this block does?
 
cout << "This program will print a random number." << endl; srand((unsigned)time(0)); int rnum = (rand()%10) + 1; cout << "\nGenerated random nu...
[1 reply] : First, the srand() and rand() have been deprecated, so one should shif... (by keskiverto)
Pattern search optimisation algorithm library
 
Hello everybody, I need a library that implements the pattern search (PS) optimization algorithm, which you can found here https://en.wikipedia.org/wiki/Patt...
[1 reply] : No, I don't, but a websearch picked a review of algorithms: http://www... (by keskiverto)
SDL2 PollingEvent and KeyDown Delay
 
So I have this bit of code: int main(int argc, char* args ) { int framecount = 0; int counter = 0; //Start up SDL and create window if (!init...
[1 reply] : If there were no delay the loop handling the events would not end for ... (by Peter87)
Threads and call back
 
I am using a SDK to develop an application which is capturing images from a camera. The SDK has an event listener which needs to be registered with the cameraDe...
[no replies]
September 2016 Pages: 1... 16171819
  Archived months: [aug2016] [oct2016]

This is an archived page. To post a new message, go to the current page.