48,985 Topics

Member Avatar for
Member Avatar for nizbit
Member Avatar for dmanw100

I was wondering if there is an easy library that allows reading in a .bmp, mask it, then display it. I believe I could read it in with [URL="http://www.adp-gmbh.ch/win/programming/graphic/bitmap.html"]this[/URL] but I cannot do anything else with it. Your help is appreciated! Any suggestions?

0
101
Member Avatar for mbayabo

I'm having trouble initializing Objects while they're inside if else statements. I'm using Visual C++ 2008. for instance: [CODE] class Account { Account(); Account(int = idnum, double creditLimit = 500.00); Account(double initBal, int idnum, double creditLimit = 100.00); public: somefunction(); }; if (a > 0 && b > 0) { …

Member Avatar for chunalt787
0
136
Member Avatar for afromong

I am a noob therefore this question is hopefully very easy for someone to answer! in my code i have asked a question if the answer is yes i want the program to continue onto the next question (this is fine) if however the answer no or enter an incorrect …

Member Avatar for chunalt787
0
106
Member Avatar for chern4ever

can someone help check my code? i m trying to create multi dimension array with classes. it will not compile and i do not get the error message. thanks alot. [CODE=cplusplus]#include <iostream> using namespace std; const int MAX = 5, MAX2 = 3; class notebook { int num; public : …

Member Avatar for chern4ever
0
113
Member Avatar for yu83thang

