General C++ Programming - June 2011 (Page 6)

User input allows keyboard keys
 
Hi! I am working on a shell in c++ and I have a problem with user input. Everything is fine but when I press up, down, left, or right a string starting with ...
[2 replies] Last: sorry, im not sure what u mean by ..use its functions here is my c... (by iCpp7000)
text drawn in a window
 
Some of you have seen this code in a previous post. I am wondering is there a way to draw the text as a separate object? Bad wording I know. What I want is ...
[11 replies] Last: thank you, works perfectly now. Just for the sake of conversation..... (by closed account zwA4jE8b)
Problem with random number generation and strings
 
Hi. I could use at code review. I've just come back into programming after a year since my first year university courses and I've run into a pair of problem...
[3 replies] Last: I haven't used Cygwin so I can't say for sure. I use Visual Studio. If... (by shacktar)
Matrix inversion in C++
 
Hi there, I'm trying to invert matrices up to 12 x 12 on an mbed MCU using C++. The program works for a 3x3 matrix, but not a higher level one and uses Gaussi...
[1 reply] : Integer division. Another thing: for (i =0; i<4; i++){ if... (by ne555)
Mysql connector c++ issue
 
Hi ppl .. im having an big dificulty trying to install mysql connector c++ on my visual studio 2010 .. im running on windows 7 64bits Heres the link of the c...
[no replies]
accessing rs232 using C/C++
 
Hi, I wanted to know how to access hardware (like rs232, mouse, keyboard, usb) using a C/C++ program. I'm interested in writing a small program to transfer...
[no replies]
programming with unusual constraints
 
I program software written by the Siemens company but I don't work for Siemens, I work for a university instead. Siemens keep some of their classes inaccessibl...
[1 reply] : No, unless coloryourself() is virtual. (by hamsterman)
String Class - Operator + Problems
 
// // Template - // #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <cmath> #include<ctime> #include<string> #in...
[3 replies] Last: Actually I just realised that the tutorial on this site uses the '+' o... (by Computergeek01)
linker errors porting linux -> windows
 
Hi, I want to port my application from linux to windows, and I've succeeded with most parts all the libraries are linked etc. etc. However the compiler se...
[12 replies] Last: @Moschops yes main.cpp is part of the project. I tried to manually cre... (by Yours3lf)
Need help with compiler errors for a simple C++ program using strings
 
My code includes the driver.cpp (main program), Student.h, and Student.cpp files. Perhaps there is a problem with the implementation of the string _id, _name o...
[1 reply] : #ifdef STUDENT_H means " if STUDENT_H is already defined, ... ". Wha... (by hamsterman)
c++ How to read from a file placed on my desktop
 
Hi guys i want some help... I've a file named "assad.txt" on my desktop. I want to read it through C++ files. Can anybody tell me the syntax how can i open...
[4 replies] Last: Firstly, you should check if the file was opened successfully, using f... (by anonymous23323124)
Check for existence of virtual function
 
Hi, is it possible to know if a class has virtual function definition from the object of it? given that I do not have access to the source code of it...
[4 replies] Last: A class containing at least one virtual function should have its des... (by jsmith)
destructor is randomly called
 
I want to thank all who will help me ahead of time. I wrote a ADT liked list using template. when I tested it with primitive data types, such as int and flo...
[4 replies] Last: Thank you very much I can across an article, saying something like ... (by centwing)
unidentified blocks?
 
Hi I would be thankful if you answered this question of mine: what does such a structure mean? ... // codes { ... // codes } { ... // codes }...
[7 replies] Last: Could also be useful for forcing a deconstructor. And when using boost... (by Ikaron)
Composition VS Inheritance
 
Why Composition is said to be good ahead of inheritance. I am just learning C++ and it was said inheritance can be handled only by expert programmers, but I don...
[1 reply] : Why Composition is said to be good ahead of inheritance. I am just le... (by Disch)
String problem v2!
 
im currently coding a http uploader. everything went ok for now but i had a problem with data which has null characters. the data was truncated. my vb6 version ...
[3 replies] Last: @cal, i never use vector before so an example would be great ;p @... (by StoneHeart)
Get external app name from .exe
 
Hi! This is my first thread here. I have been searching half of the day now trying to find a way to get the name of an application trough its .exe. I am able...
[10 replies] Last: Hm, that is what I was expecting, that this code was C# and not C++. ... (by GPing100)
Can't get compiler to let me be terrible
 
Hi all, I want to try to do some funky terribleness to allow user to call a function with no parameters. Basically, the compiler errors on this: void printli...
[1 reply] : Sorry... failblog entry for me. Fix was simple - use proper syntax (d... (by closed account Lv0f92yv)
How & work here?
 
class A { int x; public: A& increment(int); }; I did not understand how does & work here. Can someone explain it and give a ...
[4 replies] Last: Instead of returning a new A instance, it returns the address of ano... (by closed account zb0S216C)
Leaderboards
 
In college, I had an assignment to make a leaderboard with 2 arrays and for the user to be able to input data for their names and scores. I didn't do so well wi...
[no replies]
June 2011 Pages: 1... 45678... 28
  Archived months: [may2011] [jul2011]

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