48,986 Topics

Member Avatar for
Member Avatar for lanilonzo

I am trying to put a multimap inside of a separate class for easy lookup of objects downstream in another main code that I am trying to access. If I put the multimap inside of my main routine and insert items from there it works fine. The second I move …

Member Avatar for stilllearning
0
66
Member Avatar for jkun2

I have this program to read in a text file and store each word in a Binary Search Tree and keep track of the frequency of this number in the file. My outputFile should read like: 32 a 54 and 4 hello 8 will 9 would I have the program …

Member Avatar for stilllearning
1
1K
Member Avatar for Liszt

When writing a timeformat in a textbox using the event _TextChanged and when timeformat has reached the written format "HH:MM", the ->RunWorkerAsync() command should execute and create a file but it seems that the backgroundworker does not execute the code inside. I wonder why this is not happening, have I …

0
57
Member Avatar for uscuba2_2001

I need some help. I want to have a circle arching/dropping but I do not get loop that I need to use. How do I do this? { AppWindow Win; Setup(Win, 0, 0, 600, 600); SetText(Win, "Ball Drop"); SetDrawColor(Win, 0.0, 0.0, 0.0); Circle(Win, 175, 175, 15); Sleep (100); SetDrawColor(Win, 1.0, …

0
32
Member Avatar for Liszt

With the code below I want to execute a task if the day is saturday and if the minute is >= 14. There is 2 things I wonder here. The code below is an infinite loop that never stops. So it checks for if this criteria is true but when …

Member Avatar for Liszt
0
170
Member Avatar for JimD C++ Newb

Hello, all! I'm getting an error that I don't understand, and would greatly appreciate some other input from somebody more experienced than me! So here's the problem: I have a tree that I can put nodes on, take nodes off, search, etc etc. I have one last function that I …

Member Avatar for chococrack
0
124
Member Avatar for guest7

Hi, I am getting the following error: test.o(5209) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug I am using finite recursive function in my program. Please help with my query. Thanks

Member Avatar for ivailosp
0
86
Member Avatar for AcidG3rm5

Hi guys. I'm doing a programming, whereby I have to display a prompt of my own on the linux terminal. Example commandprompt>. The program will then wait for user's input, example "ls -ali | more" or "ls -ali" and etc. I will be using the following system call in my …

0
84
Member Avatar for sundar.mn

HI and hello, This is sundar...i'm posting a project that i've done 'Airline Reservation System'... Pls go thru it and let me faults if any...and also how to enhance this code.... (pls find attachment)

Member Avatar for Ancient Dragon
0
150
Member Avatar for gregorynoob

okay, so i came up with this idea of making a program to evaluate my code. it's supposed to take the code, compile it, run it on several test cases (given in one file each) and report how the code did (which test cases it passed, which cases it failed...) …

Member Avatar for Salem
0
232
Member Avatar for maori

Hi Guys is there a way to incorparate the ping function into a app what i want to do is when the user trys to connect it opens a window and displays 1, pinging "ipaddress" and if succesfull displays connecting to host ie "ipadress" from above but if no ping …

Member Avatar for maori
0
327
Member Avatar for killdude69

Ok, I have a DLL I made. In the DllMain function, I have a variable called my_var (const char[13]). I compiled the dll (called "WGCL") and put it in the debug directory of my Win32 Project. I used /DELAYLOAD:WGCL.dll to Delay Load the DLL which seems to be the only …

Member Avatar for Ancient Dragon
0
144
Member Avatar for scotchfx

I've got a question for all of the veteren C++ programmers out there.... I know that in_addr_t is a byte addressed value (representing an IPv4 address) however in debugging this code I was expecting a compile error ( scope of ipaddr declared in if statement would not extend to the …

Member Avatar for ArkM
0
81
Member Avatar for Khae

hi guys need help I resently just started c++ and on classes and have a project to print a tag to be attached on a luggage and deppending on wether the costomer want it delivered at home or pick it up at the airport. Plz find attachment

Member Avatar for Peter_APIIT
0
99
Member Avatar for Se7Olutionyg

Calculator should display the accumulated value after each operation [CODE] //FILE: PROGRAM3.CPP //AUTHOR : AM NGUYEN //COURSE NAME : CS210 //DATE : // DESCRIPTION : A SIMPLE CALCULATOR # include <iostream> using namespace std; void instruction(); int calculator (char); void divide_by_zero (); float do_next_op (char, float, float); void main() { …

Member Avatar for unbeatable0
0
86
Member Avatar for NinjaLink

Hello all... I'm having a few problems with my program. I will list the problems that I need help with.. 1) I need help printing out the highest testScore (I'm am getting garbage numbers) 2) I need help printing out the person's name in my input file who has the …

