General C++ Programming - October 2009 (Page 16)

Determine if a specific thread is running or not??
 
Hi folks i was hoping you guys could help me out. I need to know programatically if a thread is running or not. I am using begin thread function (I know peopl...
[5 replies] Last: Got the answer I could use GetExitCodeThread thanks for the suggesti... (by silver chips)
Overloaded operator problem
 
I made this class as a project so I'd better understand classes: template<typename _type> class Value{ private: _type _value; public: Value(_type...
[6 replies] Last: Oh, yes, that would do it. operator+ returns an (unnamed) instance ... (by jsmith)
Need assistance with a menu program
 
I have a problem in c++ where I must be able to enter a maximum of 100 values. I must be able to cancel the input whenever I want. And when the input is finishe...
[1 reply] : Yes, you have. Why not compile the above program, run it, and see w... (by jsmith)
Parent Process
 
In the below code, I ran and the output gave me 0 for Line A 26111 for Line B 26111 for Line C 26110 for Line D #include <sys/types.h> #include <std...
[no replies]
invalid conversion from âint*â to âintâ
 
the constructor is TwoD<T>::TwoD( int x, int y) { r = x; c = y; elet = new int * ; for (int i = 0; i < r; i++){ elet = new int ; } for (int...
[6 replies] Last: yes, look like I do not saving any number and the destructor do his... (by olove05)
by gpht
converting decimal to binary with zero padding
 
Hello everyone.....i have to write a program to create a pseudo assembler.....i have as yet recognized the value of the registers and the type of assembly instr...
[3 replies] Last: @helios, can u please explain a little more or give some references... (by gpht)
error with function
 
Im writing a program that uses a thread when you enter a number,displays its prime numbers.the program runs but it just displays all of the numbers in order and...
[2 replies] Last: thanks it does. (by kakashi316)
by tition
Is this code legal (standard?) c++?
 
Hi all, This code compiles just fine on my VS express 2008, and does what it should. Is it legal C++ code? I would be very grateful if someone could test it...
[5 replies] Last: I said it looked fine, what else do you want? GCC doesn't complain. (by helios)
by luq
Making a loginsystem
 
Hi, I want to make a login system in C++ that is based on an online database (MySQL). I don't want to use external MySQL connections. I'm using libcurl/curlpp r...
[3 replies] Last: Thank you very much, I'll check out some references on .cgi. (by luq)
Objects & Operator Overloading
 
void object_1::display(std::ostream &out) { out << left << setw(28) << "Person" << setw(20) << "Thing" ; out << right << setw(5) << "Place" << setw(...
[2 replies] Last: I solved it except for a IOMANIP part. I reposted..Sorry I know, confu... (by lampshade)
by garob
rpn functions
 
I am developing an interpreter and thought it would be a good idea to evaluate expressions with a shunting yard algorithm and rpn calculator but I am not sure h...
[2 replies] Last: You could build an abstract syntax tree. Consider this: * A function... (by helios)
by npp83
String Evaluation Problem?
 
I am attempting to evaluate user input to see if it conflicts with a single string and not a array of strings. The user cannot enter "Admin" as their login name...
[3 replies] Last: Here is some pseudocode -from line 19 to 35 of your code- while(true... (by Bazzy)
by gpht
reading input files.
 
hello everyone..... i need to read to read text file(containing assembly code) and store the data line by line into a string and then access the string one by o...
[3 replies] Last: Then post your code, we can't help you if we don't see what you do wro... (by R0mai)
any idea????
 
(.text+0x8b): undefined reference to `TwoD::TwoD()' P.cpp:(.text+0x122): undefined reference to `TwoD::TwoD(int, int)' P.cpp:(.text+0x12d): undefined referenc...
[4 replies] Last: I have done before in the implementation in separate file and work fin... (by olove05)
by JCED
Templates and vectors of pairs
 
I've just begun with templates, and I'm having issues with this: #ifndef VECTOR2_HPP #define VECTOR2_HPP #include <cmath> #include <utility> #include <vec...
[3 replies] Last: I don't think the errors could be any more explicit. std::vector<std... (by JCED)
What is a Runtime Library
 
What is a runtime library if anyone could tell me that would be great. Thanks!
[11 replies] Last: thank Grey Wolf , explaining in wiki is use for OS environment (like:... (by thavali)
Reverse a char array
 
How to reverse a char array with single traversal in place and in memory? My solution program: void reverse_string(char str ) { char c; char...
[10 replies] Last: Oh, I didn't see the "in-place" part. Yeah, in that case it requires ... (by helios)
problem for "for loop"
 
#include <stdio.h> #include <math.h> main() { int i ,j,c,sum,b,x; printf("Five four prime digit numbers with ther...
[11 replies] Last: got it... i know the answer to my problem fenor.. thank you so much f... (by patrick19)
threading error
 
Im trying to write a program involving threads.Im just having one error that is annoying me. 23 F:\Lab1.cpp expected primary-expression before ';' token ...
[5 replies] Last: int* pNum = (int*)n; for( int i = 1; i <= *pNum; i++ ) { // ..... (by jsmith)
by mar11
structure
 
Hi all, if i have a struct with a lot of member variables.. and i have to compare between to instances. what is the best way to do that?? assuming, i ha...
[5 replies] Last: Well, operator==, the equality comparison operator, should not do that... (by jsmith)
October 2009 Pages: 1... 14151617
  Archived months: [sep2009] [nov2009]

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