Hi, May I know how to declare a Class in C++ window application form? Below is my code and error as shown below as well. here is my class declaration: [code=cplusplus] public ref class CLoadObj { public: bool ImportObj(t3DModel *pModel, char *strFileName); System::Void ReadObjFile(t3DModel *pModel); System::Void ReadVertexInfo(System::Void); System::Void ReadFaceInfo(System::Void); System::Void …

Member Avatar for yu83thang
0
235
Member Avatar for seogoat

I want to learn how to use stack and ques in c++, but I don't know how to start. Where should I look on the internet? Or does anyone have any ideas?

Member Avatar for dmanw100
0
103
Member Avatar for cathyf

I've been using visual studio 6 for a couple of years now, and every programer that I have asked this has said, "geez I dunno how to do that." Basically, my problem is that I can't figure out how to get the debugger to show me the contents of c++ …

Member Avatar for cathyf
0
184
Member Avatar for FtKShadow

Alright I know you dont help on homework, but I have don't so much I just need a little guidance on the ending. I just need to make my number guessing game ask the user if they would like to play again and keep there bank. The assignment: [url]http://www.glennstevenson.com/c++online/syllabus/midtermfall2008/midterm.html[/url] Heres …

Member Avatar for Sky Diploma
0
134
Member Avatar for avillachandok

firstly hi all, i''d like to intrroduce myself. Im a new C++ programmer..hardly..but trying..so yes its frustrating with the error and syntax mainly. Anywayz, this is a card game with 2 classes and simple functions but im having a problem compiling it. I compile it on visual studio so i …

Member Avatar for avillachandok
0
123
Member Avatar for killdude69

Hi, I know how to subclass a RichEdit, and the messages I handle in my procedure work, but I want to know how to call the default procedure that would proccess a non-subclassed RichEdit Control. My problem is that when I subclass it, I want the default Procedure to take …

Member Avatar for Ancient Dragon
0
243
Member Avatar for egolovin

can someone look at this? in theory it should work but i cant figure it out thanks in advance [CODE]#include<iostream> #include<string> #include<cmath> using namespace std; void binToDec(string getBinary); int main() { string getBinary; cout<<"Enter a Binary Number:"<<endl; cin>>getBinary; binToDec(getBinary); return 0; } void binToDec(string getBinary) { int setLength,total=0; double placeholder=0; …

Member Avatar for egolovin
0
325
Member Avatar for dexter1984

[url]http://i126.photobucket.com/albums/p98/justln/untitled3.jpg[/url] Which codes do I use so that the answer is not out of place? I tried using \t and setw but it doesn't work :(

Member Avatar for dexter1984
0
148
Member Avatar for Evan M

I have a vector array of a class that's giving me some crap. I would beat it up, but that might result in some innocent circuits getting damaged. Class: [code=c++]class Font { public: Font(); ~Font(); int style; int ptSize; std::string name; TTF_Font *font; }; Font::Font() { style = TTF_STYLE_NORMAL; ptSize …

Member Avatar for Evan M
0
99
Member Avatar for zarf

Hi all i am a newbie in C++, i am currently doing my FYP and i need some help on it. I am using visual C++ version 6.0. Firstly, i have 2 machines A ( the client ) and B ( the server ), A is supposed to send a …

Member Avatar for zarf
0
109
Member Avatar for leouel

does anybody know how to create a program with vertical chart using graphics.h pls help.. <snipped email>

0
50
Member Avatar for adrian116

1. const int* a; (what the difference between const int *a and why pointer need to be const?) 2. short b[10]; (is the content of b are all short type?) 3. float* const c[]; (i think this should be wrong due to the size of array c is not assigned) …

Member Avatar for adrian116
0
101
Member Avatar for JackDurden

How do I insert a character into a number array? Is it possible? a and b are constants. [CODE]for(int i = 0; i <n; i++) { pointer[i] = new int[n]; } for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { pointer[i][j]=1;/ pointer[a][b]="*"; //<---- } }[/CODE]

Member Avatar for rhoit
0
96
Member Avatar for core2d

I have this problem that states that: LL be a doubly linked list that has 2 headers L and R. Each record has: llink, data, and rlink as field. So llink is the prev pointer and rlink is the next pointer. Here is the code to reverse the list, but …

Member Avatar for rhoit
0
96
Member Avatar for Randomppl

i wanna noe how to write a code that will read lines from a file and then put those lines into an array. and will this make a double of arrayB if arrayA is empty and arrayB is filled? arrayA[10]=arrayB[10] help of any kind will be greatly appreciated!

Member Avatar for Randomppl
0
67
Member Avatar for lobhater

I am a new c++ programmer that migrated from java. I'm glad i've finally found a "real" language.... Anyways... I have been trying to write a c++ program to send email using the smtp. I am not looking for code, i'm looking for a good resourse on the subject... I've …

Member Avatar for sidatra79
0
109
Member Avatar for rhoit

I create the simple template structure like this [CODE] #include <iostream> template <class info> struct box { info data; }; int main() { box<int> b1; b1.data = 1; std::cout<<b1.data; return 0;typedef box square; } [/CODE] Now i want to use the typedef for this template structure. I could not figure …

Member Avatar for rhoit
0
2K
Member Avatar for gregorynoob

okay, this is the problem (variation of the knapsack coins problem): you've got 4 coin types: 1 cent, 2 cents, 5 cents and a quarter...infinite amount of each. I'm supposed to find the number of ways in which the coins can be arranged to form the sum of some integer …

Member Avatar for VernonDozier
0
361
Member Avatar for dexter1984

Hi, I'm doing a project regarding converting roman numerals to decimals and vice versa. With some reference from the internet, I was able to come up with one. However, it isn't working very well. Can someone look at my codes and point out what/where's the mistakes? Thanks in advance. [CODE=cpp] …

Member Avatar for dexter1984
0
161
Member Avatar for alleycot

write a program to create a customer's bill for Ms.B's Desk-Shop. ms. B sell only three items: grater-cake, icy-mints and corn-sham, which she persoally delivers to ezch customer upon accepting their phone order. The unit prices are $50, $10 and $30 respectively, with delivery charge of 10% on the total …

Member Avatar for Ancient Dragon
1
263
Member Avatar for sandya_vish

Given the following student data (code, number, first name, last name, mark): CSC10208 1 Fred Nurks 50 ISY00245 4 Fred Bassett 75 Write a program to open a file, accept data in the above format using a struct, write the data to the file and then close the file. Your …

Member Avatar for skatamatic
0
90
Member Avatar for dmanw100

I am trying to use sprites, which I made in the form of bitmaps, in my program. Is there a library that will allow me to easily display them? I tried to use OpenGL but my computer will not allow it to initialize. I would simply like to display bitmaps …

Member Avatar for dmanw100
0
95
Member Avatar for defychaos

Hi :) I'm doing a programming project with development of an algorithm for a quadratic recursive sequence: (3, 3, 7, 11, 19, 20, 32), but I can't figure out which expression to use. I know it's probably got something to do with the differences of n-1 and n-2 being added …

Member Avatar for Lerner
0
339
Member Avatar for FAZ3

Can someone help me create a function in a linked list program that replaces an element in (I) place with an element a user enters? here is the sudo code I tried to implement but Im kinda lost. this is in my header file -> [icode]typedef int el_t; // el_t …

Member Avatar for stilllearning
0
98
Member Avatar for kurorokhristoff

Hi, im confuse making this program,.. i need a little help from expert here in dream in code so i decided to post it in here,.. Write a program that uses for statements to print the following patterns separately, one below the other. Use for loops to generate the patterns. …

Member Avatar for Lerner
0
2K

The End.