49,761 Topics

Member Avatar for
Member Avatar for bensewards

Hey everyone, I'm new at visual c++ and MFC Applications, and so I am going through Ivor Horton's Beginning Visual C++ 2010 to make a drawing application through Microsoft Foundation Class. I added menu bars for options, such as shape(rectangle, line, and ellipse) and select colors (black, red, blue green). …

Member Avatar for bensewards
0
283
Member Avatar for cppjosh

Hey everyone! I was recently assigned this program in class and have only finished about half the work but am already very confused. I was just hoping that some of you could give it a shot and share what kind of code you came up with. Well here it is …

Member Avatar for pseudorandom21
0
117
Member Avatar for SillySpAz

I keep getting an output of zero, I don't know what's wrong.. #include <iostream> using namespace std; double determineCommissionRate(double totalCommission, double totalSales); double determineBasePay(double basePay, double yearsWorked); int main() { double yearsWorked, totalSales, totalPay, totalCommission, basePay; cout << "Please enter the number of years you have worked at this company" …

Member Avatar for SillySpAz
0
127
Member Avatar for jowana

Hello, I have a line on my image and i want to find the maximim grey-level value on that line . so i need to scan the line and pick the pixel with the highest value how can I do this? should I calculat the gradient magnitude ? Thanks in …

Member Avatar for jowana
0
120
Member Avatar for lochnessmonster

Local * pLocal = *(Local**)0xE6EB54; // valid How would u interpret these in english i understand it has to do with a pointer to a double pointer? Local * pLocal = (Local**)0xE6EB54; // not sure if this is even valid if the above is valid as well how would u …

Member Avatar for mike_2000_17
0
91
Member Avatar for Mr. K
Member Avatar for andimiami

I am doing a program involving an unsorted list of names that I have to turn form Firstname Lastname into Lastname, Firstname. So I wrote the main program, and my instructor told me that under my getList function, to retrieve the data just do data >> first and data >> …

Member Avatar for Greywolf333
0
133
Member Avatar for aesthete

Hi, i need to write a code which can convert a raw image to anyother desired format like BMP or JPEG etc.

Member Avatar for mike_2000_17
0
50
Member Avatar for daviddoria

n windows I used GDI+ to capture a region of the screen. Is there something similar for linux? I want to do ScreenCapture(Top, Left, Width, Height); and save it to a file (png or something). What's the easiest way to do this? Thanks, Dave

Member Avatar for Mual
0
1K
Member Avatar for munitjsr2

I am learning C/C++/oracle/Unix? I am thinking of developing some application on my own, but I have no Idea what else is required. If you take an example of C++.I have very basic knowledge of it(data types, oops concepts,vectors,file handling,exception handling etc) I am not an expert though. I have …

Member Avatar for munitjsr2
-2
328
Member Avatar for superjj

I'm making a project in c + +. I am now creating help, so if you push a button or F1. but I do not know how to make this. can someone help me Thanks in advance jongen joeri

Member Avatar for superjj
0
103
Member Avatar for joru819

[CODE]#include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; void displayCardFace(int value)// gives 10 value cards a face to make gameplay more realistic { if ((value >= 2) && (value <=10)) cout << value; else if (value == 1) cout << "Ace"; else if (value == 11) cout …

Member Avatar for abhimanipal
0
106
Member Avatar for JohnBoyMan

Hello. I have been programming for a while now and am ok but for some reason i can never figure out weather or not to do something like this [CODE] code * c; c->something(); [/CODE] or [CODE] code c; c.something(); [/CODE] no where has explained that to me, but ive …

Member Avatar for WaltP
0
84
Member Avatar for Mr. K

I am trying to move a ball using time. What do I need to know to move the ball? How can I move the ball 20 pixel per second? [CODE]#include <allegro.h> int ballx = 320; int bally = 240; void ball(){ if(key[KEY_RIGHT]){ } else if(key[KEY_LEFT]) { } acquire_screen(); circlefill(screen,ballx,bally,5,makecol(255,255,255)); release_screen(); …

Member Avatar for Mr. K
0
188
Member Avatar for CodyOebel

OK I figured after looking at some of my top down style original application that I wanted to make it a bit more classy, and organized as well as simply just use a class to both keep familiar and give me dynamic options. I have ran into problems and cannot …

Member Avatar for CodyOebel
0
276
Member Avatar for xander25

So ive been trying to figure this out on my own and searching the books and the net and still no success. Can anyone give me some input with this thing. [code=php] #pragma once #include<iostream> #include<cstring> using namespace std; class hugeint{ friend ostream &operator<<(ostream &, const hugeint &); public: hugeint(long …

