General C++ Programming - June 2012 (Page 8)

**Warning: long post** What I don't understand about C++
 
Last year, during my first year of university, I took two courses in C++ programming. An introductory course, and an advanced course. At the start of the advanc...
[12 replies] Last: @Albatross: Probably none - I just mentioned it as another option. I a... (by TheIdeasMan)
C++ to PHP
 
I was wondering, is it possible to use C++ to execute a get method to php like: http:// site.com/?var1=some&var2=thing ? I wouldn't need to actualy open the pa...
[2 replies] Last: well thank you for quick reply! (by tofiffe)
by alend
Problem with inheritance
 
What is the meaning of this code: class horse : public vector<animal*>
[8 replies] Last: In your case, you defined the class horse to extend (derive from, inh... (by alend)
SFML - How to put 2D UI over rendering
 
I've done a lot of UI programming in the past and certainly a lot of OpenGL. But How would I combine images, buttons, and other UI elements over a rendered Open...
[1 reply] : I don't know how it's done in SFML, but in OpenGL basically what you d... (by helios)
looking for textures in OpenGL tutorial (2d or 3d)
 
Hello, I'm looking for a good tutorial on how to make a texture and attach it to an object WITHOUT using glaux or someone else's header (this is mainly targeted...
[11 replies] Last: I know what a class and struct is, and I've used them before. (by Twist177)
A couple of problems with my code
 
So I'm a function over form kind of person and my code looks it but I'm having two different problems first a little info on the file I am working on for a prog...
[3 replies] Last: Your code is insanely obtuse. No offense but its very long and almost ... (by DeXecipher)
by adUst0
An autorun registry key
 
I want to make a program that shutdowns the computer. This is my code. #include<direct.h> #include<fstream> #include<iostream> using namespace std; int main()...
[1 reply] : Why oh why are do doing this? Please don't, it doesn't look like a jo... (by kbw)
creating a function with .cc and .hh files
 
Hi, I'm running into some problems using .cc and .hh files to define a linear interpolation function. Here's what I've got so far: LinearInterp.hh: #ifnd...
[1 reply] : If you don't have a make file, make will assume that interptest is bui... (by kbw)
classes and array
 
So I'm trying to code using a class that takes in StudentID, name, and classification(freshman-senior) up to seven students. I think I can figure out the drop()...
[6 replies] Last: Only your array code needs to be changed. Here is an example of how y... (by Hippogriff)
Globally overloaded new inside template
 
For microcontrollers with small memory it's usually a good idea to globally overload the new and delete operators since they use a lot of memory, 80k in my case...
[2 replies] Last: Thank you Cubbi. After I added also this new operator implementation t... (by DanielKaminskiDeSouza)
Recursion Clarify
 
For recursion, when an initial param gets modified like a numeric value, we use the desired modified value to become the base case and for recursion, I'm sure t...
[7 replies] Last: Can you clarify what you don't understand, a simpler explanation (and ... (by closed account o1vk4iN6)
by bbfes
max_element function
 
Dear all, I would like to know the type that is returned by max_element function: is it the max value in a vector or a pointer to the maximum value? Actuall...
[2 replies] Last: max_element takes two iterators as argument and returns an iterator to... (by Peter87)
by dthkai
ReadConsoleInput? or what?
 
Hi Everybody! I'm making a videogame, the fact is, that I need something that waits until I press a Character, some kind of multithreading, I don't know. If no...
[3 replies] Last: Yes, use SFML's input facilities. When the user presses a key (or move... (by Duthomhas)
Contact Book Program Help
 
#include <iostream> #include <fstream> #include <string> using namespace std; void addContact(); void removeContact(); void editContact(); void WriteToFile()...
[7 replies] Last: I Updated the code and it is still messing up (by anikan1297)
C++ SOIL OpenGL issues
 
Whenever I try to create a texture in Dev C++ (5.2.0.1) using SOIL and code that looks like this: texture = SOIL_load_OGL_texture ( "test.bmp", SOIL_...
[3 replies] Last: @anirudh sn: I treid using namespace xyznamespace, but I got this ... (by Twist177)
usb to serial using wmi
 
Hello, I am new to these forums, I thought it would be best to sign up to a forum as I am learning c++. However I do have a problem I am working on and can n...
[2 replies] Last: Just posted in the windows section, sorry about that. (by banburybug)
Without Pointers c++ query
 
//print repeated elements from an array #include<iostream> using namespace std; int main() { int p,n; cout<<"enter no. of elements in array: ...
[1 reply] : Here we go again: cin>>n; int a ,b ; http://www.cplusplus.co... (by kbw)
Creating additional fields in an object during runtime?
 
Hey, I'm currently trying to dynamically change the layout of an object. What I try to have is a basic layout which applies to all objects of this class. But...
[1 reply] : It seems you are looking for inheritance. (by Athar)
Serial C++
 
Hi, I have no idea how to start programming C++ for a serial port. I need some help/ examples for me to start. I tried looking through the net but I have no l...
[3 replies] Last: I've been using boost.asio for serial port communication for several y... (by Cubbi)
Downloading File from Web
 
Can someone please show me an example of the correct syntax of using only c++ code for downloading a file from the web without having to use the curl language? ...
[5 replies] Last: An example of the correct syntax in c++ code would be great. Every ... (by Moschops)
June 2012 Pages: 1... 678910... 33
  Archived months: [may2012] [jul2012]

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