General C++ Programming - August 2008 (Page 6)

How to watch an iterator
 
I have a std::map, std::list<int>, and std::list<myObject> When I loop through them with their type iterators, how can I watch the values? For instance I cal...
[1 reply] : Okay, I was hasty. Simply add the iterator to the watch window and exp... (by zakkhoyt)
by Millie
Reading/Writing text files
 
Hi all, I'm new to these forums and fairly new to C++ programming. I'm entering my first year at University, and I'm trying to learn some C++ so I'm not clueles...
[2 replies] Last: To build on what Zaita suggests, a class is a good choice to hold su... (by Duthomhas)
Problem with strcmp()
 
Hi everybody, I have problem with comparing two strings. Here they are: str1 = akmal str2 = abror and here is my code #include <iostream> using name...
[4 replies] Last: Thanks much helios. I do it my function works. It's true that akmal>... (by akmal4ik)
by Roy420
How to convert double vecto to a vector with certain class datatype?
 
The issue I am encountered with is… the same vector we read as double is to be used in another function, but with different data type as mentioned bellow. So ...
[1 reply] : It sounds like this would do it: NRVec<double> ConvertFromDouble... (by jsmith)
Thread sync problems
 
Hi everyone, really hoping someone can give me a pointer here I am using Rad Studio 2007, in the C++ personality I need to read streaming data from a com ...
[5 replies] Last: One word of caution, expanding on the point Zaita made about having ... (by bnbertha)
Embedding C++ Into HTML
 
I've always wondered how you would go about embedding C++ code into HTML pages to publish on the web. Anyone have an answer?
[9 replies] Last: How dare you compare perl to C/C++ =\ That's just cruel :P Perl is ... (by Zaita)
How can i make this command? "Press any key to continue"
 
How can i make this command? "Press any key to continue" I have a program, and i have for loop, i need it still working but all loop its finish it, i want th...
[7 replies] Last: My DevC++ automatically puts system("PUASE"); into the file.. and I've... (by Aakanaar)
mutable variables and const functions
 
Hello everybody, I was reading about mutable variables and I have a problem understanding their purpose. I understand that mutable variables can be altered by...
[12 replies] Last: yes.. the examples and explanation were very good. I have definately w... (by Aakanaar)
by yeng
guessing game
 
hi! We have a project about guessing game.. The requirement goes like this. The user will hide a number from 0-99 then,the computer will be the one to guess ...
[4 replies] Last: Hi everyone am Having a Problem with my c++ compiler whenever i run a ... (by kelvin)
RANDOM LOTTERY
 
ei guys..please help me...tnx..ahmm im assigned to create a program that have random using c++...in lottery game...tnx again for your help...and godbless..
[1 reply] : #include <ctime> #include <cstdlib> //... srand(time(0)); //Seed... (by helios)
by shesh
h/with c++ a/ment
 
hey guys, i need help with an assignment i have to do. its made up of 3 differant tasks. i can seem to get it right! your help would be greatly appreciate...
[7 replies] Last: ne help with task2? i got through with the rest. thanks (by shesh)
trying to read from a string file
 
hey i keep getting a compile error in the function convert_to_binary. im new to c++ but any help is appreciated.the error message is invalid conversion frm 'cha...
[4 replies] Last: *Shrugs in puzzlement* (by helios)
by Lorian
Converting between base and inherited class
 
Hello all, Lets say for the sake of argument I have 3 classes, protocolA, protocolB and connect. protocolB inherits from protocolA and has exactly the sam...
[3 replies] Last: = 0 means pure-virtual. This means the parent class will not have an... (by Zaita)
Delete a node from binary tree.
 
Hi everybody! This is my code, all work except delete function. I check it for several times but can't understand what is problem. //Binary Search Tree Pr...
[7 replies] Last: Oh, would you remind me the name of that program? I can never remember... (by helios)
by mask
characters and strings.
 
how to write a program that calls a function and tries to count the number of character in a particular string..an example out is.. Output: there are 2 m in...
[3 replies] Last: I'm sorry, but no. You can do it yourself without thinking too hard... (by Duthomhas)
file operation woes
 
Okay, I am getting some weird behavior with the following code. I am using cygwin, it is a POSIX/Unix emulator for windows. void Socket::registerPlayer(s...
[4 replies] Last: Duoas, I just read your reply after I made my previous post. Thank yo... (by fireVein)
by hitzy
using keystrokes on the fly
 
I'm trying to write a program that continues to process weather or not a key is pressed on the keyboard, but that key's pressed will change variables in the pro...
[7 replies] Last: Thanks for all your help!! I've edited the original post to show the ... (by hitzy)
Explain this error to me! Thanks
 
I have a short program below: void main() { .... } int test(char str ) { char str1 ; str = "NEWYORK";// OK----> why don't have error??? str1 = "P...
[1 reply] : The reason why you can assign a string literal to str should be becaus... (by AnalcoholicBeer)
static cast vs. dynamic cast
 
I've read around on some site to try to distinguish the difference, but it's kind of vague. Can someone give me their explanation? Much appreciated!
[4 replies] Last: To be exact, One line for each cast. ;) (by vengateshs)
by Rose
Newton Raphson Method
 
Hello everybody! Can you give me any question provided with its answer (c++) which is using Newton Raphson Method ? The question must be d...
[2 replies] Last: Yup, I am seeking a function with an "odd" root where Newton's ... (by Rose)
August 2008 Pages: 1... 456789
  Archived months: [jul2008] [sep2008]

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