49,761 Topics
| |
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). … | |
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 … | |
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" … | |
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 … | |
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 … | |
What are the most useful keyboard shortcuts for visual c++ 2008? | |
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 >> … | |
Hi, i need to write a code which can convert a raw image to anyother desired format like BMP or JPEG etc. | |
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 | |
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 … | |
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 | |
[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 … | |
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 … | |
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(); … | |
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 … | |
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 … | |
[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 … | |
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++ … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … |
The End.