49,761 Topics
| |
Ok, I've been trying to find and solve the problem with this source code by using the ddd debuger and I just can't. Here is the code. //lab1.cc, a driver for list.cc //CSCI 1120 //Will Briggs #include <iostream.h> #include "list.h" main () { Item Letters [MAX_ITEMS]; int num_letters = 0; … | |
Ok this is what I have so far. I believe this is correct, but how do I find the number of yards, feet and inches in the user input? Any clue? #include <iostream.h> using namespace std; int main() { ofstream outfile; const double conversion = 2.54; double centimeters; double inches; … | |
I cannot get this to stop giving error message at line 69 about the implementaion of display_balances function. Why is this function not working? Or my program in general? // Will 2/11/05 // Assignment 2 | |
when i compile this, it gives me an error for my #include "Rationall.h" statement........i dont know why its giving me an error. [code] #include <iostream> using std::cout; using std::cin; using std::endl; class rational { public: rational(); ~rational(); int setrat( int x, int y); int getnum(); int getdenom(); private: int numerator; … | |
[SIZE=2][COLOR=SlateGray][FONT=Palatino Linotype][code] SetConsoleMode(InputH,ENABLE_PROCESSED_INPUT|ENABLE_MOUSE_INPUT); while(1) { ReadConsoleInput(InputH,&InputRecord,1,&InputEvents); if(InputRecord.Key_Event) { if(InputRecord.Key_Code == VK_RIGHT) cout<<"You pressed right. Yay!"<<endl; } FlushConsoleInputBuffer(InputH); }[/code] There's the snippet. It takes in input correctly, but despite the FlushConsoleInputBuffer() line, it still echo's. What am I missing here?[/FONT][/COLOR][/SIZE] | |
:cry: I have written this in [B]TCLite v1.x (Successful!) [/B]but when I ran it on BloodShed DevC++ v4.9.9.1 (Latest from Blood) it won't work!.. arrgg.. I need this functionalities.. ;-(.. for educational I typed [B]exactly[/B] these... [code] [COLOR=DarkOliveGreen] #include <iostream.h> #include <conio.h>[/COLOR] void main () { int mark; int sum; … | |
Please help... the problem... I run my programs, regardless of what I do seems I get the error C2017 continuous: the other errors at least I am given a "hint" to what to do: but this error constant! Listed as Illegal escape sequence. My errors are generally about 4-5 logic … | |
ok lets see if anyone can find the problem i have searched long and hard for this. i have a battle function and for some odd reason when ever i win the battle it loops the if statement saying that i am victorious 3 times (doing all the math and … | |
I wish to use the round() function in the math class of the .net framework class library [C++] Math::Round(3.44, 1); //Returns 3.4. Math::Round(3.45, 1); //Returns 3.4. Math::Round(3.46, 1); //Returns 3.5. Ive tried just using the above, but the namespace specifier isn't working. Do i need to inclue a header file. … | |
[FONT=Courier New] Hey everybody! Im new to C++ and I have no experience with any other programming language. I downloaded a compiler from bloodshed.net and tried programming the 'hello world' program: [CODE]/*Hello world program. Seth Koberg 02/09/05 */ #include <iostream.h> int main() { cout<<"Hello World!"; return(0); }[/CODE] When I run … | |
This is the code that is suppose to compute the class's average and standard diviation from a file which contains a collection of student ids and corresponding scores from my computer class and assign each student a letter grade. the class can have no less than 7 students and no … | |
lol i have tried and tried and look and ignored it for a long time. but i just can't find this problem or find it's solution anywhere. Here it is i have a function called fight i need to call to it often but for some odd reason whenever i … | |
I have to define a class for equilateral triangles. The triangle should be defined by a center point (x, y) and the length of the sides. The class should have a constructor which allows defining the triangle, a constructor with no arguments, and member functions for the x coordinate, y … | |
Hi, I have the following problem [url]http://www.ahmedosama.com/buildlog.htm[/url] it's strange cause it's in the built in "include" files of the VC++ (2003), can u please help me out. | |
ok guys lets see if you can see what's wrong with my program i have so far. it is for a role playing game but when you choose to "attack" in the program, when i play it, it won't let me attack now. the problem would be in the gameplaychoice … | |
I have to write a program to compute the class's average and standard deviation from a file which contains a collection of student idds and corresponding scores for my computer class. I am to assign each stedent a letter grade as follows: 100-90 = A 89-80 = B 79-70 = … | |
How do I use use a string that has been entered by the operator to search an input file for the same string to appear? i think i use string find but not sure | |
Ok, I have three queueus, MM, FP & TXT. Each of them contain objects which have variables associated with them. How do I access any of the variables that the front of my Queue points to? For example, I am trying to print out the name of the item that … | |
Hello everyone, I'm doing my bca 4th semester. I have to do a small project in c. I'm supposed to develop an editor using c. I need help. I've no idea how i can do this. I just have one month time. It can be anything like text editor...etc..etc. All … | |
This is my first post here and so far I have been doing fine in my last C++ class but right now I am stuck. I have to make a program using an array that is initialized dynamically. You have to make a program that will input the rooms of … | |
Need help on assembly in Dev C++. i know that Dev C++ uses AT&T instead of Intel. but i need to know how to use int 10h in Dev C++. can anyone show give me the code? | |
HI guys, This code dosn't compile, I think it is right but it gives an error when i use the -> to access the members of my struct. #include <stdio.h> #include <stddef.h> #define MAX_EVENTS 100 //Structure for Queue Elements struct Event { int event_type; int time_value; int bus_num; int bus_stop; … | |
I downloaded borland compiler but I dont know how to use it can someone help me | |
i need to create a class named rational, and i need to have the integer variables denominator and numerator in private. The i need to provide a constructor that enables an object of the class to be initialized when it is declared. then it says the constructor should contain default … | |
hi, i am very new to C++, i know almost nothing, how do i get the compiler to accept time as an input from a user.?????? I have to write a program to calculate the time distace given 2 times | |
ok is there a way to play a music file in c++. and are you able to display a .jpg image in c++ instead of just bitmap files? any help would be greatly apreciated. | |
ciao, please i need a help. do you have some program, or some advice where to find it, to traslate by C++ a EXCEL file(full of EXCEL functions) in a file (.txt) with the functions ready to be used in C++ (i need C++ sintax! no EXCEL sintax...). i thank … | |
alright, this program i wrote pops a menu up letting me choose one of the four options, after i choose an option, and it does that function, how do i get the menu to pop back up again so the user can choose another option? instead, my program does the … | |
First, let me say I am NOT asking for someone to write this program for me. I have to see how functions and operations are used in programs to learn to use them in my own program. And I need help understanding how to use rand() in the program I … | |
I am one of the many people trying to grasp something new in this forum. I come here, because it seems to frequented by C++ experts, who actually try to respond. I am trying to learn how to program an HTTP protocol based text file download. I have searched far … |
The End.