General C++ Programming - April 2015 (Page 19)

need help with my code
 
This is my code: #include <iostream> #include <cmath> #include <iomanip> #include <cstdlib> #include <fstream> using namespace std; int numhours(int hour){ ...
[6 replies] Last: http://stackoverflow.com/q/6441218/1959975 (by LB)
motion planning in c++
 
please i need help , i'm writing a code to generate a vector field in grids and compute the cost over each grids then, use a method to find the smallest path in...
[7 replies] Last: Line 85 will need a matching prototype. void (double V ,double M ... (by nadurraXII)
by awkedd
Do-while error
 
Determine the two numbers a,b with the properties: - a*b = n - a < = b - the difference b-a is minimum example : input : 70 output: 7 10 Here is my code...
[12 replies] Last: Hey I thought of the most brute-force way :P didn't say it was the bes... (by Ganado)
Grid
 
Hello guys, I am trying to use a Grid that I manipulated in a function (which returns the grid itself) and I initialized my Grid function to a variable within t...
[1 reply] : This is the boardSetup Function Grid<char> boardSetup() { Grid<c... (by amikecallies)
Topic Archived
 
---
[1 reply] : Maybe Im just misinformed but why would you need a binary search tree?... (by TarikNeaj)
OpenGL app does not compile
 
Ops, excuse me. I resolved. Please, delete this thread.
[no replies]
General question about programming patterns
 
This is a pretty general question about programming patterns for a game I'm making. I want to get this right before I start writing chunks of code so that I don...
[10 replies] Last: Cool, thanks! (by hyperfine)
concepts debugged
 
I have a question regarding a simple C++ concept. What is the difference between these two lines of code? Distance Distance::operator + (Distance 2) Di...
[6 replies] Last: Those two examples explain well. In a way this helps with the order o... (by nadurraXII)
dividing program into parts
 
I've given an assignment about gpa calculator. I've done the assignment with 400 lines of coding. Now I need to divide the assignment(coding) into 4 individual ...
[4 replies] Last: In the future, don't carry on public discussion in private. It makes t... (by LB)
How can i make Code better?
 
Hello I created source code for a coca cola machine, please give me feedback on how I can make my code better. I want to improve by taking critical feedback. Pl...
[5 replies] Last: ok thanks I will google about the classes for c++ And make the varia... (by mjamesball9)
Need Help with my code please
 
my code works but now i need to make it so it use pointers in order to call in the values rather then the array that i have it working with. Another thing I am ...
[no replies]
Video Capture Card
 
I am working on a project where I need to capture a frame in a video coming through a HDMI video capture Card. Then perform object classification on that frame....
[no replies]
What's going on? (classes; templates; inheritance; pointers; static variable)
 
Hey there, I have this little program and allready don't know what's going on here... #include <iostream> #include <vector> class Base {}; std::vector<Base*>...
[5 replies] Last: Perhaps you should push_back(this)? Hooooraaaaaaay!!!!! :DDDDD yeah,... (by Gamer2015)
random numbers with arrays and functions
 
I need to fill an array with random numbers 1-10 using a function call to generate the random numbers #include <iostream> #include <ctime> #include <ioman...
[4 replies] Last: thanks for the help i really appreciate it. (by marcusg)
Need help understanding this concept.
 
Create a program that allows users to customize a new house. The class should be a class called “House” and have the following private member data items: ...
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/classes/#constructors (by LB)
making a program to write to another programs text box?
 
How would I make my c++ program output something to another programs text box? If that's even possible. I'm making a bot for another program and have no idea ho...
[3 replies] Last: I Google'd "linux simulate key press" and got plenty of good results. ... (by LB)
Random Number Array Sorting
 
Hi just for the fun of it I looked around for an array program and I found the one below where you -enter how many numbers you want the array to be -you then e...
[1 reply] : Only the first five lines are C++. The rest is completely in C, and ma... (by LB)
"virtual template function"
 
Hey there, So... yeah, I've been working on a "state mashine library" and worked with event-tables up until now. Now I've packed all those things up in a ...
[7 replies] Last: Events do not make sense as singletons because each event carries its ... (by LB)
IGNORE last line of WC from pipe
 
Hi I have these 2 files for example file1 file2 Now wc *txt gives 1 5 7 file.txt 1 2 3 file2.txt 2 7 10 total Now I need to find the highest lines words and...
[15 replies] Last: Keskiverto, all my response? you read 278 posts almost all responses? ... (by csstudent123)
by Lozy
File writing problem
 
for(int i = 0; i<number_update; i++) { cout << endl; cout << "========="<<endl; cout << "Record number : " << i + 1 << endl; cout << "...
[5 replies] Last: Thanks Mikey, solved my problem by changing , to << (by Lozy)
April 2015 Pages: 1... 1718192021... 28
  Archived months: [mar2015] [may2015]

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