Member Avatar for ztdep
0
375
Member Avatar for cestra

[COLOR="Red"][B]//This is the main file[/B][/COLOR] [CODE]#include<iostream> #include<fstream> #include<string> #include "Books.h" #include"account.h" using namespace std; int main() { cout << "\tWelcome\t" <<endl; cout << "1-Login" <<endl; cout << "2-Register" <<endl; cout << "3-exit" <<endl; cout << "Please enter a choice: "; cin >> choice; switch (choice){ case 1: system ("cls"); cout …

Member Avatar for cestra
0
203
Member Avatar for ziron

Hi people, I am a C4 Quadriplegic I use WiViK 3.1 desktop keyboard with word prediction called wordQ but I keep getting the same error. I have reinstalled it many times, I have up to date antivirus and spyware. [URL="http://www.wivik.com/description.html"]http://www.wivik.com/description.html[/URL] I host and design websites but know nothing about C++ …

Member Avatar for ziron
0
428
Member Avatar for ztdep

Dear friends; I write a stack template, the head file and the main are as follows; but when i test the push function, it give me the following error. i do not understand the reason. could you please help me out. 1>f:\computation\datastructure\stack template\stack template\main.cpp(31) : error C2664: 'Stack<T>::push' : cannot …

Member Avatar for mike_2000_17
0
174
Member Avatar for Euphan

I've been tasked with reading in multiple emails that are stored in a single archive file and then scanning it to find certain things. My problem now is that I seem to only be reading in the first of the many individual files stored in the single archive. The "archive" …

Member Avatar for Euphan
0
238
Member Avatar for dizzymrswagg

Newton’s Law says that the force, F, between two bodies of masses M1 and M2 is given by f=k(m1,m2/d^2) Where k is the gravitational constant and d is the distance between the bodies. The value of k is approximately 6.67 x 10-8 dyn.cm2/g2. Write a program that prompts the user …

Member Avatar for Moschops
-1
113
Member Avatar for sms5660

I can't make my array work. I have never encountered this error before and I am a beginner programmer, this is my homework assignment. Please help! I really don't understand/know a lot of terminology, so it would be most helpful if you showed me how to change my errors. Thank …

Member Avatar for sms5660
0
259
Member Avatar for mattloto

Hello! I'm just starting out with makefiles, and I'm doing something using SDL (it's a cross-platform window manager). For this project, I want to incorporate a makefile into it, but I don't know what to do. The tutorials for SDL say to compile the program, use this command: [CODE]g++ sdltest.cpp …

Member Avatar for nezachem
0
186
Member Avatar for b1izzard

Hi everyone, I am trying to create Tag Extractor which is much like Twitter's Trending topics or Google's Top searchwords. Input file consists of a collection of some 3000 tweets. Problem 1: I am using "Qt" as the front end.(Entirely newbie to qt). Using two "List View" controls. one loads …

0
99
Member Avatar for davelee

Hi, I am writing a piece of code for a student database. I have one abstract base class named student and three classes (physics student, biology student and chemistry student) derived from student. I want to overload the insertion operator (<<) so that at some point in main I can …

Member Avatar for vijayan121
0
855
Member Avatar for AhmedGhazey

hi i have this problem and i don't know where exactly i must search if you can pass any tutorials i'll be grateful thanks. Find Counter Examples that prove the following statements are wrong : 1-f1 (n) - f2 (n) is O(g1(n) - g2(n)) 2-f1 (n) / f2 (n) is …

0
49
Member Avatar for Sahilroy

I was given an assignment to complete on database, i have created it and also works but crashes after executing once, check it friends and please help, if you can modify or make it works my time is really limited and am unable to find a solution, friends be graceful …

Member Avatar for Ancient Dragon
0
113
Member Avatar for geekme

In oreder to implement a routing algorithm , I need to maintain a router table that is to be updated .What data structur is to be used for this? Please help.

Member Avatar for vijayan121
0
44
Member Avatar for jmcginny5

I had posted this before. But I am more on the right track. The places that I need help with have something saying like "need something here" or "need to fix the way it is displaying" I can't figure it out. I also am not sure if the multiplication portion …

Member Avatar for TrustyTony
0
219
Member Avatar for hawita

Hi please help. Any help would be appreciated :D I have to write a program to read data from a large text file, analyze it, and output the results of the analysis to a data file. there are two data files to process. Problem: Using airborne sensors that record GPS …

Member Avatar for jonsca
0
189

The End.