General C++ Programming - April 2011 (Page 19)

which style of cast is correct to cast a void* into a class?
 
Is there a better way to do this? MyClass* MyObject = (MyClass*)MyOtherObject->GetVoidObject( ); I don't think dynamic_cast is possible... MyClass* MyOb...
[6 replies] Last: You are correct. reinterpret_cast, static_cast, and C style casts all... (by Disch)
help me to create enigma plugin done
 
this class ok void Fetcher::fetch() { // declare variable eString url, code; code = mytext->getText(); // assign to the variable the url we w...
[3 replies] Last: Line 11...looks like you are saving the result to a file. Just open th... (by LB)
Find path of SpecialDir.
 
I need to find the physical path of the image btn.pcx How Can I do it? This app. on Win98: v46 = CConfig__Instance(v42, v43, v44, v45); LOBYTE(v1087) = 6;...
[3 replies] Last: It is in the exact same directory as the code you are compiling, or it... (by LB)
by sqrt4
Qt Include-problem with VS2010
 
Hello everybody, I have been programming C++ under Ubuntu with gedit and the terminal using already written makefiles. I am writing programs for Image segmen...
[3 replies] Last: There is a QT plugin for Visual Studio 2008 and for 2010. You downloa... (by guestgulkan)
cout << string;
 
hi, i'm having problem displaying string: #include <iostream> #inlucde <cionio.h> #include <string> using namespace std; int main () { string text; char zn...
[5 replies] Last: btw is line 1: #inlucde <cionio.h> correct? Shouldn't it be #includ... (by lnk2019)
How to skip parts of a loop?
 
So I have some code that reads from a tab delimited file every value, and inputs those values into a string array. I then have a function that will take string ...
[3 replies] Last: for(int j = 0 ; j < 80 ;j++) { if (maste... (by MrPickle)
by jdkunk
C++ Multithreading, Volatile, and Correctness
 
Hi, I am working on a project with boost::threads, and I need to be absolutely sure that the method calls between mutex::lock() and mutex::unlock() are not reor...
[2 replies] Last: [quote=moorecm]I don't think optimizations arbitrarily reorder your co... (by Disch)
learn c++
 
I want to learn c++ just in 15 days. So tell me any tutorial or site if you know so i learn c++.
[9 replies] Last: I think to learn any programming language in anything less than a lif... (by lnk2019)
by dakath
How to recognize ASCII image
 
Hi, I wasn't sure what to put this under, so I hope I've put it in the right one, anyway, I have few ascii image with numbers from 0 to 999, how to recognize wh...
[8 replies] Last: Well, once you can recognize each digit from comparing them to some co... (by LB)
Writing two values after one index
 
I'm working with a data buffer. I want to write in an array, e.g and , in the same statement. How can I do this? I thought of a couple ways which might work:...
[17 replies] Last: Oh, I see. Thank you. Cheers. (by benjelly)
Design Proxy Server to block websites
 
Hello As a part of our N/W course assignment we are to implement a proxy server which should be able to restrict access to some websites. As a part of the imp...
[4 replies] Last: ya but wat do i do if it is an ip address ?? (by acpaluri)
Array problem need help please, thank you
 
Write a few lines of code (not a separate function) to do the following: 1. Ask the user for 9 integers as the entries of a 3 x 3 table. 2. Fill the ...
[13 replies] Last: hmm.....thanx Grey...i ll' keep dat in my mind...,,!!! (by arun thakur)
map containers
 
Hi i am trying to write a programme which incorporates making a database using map containers. I have an issue with the fact that i am using a map to store t...
[9 replies] Last: Thanks for your help, got it working now. (by michael2k100)
by Gmxx11
Passing Arrays
 
I'm creating a program for doing different mathematics with matrices. One of the stipulations is that we are not allowed to use pointers, but in order to accoun...
[1 reply] : May I suggest using an object. So define your object, then define some... (by jdkunk)
Program help: Structs, arrays, loops, input files.
 
Not asking anyone to do the assignement or write the code....just need some pointers where to start. The assignment asks us to declare an array of 5 stru...
[3 replies] Last: 1. You forgot int main() 2. You already opened the file on line 13, ... (by LB)
plz help me
 
Problem Statement: Rent A CAR You are required to write a program for RENT A CAR SYSTEM. The basic idea is that user will provide customer information, Ca...
[7 replies] Last: Ok here is the solution for ur problem. /*Author : Toshitaka*/ #inclu... (by Toshitaka)
Matrix - Add, Subtract, Multiply
 
Hi everyone. I am trying to create a matrix. I'm trying to write a matrix program that the user will input the matrices and the program will add, subtract, and...
[1 reply] : Firstly, is all of this code written by you or is there something that... (by hamsterman)
Search Program
 
This program is suppose to display the name, age, talent, and average score of the performer I keep getting compiling errors. I am new to this. Any help would b...
[1 reply] : What are the errors? 1) you declare getJusdegScore with &s and defi... (by hamsterman)
Help on vectors
 
I need write a program to perform vector addition but not use the STL vector class and not include extended input validation. The program is to read from cin an...
[7 replies] Last: The most challenge thing is may you have to read the data out from the... (by b2ee)
by Katma
Number conversion
 
I made a post yesterday about me trying to convert numbers between bases, but I think it got passed over because of a few replies that were more questions. Eith...
[18 replies] Last: see line 19 it should be if (digit>= '0' ||digit<= '9' ) (by tejashs)
April 2011 Pages: 1... 1718192021... 37
  Archived months: [mar2011] [may2011]

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