51,593 Topics
![]() | |
I stared at it for about a good 30 minutes now and I still can't find anything wrong with it. Can someone help? [CODE] /*This program makes all vowels uppercase. All other constants are lowercase. Keep in mind I make to call a function isvowel() to evluate the character.*/ #include … | |
Hello.I have been using Microsoft Visual Studio 2000 enterprise edition and I'm having a problem with linking files.I have saved a file named as "class declaration.h" by default and another named as "cppfile.cpp" by default.Let me tell you how I actually started this.First I created a new project workspace and … | |
#include <iostream.h> #include <conio.h> void gas(); void main() { float gal; while(gal<=0) gas(); cout<<"thanks for your help"; getch(); } void gas() { float gal; float total; float miles; float avg; cout <<"enter the gallons of gas used (-1 to end): "; cin >> gal; cout <<"enter miles driven: "; cin … | |
Here's my code. I just want to return the length of a string. How do I do that? Any assistance would be greatly appreciated. [code] #include "stdafx.h" #using <mscorlib.dll> using namespace System; int _tmain() { String *strString; int intLength; Console::Write(S"Enter a String "); strString = Console::ReadLine(); Console::Write(strString); intLength = strlen(strString); … | |
// This program asks the user to enter the length of a rectangle // then for the width of a rectangle , to find the perimeter by // this 2 * length + 2 * width #include <iostream.h> return unsigned long int Perimeter ( unsigned short int , unsigned short … | |
well this is what my program does: //asks for input for number of gallons enter the gallons of gas used (-1 to end): //asks for input for number of miles enter miles driven: //then shows the miles / gallon for this tank the miles / gallon for this tank was … | |
Hi.I have been learning c++ lately and I'm rather interested in learning to produce source codes and applications(games maybe).I need know that whether my choice about learning c++ for game programming is right or not.I'm not interested in web developement.I have read some of the posts in c++ forums and … | |
well i made this little program to help me check my algebra home work it was soppose to be a simple thing so it is badly coded and rushed but something has happened that i dont understand. i have spotted the problem but dont know why its doing this. for … | |
Home work agian. I'm required to write a sales analysis program. One of the function dose enter a new salesperson, it will prompt for personal detail. but if user keys in -1 at any point, it will cancel process and return to main menu options. BUT according the programming standards … | |
:lol: HI i'm really new to c++ programming.I have learning this language with the help of a book named "Teach yourself c++ in 21 days by Sams." I am in day 4 learning expressions and statements.How long do you think it's going to take me to produce a fully-functional c++ … | |
ok, i'm new to c++, please bear with me........ i have a program... it asks the user to enter the price, then it asks to enter the interest rate from, and then interest rate to, and then the loan period (> 2 years) The formula used is: result = price … | |
I am new to c++, and i have a program to do as follows: 1) fill a 2D array for the seat chart with * ... DONE 2) add a passenger to the plane I am stuck here, i have the info put into the cin statements etc, but how … | |
Hi every one, I just want to do a interesting work. But I can't find any clue. Anyone there to help? We know in Destop there are some shortcuts to link a particular program. I want to retrive the information of the shortcut when I click on a particular item. … | |
Hi again.Read the source code below please: // Determining the size of variable types #include <iostream.h> int main() { cout << " The size of a bool is:\t\t" << sizeof(bool) << " bytes.\n"; return 0; } p:s:I have not included the other variable types because there was no error message … | |
I just started my first c++ class and we recieved our first assignment. I dont have a compiler at home and live far away from school. I have 2 questions: These are the program requirements: Program 1: Prompt the user and let them enter three integers. Store them in three … | |
Hi i'm a newbie c++ programmer so I don't know much about compilers.I have a c++7 and a bulit-in text editor but when I try to retrieve the bytes the variable "Bool" takes the error or warning message says that bool is an undeclared identifier should I try with boolean? … | |
Geetings, Microsoft had included in its Visual C++ .NET some APIs to extract data out of .PDB files. Microsoft had called this package "DIA SDK". I've looked into the documentation of it in the MSDN, but it ain't as simple as it sounds... If any one of you wise people … | |
Hello, I really don't know if this is more of a Mac of C++ question but.. I am doing a loading of a file with short CSVload (char * filename) //called from main { //openning a file and checking if it exists FILE * datafile = NULL; if ((datafile=fopen (filename, … | |
I am begginer at C++.I need some help with some parts of my program. Afeter I draw a table on the canvas propety of the forum I have to move a TShape over the table.The problem is whenever I move the Shape some parts of the table are getting erased.The … | |
I kinda have a problem. What i'm tryin to do is read a couple or lines or so from a text file and then replace all the gender pronouns ie(he, she, him, her) and replace those with gender neutral ones. The problem i'm having is trying to find all the … | |
Hi, Could someone help me with this error I am getting. I downloaded this program from a source code website.I am not a windows programmer. When I compile a program in VC++ 5.0 the following error is be shown: Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/KeyLogger.exe : … | |
Hello all. I am fairly new to progamming. I have a free C++ compiler(DEV-C++) and i was wondering if this is ok or should i actually buy a better C++ builder. I'm postive everyone will probably tell me 1 of 2 things. 1) Stick with DEV-C++ and come back when … | |
Hi. I am trying to do a program whereby the user needs to enter some information before he/she can use the file (some sort of a lock). My problem is how can I put the file together with the exe so that when i enter the correct information, the exe … | |
Hi all, I'm trying to locate information that would assist me in obtaining the BIOS boot order and hard drive parameters in DOS. The hard drive information I think I can extract from the FreeFdisk source code with a little more time, but the BIOS boot order has me stumped. … | |
Heloo, Is this possible to Write in Sectors in CD (CD-R/CD-RW) by C++ Code. I am in serious problem with this. If not possible, Is there any tool exists that may help me. Please help me. Thanks in forward. Ahsan Mostafa Bangladesh [email]mostafa_bd@hotmail.com[/email] | |
HI, My project is due tommorrow, I am stuck at this error which i have no clue. I have tried all my best to understand what is its cause but couldn't. I really need help. All I am saying is if you can explain why its doing this. ***Problem*** We … | |
I am unable to open a file using the below code in c++. The code used to work before. I am running this program in unix (sun c++ v4.2 compilers). The file I am reading currently is now > 2GB. I am able to read files < 2GB using this … | |
hey guys i have been studing c++ for a while now. i have learned so much only problem is i find it difficult to apply any of my knowledge. i mean i knwo how to make things but i dont know what to make. thats why i came to you … | |
hello i wanted to create a tetris game. i would really appreciate it tho if some one could roughly outline what i have to do. leave the coding for me i will take care of that. | |
I am currently working on a game called realm knights ([url]http://www.realm-knights.tk[/url]) i need 2 c++ programmers. Email at yonlongshots@hotmail.com or realm_knights@hotmail.com or post at the forums at realm knights. Or even post on here :D | |
Programmers, Coders, Amateur programmers and Part time programmers apply within. Im looking to recruit amateur and part time programmers who are not proffessionals but who code or program in there spare time because they are enthusiastic and love it. You dont need proffessional qualifications, or a degree to fill this … | |
I've made some C++ dos programs, and it runs fine, and does everything I want it to, but the moment it does the last line of code, it exits. I use Visual C++, and it stays on when I preview it in there, but after I compile it, and run … | |
I was thinking of creating this program for a school related project and was seeking advice/guidence concerning the matter. I prepose to create 7 distinct personalities and have them communicate/interact in a virtual world. I will be storing data that has been collected through everyday discussion such as questions, responces, … | |
Hello>>> How are you all? I need a quick help with my assignment... it is in C not in C++... So, Could you help me? I don't know what to do!! the question is: Write a program that reads a data file containing a C program and writes it to … | |
int upper; cout << "#s (4 - 9) "; cin >> upper; for (int count = 0; count < 4; count++) { int y; srand((unsigned)time(0)); y = (rand()%upper)+1; cout << y<< endl; key[count] = y; Sleep (1000); } this is my random number gen and i was wondering if there … | |
Using Dialog Box: I want to draw a ball in a solid color and be able to move the ball around on the Dialog Box. Thanks | |
Thanx for everyone's reply. I'm more and more being put off Java, although it looks like a good language in practise, the way it looks as a GUI doesn't appeal. Anyone know of a good free C++ IDE ? I have tried Devc++ from bloodshed, but it wont let me … | |
I'm taking an Operating Systems class in which I have to write this monster of a C++ program and it's giving me a bit of trouble. It would be amazing if someone would be able to help me out a bit. The only problem is the directions for the programming … | |
A company pays its employees as managers (who recieve a fixed weekly salary), hourly workers (who recieve a fixed hourly wage for up to the first 40 hours they work and "time- and a half"-1.5 times their hourly wage-for overtime hours worked), commission workes (who recieve $250 plus 5.7% of … | |
Yesterday I was looking for a good game authoring language and came across a very interesting one called 3D GameStudio. I was very impressed by some of the samples. I think I might get into it during this summer. If you're coming from a C/C++ world, then it should be … |
The End.