49,761 Topics

Member Avatar for
Member Avatar for Tomas Lopez

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; …

Member Avatar for Tomas Lopez
0
172
Member Avatar for dal4488

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; …

Member Avatar for Narue
0
102
Member Avatar for notdumb

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

Member Avatar for notdumb
-1
167
Member Avatar for seeplusplus

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; …

Member Avatar for Narue
0
171
Member Avatar for SquirrelProdigy

[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]

0
69
Member Avatar for eastgate

: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; …

Member Avatar for eastgate
0
615
Member Avatar for star320

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 …

Member Avatar for star320
0
208
Member Avatar for evilsilver

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 …

Member Avatar for Coding Mage
0
173
Member Avatar for mattcplusplus

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. …

Member Avatar for Glued
0
114
Member Avatar for ibassplayer205

[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 …

Member Avatar for Narue
0
171
Member Avatar for hopeolicious

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 …

Member Avatar for kon_t
0
160
Member Avatar for evilsilver

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 …

Member Avatar for evilsilver
0
114
Member Avatar for blackdove

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 …

Member Avatar for blackdove
0
156
Member Avatar for os008

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.

Member Avatar for os008
1
236
Member Avatar for evilsilver

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 …

Member Avatar for evilsilver
0
95
Member Avatar for hopeolicious

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 = …

0
81
Member Avatar for jonnie83

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

Member Avatar for Narue
0
63
Member Avatar for compshooter

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 …

Member Avatar for compshooter
0
142
Member Avatar for stackOverflow

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 …

Member Avatar for alc6379
0
139
Member Avatar for roscioeak@direc

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 …

Member Avatar for alc6379
0
102
Member Avatar for odee

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?

Member Avatar for odee
0
153
Member Avatar for F50

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; …

Member Avatar for Intel
0
190
Member Avatar for hopeolicious

I downloaded borland compiler but I dont know how to use it can someone help me

Member Avatar for evilsilver
0
105
Member Avatar for seeplusplus

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 …

Member Avatar for Dave Sinkula
0
84
Member Avatar for firebird

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

Member Avatar for Dave Sinkula
0
100
Member Avatar for evilsilver

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.

Member Avatar for evilsilver
0
97
Member Avatar for paoloSCG

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 …

Member Avatar for 1o0oBhP
0
204
Member Avatar for seeplusplus

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 …

Member Avatar for Intel
0
244
Member Avatar for tad73831

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 …

Member Avatar for evilsilver
0
343
Member Avatar for Tester2

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 …

0
97

The End.