Member Avatar for NinjaLink
0
132
Member Avatar for deflamol

Hi, I am having issues with assigning a value to a string. I have two structures node and edge as follows: [code] struct node{ string name; int key; }; struct edge { node u; node v; int weight; edge *link; }*front = NULL; [/code] Now I have a function that …

Member Avatar for deflamol
0
107
Member Avatar for tatainti55

Is there any other way to the same thing goto does?(You know what i mean i'm just too lazy too explain it right now >.<) Goto messes everything up >. For example, let's say i made a game that displays a menu, like: "1. Play where is waldo 2.Quit" Then …

Member Avatar for tatainti55
0
94
Member Avatar for teddybouch

I am resurrecting old code from a few years ago, and I unfortunately have little documentation as to how it was compiled and what environment it was built in. At this point, I have successfully gotten it to build, but there are errors at execution, specifically an unhandled exception error …

Member Avatar for Salem
0
99
Member Avatar for cerb63

I need a little help, I'm still new to the C++ stuff and this is for my class. Any help anyone could give me would be great. the code I have is as follows: ____________________________________________________________________________ [code] #include <iostream> using namespace std; int find_fib(int); int main(int argc, char* argv[]) { int …

Member Avatar for Salem
0
213
Member Avatar for Nasi23

Hi im trying to build this pay rate calculator but im getting a few errors: [code=cplusplus] #include <iostream> #include <string> #include <iomanip> using namespace std; struct Time{ int hr, min; char meridian; }; struct Garage{ string name; float rate; Time time_in, time_out; }; struct PayRecord{ string name; string position; int …

Member Avatar for stilllearning
0
187
Member Avatar for tatainti55

I'm trying to create a text based RPG, like pokemon. At the moment i'm trying to make a store to buy health and stuff in. Everytime you kill a monster you get a random amount of money. But how do i make the program say "You can't afford that" if …

Member Avatar for tatainti55
0
171
Member Avatar for teddybouch

I just downloaded Visual C++ 2008 Express Edition and I'm trying to edit some old code for a lab that I am TAing. I took all the code and put it in a new project, since several of the old libraries will change and since I don't have them on …

Member Avatar for Sci@phy
0
749
Member Avatar for akshay144

Hi All Please help me with the following code, it works fine when i enter 1234567890 but goes mad when i enter one more digit i.e 12345678901. It keeps on looping and displays infinitely:- "Invalid Input. Please try again.!!" How can i fix/correct this? Any help will be appreciated! [code=cplusplus] …

Member Avatar for Sci@phy
0
130
Member Avatar for novice420

im trying to create a simple LAN Chat Program (as projectwork for school)....usage of filehandling is a must in all projects...since all the school computers are connected by LAN...i am creating one FILE and trying to input and read that file and display it on the screen to make it …

Member Avatar for Salem
0
198
Member Avatar for wneil22

Write a program that determines if an integer (input by the user) is odd or even. The program should also include functions that: 1) Determine if an even number is greater then 1000 2) Determine if an odd number is less then or equal to 199. The program should display …

Member Avatar for Salem
0
92
Member Avatar for andrewama

OK so I need to make a card dealing program that takes random cards from a deck and dispenses a 5 card poker hand, but i also have to right functions to tell if its a flush straight royal flush, etc... I have no Idea what to do after this. …

Member Avatar for andrewama
0
2K
Member Avatar for McCo

I am trying to create a simple animation of an envelope opening up and then closing back. I want to know if there is any way by which I can have my envelope, which is designed in MS Paint, imported onto C++ program. The envelope has dimension 932 * 590 …

Member Avatar for Alex Edwards
0
100
Member Avatar for NinjaLink

I have been stuck for awhile trying to read the data in my file. As you can see, I haven't did much coding, but I would appreciate the assistance if someone can tell me what is wrong with the code. Thanks! Example of my input file: Kay, Harry 95 A …

Member Avatar for VernonDozier
0
107
Member Avatar for JoeRoss578

I did fine on this in C, not sure what I'm doing wrong here. Probably something silly on my end. I'm receiving odd numbers in my program below. I have included the output below the program. Any assistance would be quite appreciated. Thanks! [code]#include <iostream> int main() { using namespace …

Member Avatar for sidatra79
0
198

The End.