General C++ Programming - February 2015 (Page 24)

by tm70
0 does not exit
 
I've been reading my code for the past 3 days and I cannot get 0 to exit the program. Any solution? #include <iostream> #include <cctype> #include <cstring...
[4 replies] Last: int n; while( std::cin>>n and n not_eq 0 ) //... (by ne555)
Monitoring force feedback joystick
 
Hello For my senior design project, I need to be able to use force feedback function of the logitech force 3d pro joystick to guide the user in doing targeti...
[no replies]
help! im having trouble with cin input
 
im making a little program. if you type in the movie name project almanac then you will get a 38%. if you type in selma it gives you a 99%. some how if i type i...
[1 reply] : #include <iostream> #include <map> using namespace std; int main (... (by Zaita)
Parallel scan of sorted sequences
 
I need to take an unknown amount of sorted files and then output any number that is in at least half of them... I know I need to read in the files to a vector a...
[3 replies] Last: Create a map of numbers and a count of how many files they appear in. ... (by Zaita)
Redirecting network traffic (building a proxy)
 
I want to build a proxy, middleman between various client programs on my machine and servers outside, like this: Client -> Proxy -> Server, Client <- Proxy <- ...
[3 replies] Last: Well, I've managed to create a sort of proxy, but that involved lots o... (by Clint Westwood)
Windows has triggered a breakpoint in xxx.exe.
 
Hello, there. I build my codes well, while when I run the .exe. A message box coms out: Windows has triggered a breakpoint in spline.exe. This may be due to ...
[5 replies] Last: I put a getchar(); into the main, and now it doesn't disappear. The ... (by cxlzmkm)
Testing an object in a vector against all other objects in the vector?
 
Hi there, I'm working on collision detection for a game in SFML. I succesfully designed a Spatial Partition grid to speed up the collision test, in the followin...
[11 replies] Last: If I misunderstood and the second loop traverse another container, yo... (by wh1t3crayon)
Character Recognition with Artificial Neural Network
 
Hello Everyone, I am a EE undergraduate at a university who will be competing in a robotics competition this spring. So the reason I'm posting is because I nee...
[2 replies] Last: Yea, I have MPLab XC32 but I guess I never noticed it contained a C++ ... (by iscoulter)
Initialize vector size
 
Hello, Getting back into programming after a few years off and a bit rusty. My question is: Is this going to initialize the size of the vector array's posi...
[6 replies] Last: Thanks very helpful. Seems to work now. This is what I have done: ... (by haydavis)
Trying to understand rvalue references and move semantics better
 
Before I start writing code that uses rvalue references and move semantics I want to make sure that I fully understand it. I read all of the pages from the f...
[2 replies] Last: @MiiNiPaa Thanks for the reply! Well there's nothing I need help wit... (by benbalach)
Deleting class pointer arrays.
 
Hello! If i have a pointer array of classes, e.g. MyClass *foo; and if i try to delete this pointer delete foo; does it call a destructor of a class, or...
[1 reply] : Yes. http://en.cppreference.com/w/cpp/language/delete Example in http:... (by keskiverto)
Best ways to evaluate c++ skills
 
Hi, I am acutally a learner in c++. Can any body just let me know what are the good sources, to evaluate your c++ skills online. May it be any ebook or w...
[3 replies] Last: http://www.interqiew.com/ https://codility.com/ (by tipaye)
Need help with homework problem
 
Solved
[11 replies] Last: can you put your original code back please? (by mutexe)
Getting wrong output
 
So the question is https://www.hackerrank.com/challenges/is-fibo Here is my code. #include <iostream> #include <math.h> using namespace std; ...
[11 replies] Last: Do you still think your assertion is true? I feel like a complete i... (by Gamemaster007)
Seeking general solution to this problem (explanatory only)
 
There are N containers containing elements of type Thing*. Many Thing objects have identical data values, but are still separate Thing objects. The N containe...
[12 replies] Last: > Then the object map is written to file as the program exits. > Then... (by JLBorges)
I need help, guys! Pls help me :(
 
Here is the assignment I get: ***** Write an email simulator that processes mail at an average of 40 messages per minute. As messages are received, they are p...
[4 replies] Last: You've did that code, eh? http://www.cplusplus.com/forum/general/5149... (by Militie)
HELP!! Address book project c++
 
please help me, im stuck at this code.. i dont know what to do next. :( i keep getting errors on the delete entry :/ and i need this badly to be finished :( ...
[2 replies] Last: Can you fix the final output bro? im stuck at this and i need it badly... (by vmeen08)
Command prompt buffer problem.
 
I've coded a packet sniffer as console application that outputs a lot of different data into console. I use SetConsoleScreenBufferSize to increase maximum buffe...
[6 replies] Last: Do you mean a sort of middleman between collected data and console out... (by Clint Westwood)
trouble with finding repeated alphabets
 
So I want to build a game using C++. Everything was fine until I met a problem. The game was suppose to count the number of repeated and adjacent alphabets f...
[16 replies] Last: we check if beta is beside or (by axissabre)
by Kip
How to pass a method of derived class as parameter to another method in base class
 
Hey friends, I have a question similar to the one here: http://www.cplusplus.com/forum/general/39769/ The main difference is I would like to pass a method...
[2 replies] Last: Thank you JLBorges. That is a much better solution than the one I was ... (by Kip)
February 2015 Pages: 1... 2223242526
  Archived months: [jan2015] [mar2015]

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