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

Making a Operating system
 
hello all, i would like some help making a OS (Operating system). well, i am a computer idiot, not a geek, i am a geek using computers. i'm crap on computers...
[6 replies] Last: I tried this once - let me tell you this - don't use C++ - use C. C++ ... (by arrrgh)
Just sharing something
 
I was (am) working on a function that consists of an infinate while loop, which consists of a switch statement, and the following piece of code crossed my mind....
[8 replies] Last: yea.. which is why i said "in this paticular case".. since there are n... (by Aakanaar)
Overloading function access in derived classes?
 
Is there any way to overload the access type of a member function in a derived class such that is can not be accessed by a pointer to the base class other than ...
[12 replies] Last: The above proxy is a bad idea. The proxy needs to be modified (added... (by satm2008)
Strange behaviour with text input
 
I've got my code, here it is: #include <fstream> #include <iostream> #include <conio2.h> #include <stdio.h> #include <stdlib.h> using namespace std; ...
[6 replies] Last: Syntactically it is for an output stream. In this case, stdin (input s... (by satm2008)
Templates: Seperating Interface and Implementation
 
Hello, The thought of having a declaration and it's corresponding implementation in the same file makes me sick to the stomach. I am currently building a gra...
[4 replies] Last: The thought of having a declaration and it's corresponding implem... (by weaknessforcats)
Visual C++ Express Edition Compiler
 
Hey. I'm having some trouble with the Visual C++ Express Edition. It won't compile. Each time I try I get an error like ".../YYY/Airboard.exe - Cannot find pa...
[1 reply] : The default path for the .exe is the Debug folder contained in the fol... (by weaknessforcats)
inFile.open() options
 
Alright, i've got a couple problems to work out. I'm writing a section of a program that requires it to back up data stored in arrays within the program. So w...
[1 reply] : First, this code can't work: inFile.open("C:\My Documents\Backup\b... (by weaknessforcats)
How to write a programme which counts letter 'a'?
 
Hey guys, I'm rather new to programming, and I have an assignment to write a programme with char a and the user needs to insert a sentance the programme ne...
[3 replies] Last: Hey thank you so much! Now I get where did I go wrong on this one.... (by tinuviel2006)
Dynamic Initlization of objects in a Queue
 
Hello, I'm currently mdefying a program that creates an object of type Sample. It then uses the class Queue to put it into a Queue. Now I want to make i...
[4 replies] Last: // get an element of type QType from the q QType get(){ if(getl... (by Zaita)
Pulling serverside information
 
I am trying to figure out a way to pull stock market quotes from www.cnbc.com into c++ code where I can manipulate them and create formulations. I really dont k...
[3 replies] Last: Unless the website offers you an API or an RSS feed that you can downl... (by Zaita)
Access Violation when Initializing variables in a function
 
Hi, I'm rather new to Cpp and I can't understand why I keep getting an Access Violation, when I initialize something in another function (in Java we'd do th...
[5 replies] Last: You are indeed correct gulkan. I didn't think this one through properl... (by Zaita)
by Blurr
Ambiguous Overloading?
 
Hey, I've got the following function coded: [code 221] bool invalidChar(const char *string) { //Check for \ / : * ? < > | char invalid = "\\/:...
[8 replies] Last: I was just wondering why you are using the C string library in a C++ p... (by weaknessforcats)
Printing of graphics
 
I have written this code to genrate a grapgh on the screen . I m not able to take the print of this. I hv tried the print screen but no use . Pls help me to sol...
[5 replies] Last: You can try the MS's GDI or the open source software(openCV)! openCV ... (by simo110)
array of 26 ints to hold the character counts
 
I need to create a program which counts how many times each letter of the alphabet appears in a file. If the character is a letter of the alphabet then I need t...
[7 replies] Last: You can try this code! ///////////////////////==Win Xp + Vc8.0 pass=... (by simo110)
by kotoro
Trying to identify problem in program.
 
The following program works properly (or at least accomplishes its intended function without failing)when compiled/run on the windows 2000 computer at my lab. ...
[17 replies] Last: I think I might have discovered a clue to what is causing the strangen... (by kotoro)
errors in a do while loop with functions
 
while (Repeat(char again) == true); when i run that line of code, i get this error expected primary expression before char it's a do while loop that runs...
[8 replies] Last: thanks, but i managed to fix the problem a little bit now instead of ... (by metalmop)
Graphics without a library?
 
How could one go about generating graphics in C or C++ without a library? I have tried mode 13h, and my compiler (Dev-C++) always gives me error messages. ...
[10 replies] Last: I've managed to get lucky and find a compiler. It was actually found ... (by brentc628)
by benpul
Debug Assertion Failed
 
Hi, I have developed an c# com control which has been implemented into a Java application using Java Native Interfaces (JNI). The control loads and works fi...
[2 replies] Last: Assertion Failed Memory Related! Review all the code which use... (by simo110)
#includess at runtime?
 
is it possible to do something *like* below.. if(userSelection == mathFunctions) #include <math.h> i'm curious if you can add headers at runtime, more...
[3 replies] Last: You can't compile the code at run time or include any code at run t... (by simo110)
my menu program using array
 
I made a menu program that has 5 menus: add, delete, insert and display record and exit. The program has an array of 20 that is to be filled with unique integer...
[3 replies] Last: Hello, There are some problems in your program, please correct them... (by dgirdhar)
July 2008 Pages: 1... 78910
  Archived months: [jun2008] [aug2008]

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