General C++ Programming - January 2012 (Page 4)

by sesch
Finishing program on exit windows
 
Hello, I've got a question, let's say I've got a program thats supposed to be working until the user has decided to exit or logout windows. Now, how to make the...
[2 replies] Last: When windows is shutting down (clean) it sends the WM_QUERYENDSESSION ... (by Computergeek01)
by arefe
Decimal to Binary number
 
Here is a program to convert decimal to binary- #include <iostream> using namespace std; void binary(int); int main(void) { int number; ...
[6 replies] Last: Thanks all. (by arefe)
by kerui
Segmentation fault when destructor called
 
Hi, When main returns I get a Segmentation fault. Debugging with valgrind shows that an invalid read of size 4 (at address 0x0) is the cause when a destruc...
[11 replies] Last: Hi, I got to the bottom of the problem. I had a loop in one of my cl... (by kerui)
Simple exercise, lots of errors? (1,2)
 
Hello guys. I'm doing this exercise in C++ Primer Plus 5th edition. Bought it like $3 from eBay. Anyway this is the exercise "4. Write a program that has main()...
[23 replies] Last: If you have over a hundred lines for any function, you're doing somet... (by nooblet)
Memory allocation causing program to crash
 
For part of a homework assignment, I've been instructed to create a class to contain a vector which is constructed by default as a zero vector with 3 values. I'...
[2 replies] Last: #include <iostream> using namespace std; class CVector { private: ... (by bluecoder)
by suetam
condicionales
 
Hola necesito modificar el siguiente código, para que cuando x sea > que 0 el programa sume, y cuando x sea < 0 el programa tendrá que restar. este es el c...
[5 replies] Last: Seriously, google's translate was the best once. Until they gave peopl... (by jumper007)
Unhandled Exception Error
 
Having Some Unhandled Exception Error occurring. I'm still in 11th so don't know much about the errors. Could anyone please tell how to overcome the error. Stil...
[4 replies] Last: +1 Peter87 (by jumper007)
Class and Object Problem
 
Hi, please could somebody give some guidance with this C++ question, I have done most of the code I just cant get the program to run. Q. Create a class cal...
[9 replies] Last: Then you were reading the wrong problem. [quote=The problem]Create a ... (by ne555)
What exactly does this mean?
 
I have an assignment that asks me to "Make sure to pass the array as a constant reference parameter"....I don't really know what it means by that. I currently h...
[4 replies] Last: +1 Duoas (by jumper007)
File Sharing using IDs
 
Ok so I've been coding for a few years not but I really want to start doing some cool stuff. I know this sucks so far because I have no clue where to start with...
[no replies]
error C2082: redefinition of formal parameter
 
I can't figure out what I am doing wrong can anyone out there help please. I am including my code as well as the compilier error. #include <iostream> #inclu...
[1 reply] : Well I can tell you one thing, that your code isn't very readable and ... (by closed account o1vk4iN6)
Right tools for the right job. (1,2)
 
Hello to all. I'm a Green-Horn first of all, sorry. I would like to create a C++ app. I would like this app to be able to access a MySQL database. My curr...
[26 replies] Last: I'm reading. This basically looks like into to CGI? See I've never us... (by LinuxOwner)
by i514
Saving something to computer
 
Hello all, My question today is, how can I set a value in registry or in any other way, and then block it so it would be read-only and could not be modified,...
[14 replies] Last: Yeah I asked for the first part, but ok I will think of something. (by i514)
Matrix Issue >.>
 
I am trying to read words from a file, and print them to another file, but this time I want them to be printed by columns not by rows. Let me show you the code:...
[11 replies] Last: @ Albatross Thanks a lot. I am gonna study it :) (by jumper007)
by fabiux
Problem with pointers
 
Hello everybody, sorry for my bad english. This is the problem I have. I have an class hierarchy like java's with an object base class named Object. There i...
[3 replies] Last: This is not exactly correct... add tag to your post ... so that I ca... (by jumper007)
Help!: Monthly Budget
 
I have to create a monthly budget function, not using structure or string, using get functions and what not. I have a complete pdf breakdown of the project I ju...
[1 reply] : Well you cannot read from a pdf file in c++, that's for sure. You got ... (by jumper007)
by Theta
File I/O With Double Pointer?
 
I've been toying around with File I/O in C++ for about a day now, and cannot quite figure out how to write a double pointer (It's for a Multidimensional Array) ...
[3 replies] Last: The file should look like a series of NULs and STX/SOH in notepad++ (A... (by Theta)
by Nero92
dereferencing pointer to incomplete type
 
Hi everyone, i am having a problem with my structs in one of my programs, in my main.c i have that for example : if(pch!=NULL){ puts(string); fse...
[2 replies] Last: with this typedef struct metablith* tdeikth; i was hoping to create ... (by Nero92)
by ihato
Embed stuff inside the executable itself?
 
I'm still a beginner, but I'm wondering how to save some info inside the executable? Is there a library or something for that? Can anyone point me where to l...
[2 replies] Last: In other words, you must compile your "stuff" into an object file, and... (by Duthomhas)
Any differentiation lib?
 
I'm designing a project that applies derivatives to solve several problems... but the main program doesn't really focus on derivation itself but in its applicat...
[1 reply] : Are you trying to derive an expression for academic purposes or are yo... (by Stewbond)
January 2012 Pages: 123456... 36
  Archived months: [dec2011] [feb2012]

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