General C++ Programming - July 2009 (Page 9)

Unformat input, Format output
 
Can someone help me out, if possible. (thanks) I've copy/pasted my program below. the program is written how my instructor wants me to write this. i am in an i...
[4 replies] Last: dude, thanks a million. i changed ALL of my " int 's" to " double '... (by xiikryssiix)
by zsady
Excel C++ PROBLEM
 
Good Day! I've been researching of ways on how to Read. update, and save excel files using C++ but I keep running on to dead ends. You see most of the tutori...
[no replies]
some issues with functions... or DEV
 
I am trying to define the member functions of some classes and i am getting some strange error messages a function-definition is not allowed here before '{' ...
[13 replies] Last: Oh nvm i forgot to add using namespace std; at the beginning. This i... (by hypercube1)
by helios
Valgrind, gdb, and IDEs
 
I'm using Valgrind to find buffer overflows in a program and I need to attach a debugger when a certain function causes one. I can do that, but I don't want to ...
[1 reply] : kdbg will do. (by helios)
by vRltwE
std::ifstream::get() return double?
 
Hi, I am trying to read a binary file in C++. For that I am using the get() method from std::ifstream. I can read int values stored in a binary file, t...
[11 replies] Last: helios, I do not have this knowledge you is telling about. But is v... (by vRltwE)
by Adalte
Problem with constructor
 
Hi! In my linked list I have some shapes but I need to create a second list with the first list. I wander: 1. How like look the code for that constructor? 2....
[no replies]
by wtf
Whats wrong with this code?
 
I'm trying to add the functionality of allowing the user to repeat my program without having to start it up again. So what I've done is put all of my main progr...
[2 replies] Last: ok well i've figured out what it probably is... I had to call a me... (by wtf)
by fiska
how you create threads in loop?
 
Hi Folks, Im new to C++, but fairly experienced in Java. In this school project, I for one program I need to create threads in loop, using _beginthreadex(). ...
[8 replies] Last: By plaving around with the code, a new issue has arrised, see the co... (by fiska)
doubble hotkey?
 
i am creating a game and i and when the user presses control and an arrow key to give them a boost. what i have so far is case VK_CONTROL && VK_RIGHT:...
[2 replies] Last: ok thanks that worked :) (by poonninja)
by dkaip
error in vector member class
 
I am trying to make a class for all files and dirs of folder. Trying class DIRSandFILES { public: vector<char*>Dirs; vector<char*>Files...
[7 replies] Last: Line 11 is the vector<char*> case, so no, no .c_str(). (by jsmith)
by romasi
Ambiguous Constructors (and functions)
 
What is the best method to get around ambiguity? The following is a problem that I can't seem to figure out how the real string class got around: class St...
[9 replies] Last: No problem. If you have any further questions/problems, you can also ... (by jsmith)
Hash Table
 
This is a homework assignment. I am not looking for someone to do this for me I am just looking for some help. For some reason I am unable to set my status_arr ...
[1 reply] : I have to say, it seems ok to me. I do have some general comments. ... (by kbw)
problem with opengl
 
im using VC++ 2008 and i found this tut that gives source code and explains it. this is the code with the problem: #include <GL/glut.h> when i try to ...
[1 reply] : Put the dll to WINDOWS\system32 folder. (by hamsterman)
How to populate a map with const reference values?
 
If I have a map that looks like this: #include <string> #include <map> #include "MyClass.hpp" using std; map<string,const MyClass&> lookup; void ...
[2 replies] Last: That's what I >suspected< - thx for the confirmation. I will do thi... (by kfmfe04)
Default constructor is called immediately?
 
Hey guys, This may be a C++ thing I just don't understand, but here is my issue. I have a template class I made called List<T>. I want to use it inside anoth...
[2 replies] Last: Oh man... Ok, I'll have to remember that from now on. I'm just so used... (by enigmatix)
by vRltwE
Serial communications in c++ Linux/Windows
 
Hi, Is there any API for serial communication that works both in Windows and Linux? May be something related to QT? Or, for Windows Serial Communicatio...
[no replies]
Bottleneck in Base Conversion Function
 
I have a program I'm working on right now which uses a base conversion function to convert an integer to a text string. As far as I know, the solution I've come...
[4 replies] Last: In that case, yeah, I agree with jsmith. Change line 4 to this: o... (by helios)
Problem with having 2 iterators on STL list
 
Hello, I'm having very weird bug with a STL list. I boiled down my source code to the function inserted below. Basically, I populate a STL list with a numb...
[7 replies] Last: Found the problem: _HAS_ITERATOR_DEBUGGING (insert Darth Vader... (by MichelC)
_beginthreadex with Winsock2
 
I am currently working on a small project. I am in need of some assistance with my code. /**This file contains all of the Networking code for Ergo_Server**/...
[no replies]
Copying Class Data
 
Scenario: I make a pointer called pConfig to a class. I then assign it to dynamically allocated memory on the heap.I then load a text file into pConfig class...
[10 replies] Last: @jsmith: Maybe I wrote something incorrectly without noticing. I suppo... (by closed account S6k9GNh0)
July 2009 Pages: 1... 7891011... 14
  Archived months: [jun2009] [aug2009]

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