General C++ Programming - April 2009 (Page 11)

Problems betwen 64-bit and 32-bit builds
 
I have a project which I just recently included 64-bit support for, as I was using a 64-bit 3rd party library. The code builds and works as expected. On another...
[2 replies] Last: Problem solved. I had a char array of sixteen elements declared like s... (by GenTiradentes)
Computer Problem??
 
I am trying to run a C++ program using my note pad and saving it as .exe this is what it says: "The version of this file is not compatible withthe version o...
[4 replies] Last: ............................................________ ................... (by Tarou San)
by roige
Templated operator problem
 
I have a base class that has the following 2 operators: void operator<<(const void* Buf); void operator>>(void* Buf); In 2 derived classes I have: templa...
[1 reply] : On the face of it, it doesn't make sense to provide: void operator<<(... (by kbw)
C++ freezes when runnging a program
 
Hello! I just started using C++ 2008 Express Edition and I went into the "Learn C++" section to get started. There's a card game they teach you to create so...
[3 replies] Last: I added a "class" and called it Cardgame.h and typed in this code: ... (by rebeccamaguire1)
anyone have some quick advice with header files in C++ guys
 
hey guys, my code works and all, but my professor just told me that I need to include a .h file. this program allows people to store numbers and contacts in a ...
[1 reply] : Design the user interface to get the desired information. Rofl(); ... (by closed account S6k9GNh0)
Problems accessing data in a vector of lists
 
I'm having trouble accessing data in one of my data structures. I have a vector of strings and a vector of lists of strings. class graph { privat...
[7 replies] Last: Thanks! that took care of it (by aeronet)
Don't understand this code-Bitwise ~
 
I know that ~ means not, but I don't know how it works in the following code. Like the comment says, when tab is pushed, it increments the cursor by 8, but make...
[2 replies] Last: That's actually very interesting... Thanks for your help. (by gsingh2011)
need to find the mode using arrays and pointers?
 
Im supposed to write a program that has a function that accepts an array of integers and an integer that indicates the number of elements in the array as argume...
[1 reply] : #include <iostream> using namespace std; int main() { int s... (by closed account S6k9GNh0)
continue with the program while waiting for user input? (console)
 
Hi, I'm working on a C++ console app that needs to be able to continue with the program while I'm waiting for user input at the console window. (i.e. continue p...
[2 replies] Last: Personally, I'll choose threads. Check the input buffer if you need f... (by rybo)
by dkaip
pow problem
 
Hello. I am working on code::blocks. Here the problem. When i use using namespase std; gives error call. Why is that? Thank's jim /* pow example */ #in...
[3 replies] Last: strange that adding using namespace std makes the error come. I know t... (by Gumbercules)
problem with code
 
wat im trying to do is to allow the user to select a show and than select by row and by column where they would like to sit and than append this value to a file...
[2 replies] Last: oh no i created a seperate file called ticket so it prints out wat the... (by natasha23)
How to make it work on my computer?
 
Ok I know yuour need a compiler to run the program C++, but how do i make it just work on my computer...Like if i write a program and want to test on one of my ...
[2 replies] Last: Thank You it works!! (by Gonzo 3 5 7)
postfix to infex
 
please convert into postfix expression 3↑ 2 + 5 * 4 ↑ 3 – 18 / 9 Symbol Postfix Stack and evaluate outcome postfix Input operand 1 operand 2 v...
[9 replies] Last: I suggest you try it once... binary tree traversal are quite easy. wr... (by writetonsharma)
by GANTOR
Suggestions
 
Hello, I have already posted this in the beginner forums, but I thought I might as well post here as well. I have but recently written a program that uses some ...
[1 reply] : cout << "\nE. Quit (press Q)" << endl; you are just checking Q, b... (by writetonsharma)
arrays and pointers...
 
Im supposed to write a program that has a function that accepts an array of integers and an integer that indicates the main problem that I have with this p...
[5 replies] Last: ok... i do not understand this, im not really experienced... could som... (by lolaabbydawn128)
Set Class - Copy constructor
 
I keep running into segmentation faults with my current copy constructor. Set::Set( const Set & A) { Node * Temp = A.Head->Succ; while ((Temp) ) ...
[6 replies] Last: There is a dummy node at the front of the set. So A.head->Succ really... (by aab1990)
Set Class - Insert function
 
I am working on a set class and I have successfully written an insert function, but I need the function to insert in an ordered fashion. bool Set::insert( c...
[1 reply] : You need to traverse your linked list to find the insertion point. Pr... (by kbw)
Initializing already-created array
 
I have an array of something, and I know it can be initialized at once: int a = {1, 2, 3, 4, 5}; but is there a way to easily set all its values at once ...
[2 replies] Last: Yes, as helios said, there is no way to do that. Remember, someth... (by Duthomhas)
by ilyes
a vector of different class
 
hi i have a base class and many other class that i have derived from this class class Base{}; class Deri1: public Base{};// with private methode and attr...
[4 replies] Last: Virtual functions are definately the way to go when you can. If that'... (by Disch)
Hello
 
I am new to this web site...I am take Programming 1 C++...I have one question today...I have a compiler at home but at work I can not download a compiler becaus...
[2 replies] Last: see this: http://www.comeaucomputing.com/tryitout/ might hel... (by writetonsharma)
April 2009 Pages: 1... 910111213... 20
  Archived months: [mar2009] [may2009]

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