General C++ Programming - October 2014 (Page 23)

Need help for tab-function
Hello Cpluscplus, I have created some editboxes in my MDI child window but the tab-function do not work. I would like to be able to jump between the editboxe...
Oct 14, 2014 at 4:24pm
[no replies]
by Myna
Need help on improving my calculator program
I need to improve my program in a following ways; ● When the user enters wrong input for radius, length, width, base, or height, the program will continue t...
Oct 14, 2014 at 4:08pm
[4 replies] Last: can you please write out the whole code please... this things give me ... (by Myna)
how to Cout the second min. number and max. number
How can i print out the SECOND MIN number and MAX number without using array? please give me some advise. cout << "Please input a positive integer: "; ...
Oct 14, 2014 at 3:41pm
[7 replies] Last: 1. Tracking min is totally unrelated to tracking max. 2. What should ... (by keskiverto)
[C++/SDL] Tile-Based Collision Detection
Hi guys I'm still working on my Project and the next Problem has occured: How do I detect collisions on a tilebased map? My tiles are 16x16 and the map is base...
Oct 14, 2014 at 2:40pm
[5 replies] Last: If you move left then check TileX - 1, TileY If you move down then ... (by ahcfan)
Need Help Editing Text to Correct Post Processor
I've gone as far as I can with Vectric Cut2D customizing a post processor in order to adapt a CNC Plasma Cutting System to a CNC Router cutter. Due to compatib...
Oct 14, 2014 at 2:11pm
[no replies]
Seprate template class
Hi everyone, i have a big big problem with class template , i need your help //file Array.h #ifndef ARRAY_H_ #define ARRAY_H_ template <class T> class Arra...
Oct 14, 2014 at 1:09pm
[13 replies] Last: I did it .h template <class T> class Array { private: T *m_p... (by nightmaregiba)
by tmason
Using lambdas have initial startup cost?
Hello, I hope I can describe my problem generally because I haven't been able to shorten my code enough just yet to fit inside a forum post. I have a rang...
Oct 14, 2014 at 10:31am
[5 replies] Last: Do not use default capture modes. YOu are saving references to all var... (by MiiNiPaa)
Base class as parameter
I have run into a problem which is mostly just an annoyance. I need to know if i can have pass a derived class to a function which has the base class as its par...
Oct 14, 2014 at 9:03am
[3 replies] Last: Make it take a polymorphic pointer (probably as a reference): class ... (by TwilightSpectre)
by FIT
Create 5 Array and 5 Multidimensional Array
Hey guys, I just need 5 Array Problems and 5 Multidimensional Arrays and I'll code it. Thanks. P.S. OO TAGA-FEU TECH AKO. N02!!!! (Different language)
Oct 14, 2014 at 7:36am
[no replies]
is it a bug of boost::numeric::ublas?
I found a problem that the following simple code cant run correctly. Is it a bug within boost::numeric::ublas? The program crashs everytime and complains that ...
Oct 14, 2014 at 4:27am
[no replies]
Friendship behaves different with nested classes
Hello everybody! We've found that friendship could behave different with nested classes. #include<iostream> using namespace std; class B{ int b; B():b(12...
Oct 14, 2014 at 4:01am
[4 replies] Last: Cubbi : Thank you very much for your answer and your time! Wow! I u... (by ncomputersorg)
by jetz5
Advanced C++ Calculator
I've done the basic calculator in which you enter the number, then the operator, and finally the last number. What I'm trying to create is a program that can pr...
Oct 14, 2014 at 3:44am
[4 replies] Last: Thank you very much NT3. The program works perfectly. (by jetz5)
Split a string and store into 2D vector
Hello guys, i am having trouble with parsing out string value into a 2D vector. Suppose i have the string "attack at dawn " consisting of 15 characters, i will ...
Oct 14, 2014 at 3:29am
[1 reply] : For yours, you need to reset the row each time otherwise you'll be app... (by TwilightSpectre)
Text Based Game Attempt
Hello All. I am a novice programmer, and as such, might be getting in over my head with this, but I am attempting to write a text based game for my younger brot...
Oct 14, 2014 at 12:01am
[3 replies] Last: ah for the record, the issue was that I was declaring the string outsi... (by Vauxhall)
Read CSV file into Vectors
I have a CSV file that is formatted in the following way. The top row contains headers and the data is below. I have opened the file (sec2011) in Numbers on Mac...
Oct 13, 2014 at 11:07pm
[2 replies] Last: Yes. I put the full path to the file and now it reads it. I still need... (by gth680p)
need help on where to start
0. The main program starts by calling a function named introduction which prints out a description of what the program will do. This function is called just o...
Oct 13, 2014 at 9:36pm
[2 replies] Last: Here you go buddy :) #include <iostream> #include <cmath> using name... (by coltehrman)
by Noori
vector
Hello, Lets say that i have the coordinates of a 2D space (x and y), I want to store the coordinates as x and y in a vector to find the nearest neighbor of gi...
Oct 13, 2014 at 8:33pm
[1 reply] : http://www.cplusplus.com/reference/vector/vector/emplace_back/ (by keskiverto)
Right usage of namespace std.
I want to know where to use the namespace std. What is it and what is it's use? Where should it be used?
Oct 13, 2014 at 6:51pm
[2 replies] Last: What is it and what is it's use? using namespace std; dumps everyt... (by MiiNiPaa)
issues with program
Someone please help, the double do-while loop in case 'c' is not seeming to work. So, what I'm trying to do is that if no PID have arrived or they have all been...
Oct 13, 2014 at 5:58pm
[3 replies] Last: So the issue with my program is here, like the first time no PID have ... (by Stephanie)
Deleting Dynamically Allocated Arrays
I am trying to delete these arrays NumArray1.array and NumArray2.array at the end of my program so that there is not a memory leak. However I always get a doubl...
Oct 13, 2014 at 5:05pm
[1 reply] : At line 165: *a1.array = *IntPtr; These dereferences look wrong... (by MikeyBoy)
October 2014 Pages: 1... 2122232425... 38
  Archived months: [sep2014] [nov2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.