General C++ Programming - November 2009 (Page 12)

by vijkrr
how overriding works
 
hi, i've a small program class A { public: void GET() { cout<<" Inside A "<<endl; } }; class B : public b { ...
[4 replies] Last: You can also directly call a base function with something like this: ... (by Bazzy)
by lotfus
cin not working!
 
Hello all, I'm beginning with C++... my problem is very simple, I have this program: // my first string #include <iostream> #include <string> using ...
[2 replies] Last: Read these: http://www.cplusplus.com/forum/articles/6046/ http://www... (by Bazzy)
Void Functions (1,2)
 
Hello Everybody.I need to write a C++ program(block letters via functions) Firstly, write a function void line( char ch, int num) which outputs the charact...
[24 replies] Last: No, you should call them. Not declare them http://www.cplusplus.com/d... (by Bazzy)
Trying to do something with a thread.
 
Ok so this is my first time using a thread and I'm a little confused. I have a function that I want to run separate and it doesn't need to know about thing else...
[7 replies] Last: Awesome - thanks for that mate. I actually read it in the documentatio... (by Mythios)
converting audioformat 16bit/16kHz <-> 8bit/8kHz
 
Hi, we have to convert a 16bit/16kHz audio format into 8bit/8kHz format and reverse. Changings between 16bit and 8bit seems to be easy but that's not enough...
[11 replies] Last: wow nice! I have a file with raw-data to test the conversion with w... (by MaikCAE)
Trying to build a program that will similate nfl playoffs
 
I plan on using arrays to store each teams stats. Not sure how many stats i will use yet, but that is irrelevant to my problem. I want to use a single function ...
[2 replies] Last: This is what I have in mind: iostream<all necesary> Double AFC1 , AF... (by cusetown80)
generic stack with previous functions
 
Im trying to implement a generic stack using previous functions from a different program. Im getting these errors. F:\373\L_Stack.cpp In destructor `Stack<...
[1 reply] : NodeType is a struct with no member functions. Item->FirstInsert(x); ... (by writetonsharma)
by sam90
A new member needs answers asap:)
 
hi all i need the answers .if u can im stuck with my hw i have just knew i have one! it due 10hours from now! the questions are: One interesting applic...
[18 replies] Last: Lets end it here.. :) (by writetonsharma)
by CQ75
Finding the minimum value of an array, C++
 
I'm trying to find the average, minimum, and maximum value of a list of data. The data is entered into an array, and then we find those values. Here's the pr...
[2 replies] Last: Oh, I put the wrong thing up, I messed it up trying to find my mistake... (by CQ75)
record structures & arrays
 
My latest cpp assignment. i feel like i'm getting close, but i could definitely use some advice. ERROR on line 75. Write a program that uses a record struct...
[2 replies] Last: okay now it runs, but it isnt returning anything(readable/correct) and... (by mattzorx)
Parallel programming in C++
 
Hi, i have some questions to C++ gurus, i have 2 matrixs, i must multiply them, but the operation of multiplication must be parallel, what i must use for this,...
[6 replies] Last: I've also heard 0xB... (by Bazzy)
Read from textfile and store in multidimensional vectors
 
I am attempting to use multidimensional vectors to store the following dataset which is stored in a text file. I am looking for suggestions on how to design th...
[2 replies] Last: I solved the problem using Data Structures and multi-dimensional vecto... (by garrett)
by charsi
String Insertion Operation & Abstract Classes
 
Hey, ive got most of my program working just a few glitches that i cant seem to get past. the program has a PURE ABSTRACT CLASS FILE...called 'motion.h' with n...
[1 reply] : I'm not sure what your exact problem is, but I do see one major proble... (by jsmith)
High-performance, distributed C++ programming
 
Folks, does anyone here happen to know any good books/documentations for writing high-performance, distributed C++ programs? How can I learn it? Thanks in ad...
[no replies]
by skulda
Don't understand rare constructor syntax...
 
Hello everyone! In a project, I'm starting to work with, I have seen a code construct like this: myclass.h class myclass { public: myclass(); p...
[3 replies] Last: Ok, thank you, that helped a lot. Now I understand what's happening :) (by skulda)
Earliest and Latest of "All" the Logins Time
 
Hello People...I need help bad...this problem is wearing me out...I was able to get the program to print out the first and last logins times and then get the di...
[7 replies] Last: two possible problems. one. you may be destroying a time value in l... (by herbert1910)
Iterator Problem ( multimap )
 
multimap<LONG, int*> subscriptionList; void AddToMap(LONG eventId, int* Sub) { subscriptionList.insert(pair<LONG, int*>(eventId, aSubscriber)); } ...
[3 replies] Last: yeah exactly, inform method calls the existing subscribers. Traversa... (by stepwolfalbatros)
a question of cin
 
How can i input a string with blank by cin? like; string s; cin >> s; when i input "Hello world", s just get "Hello" thanks your help
[2 replies] Last: can you try cin.getline() Edit: Late (by writetonsharma)
Access Violation
 
Hi, I'm writing a tic-tac-toe game for a single player to play against a computer. When I try to compile, I get an error that says: "Unhandled exception at 0...
[3 replies] Last: This is a classic reason to avoid type unsafe functions like scanf. ... (by Disch)
Problem with object instantiation in class definition
 
Hi all, I'm writing a command line/config file parser for a project I'm working on and I'm having trouble. There are 3 classes involved, The Option class...
[2 replies] Last: Thanks helios, I am apparently an idiot :p To much C programming late... (by icarus127)
November 2009 Pages: 1... 1011121314... 16
  Archived months: [oct2009] [dec2009]

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