51,593 Topics

Member Avatar for
Member Avatar for alfadil ahmed
Member Avatar for David W
0
277
Member Avatar for negru

I need help with the following program: Define a structure **VEHICLE** which contains **producer, model and chassis number**. Store the content of a structure in binary search tree such that the **key** for storing contains all fields of a structure (**producer** has the highest priority, and **chassis number** has the …

Member Avatar for tinstaafl
0
241
Member Avatar for rose_2

this code is correct expect that part which calculate the waiting time .. it should be 0 in first process but in output it equals the burst time of 1st process. how can i fix it ? #include <iostream> #include<iomanip> #include<queue> using namespace std; int main(){ queue<int> sc; float tat …

Member Avatar for tinstaafl
0
1K
Member Avatar for Sameer_6

Please Help me out!! After many tries I'm unable to return a string from a function. Please reply with the corrected code! I want it for my High School. Thanks in advance! I've shortened the code here. #include<iostream> #include<iomanip> #include<conio.h> #include<cstdlib> #include<fstream> #include<string.h> #include<stdio.h> using namespace std; string logdisplay(int log) …

Member Avatar for Suzie999
0
272
Member Avatar for lewashby

I'm reading 'C++ For Dummies 7th Edu' and I'v ran into this little snipet that's confusing me. BOOK You can add const-ness, however, as in the following void fn(char* pName) { // declare following is allowed even though // declared Student(const char*) Student s(pName); // ...do whatever... } The function …

Member Avatar for lewashby
0
267
Member Avatar for rose_2

i know it's too much long but i really need some help to fix the program errors , am stuck within whole code lines and ma mind went confused .. it's airport simulation program the airport has one runway .. one plane can land and one plane can fly but …

Member Avatar for David W
0
249
Member Avatar for Medo_5

hello everyone i just started my implementation of a bigint class and i got stuck is there a way for me to dynamically allocate the memory so i wouldn't have a fixed number like this num[50] and is there a better way the imrove my display method thank you in …

Member Avatar for rubberman
0
180
Member Avatar for DespDev

Hello Everyone!! just a newbie here looking for some advice. ready to accept any suggestion that I get. I wish to make a GUI for a specific feature of a lenel panel 2220. I'd like to have a list of the activity on badge reader. I have the Lenel set …

Member Avatar for rproffitt
0
256
Member Avatar for BunThai

Sorry in advance !! I have just finished learning OOP lessons in class, but my teacher he just provided the students a small exercise (class and object). Now, i really want the OOP idea (project) which are related to inheritance, overloading, polymorphism else,or if you have any links that related …

Member Avatar for rubberman
0
260
Member Avatar for Sameer_6

Please help me to use the functions. The program does not move ahead of main() to use the functions. I mean once the main() statements are executed the program doesn't execute the calling of functions. I've used Turbo C++ which does not allow string instead of char data type(Though I've …

Member Avatar for rubberman
0
269
Member Avatar for Sameer_6

**Please fix the errors in the code ! I've used Turbo C++. I need it for my High School Project ** #include<iostream.h> #include<iomanip.h> #include<conio.h> #include<process.h> #include<fstream.h> #include<string.h> #include<stdio.h> //logistics //site fees //transaction fee //packaging fee //FK //SD //AZ //PayTM //eBay //ShopClues char categdisplay(); char logdisplay(); char wbdisplay(); void display(); char …

Member Avatar for rubberman
0
429
Member Avatar for negru

The following program should create singly cyclic linked list which has **n** nodes, where data are random generated numbers from **0-99**. Create binary search tree which will contain all prime numbers from the list. Print binary tree in text file so that numbers are sorted in descending order and every …

Member Avatar for rubberman
0
406
Member Avatar for negru

The following program compiles successfully but doesn't give the output: Write a program that reads data about **n** number of **books**. Sort data about books lexicographically by **title** (if the title is the same, sort by **publish year**), and then for every book sort data about **authors**. Then, read **name** …

Member Avatar for rubberman
0
231
Member Avatar for Syed_10

I've asked the same Question here http://stackoverflow.com/questions/34422852/debug-assertion-failed-binary-search-tree > IM IN DESPERATE NEED OF HELP. Im working on a project, What I want is to get data from a database (MySql) and store it in a Tree. And be able to do insertion, deletion or updates on the nodes, if any …

0
123
Member Avatar for Hiba.Mohammed

#include<stdio.h> #include<math.h> int factorial( int ); int main() int n; double x,i; double value, sinx; value = sinx = 0.0; printf("Enter the value for x and i"); scanf("%lf %d", &x, &n); for( i=1; i<=n; i=i+2) { value = pow(x,i); sinx += (x - value / factorial(i)); } printf("Result - %f", …

Member Avatar for rproffitt
0
4K
Member Avatar for kgz

Hi i really want to set the window position of my console applicaton I've managed to find Console:: SetWindowPosition bu using google but cant find how to use it... [URL]http://msdn2.microsoft.com/en-us/library/system.console.setwindowposition.aspx[/URL] This link shows an example. But it wont compile I'm guessing its missing header files, what are they? I dont …

Member Avatar for Faisal_11
0
3K
Member Avatar for negru

Write a function for swapping players in a team. New player (which is read) enters team and replacing the player which is also read. Prototype of function is void swap(TEAM *, PLAYER, int); First argument of a function is the pointer to team, second argument is the player that enters …

Member Avatar for David W
0
189
Member Avatar for negru

Write a program that reads data from binary file **EMPLOYEE.DAT** (employees are proffesors and teaching assistants, assume that the file exists). Split data about proffesors and teaching assistants in two separate text files and sort data by **ID** using insertion sort algorithm. Search and print data about employee which **ID** …

Member Avatar for David W
0
247
Member Avatar for wh196785615

Just begin to study the C++ class. I do not know how to solve the question, Looking for someone to help me. 1. Create a class definition for an object called Account. Add a constructor and destructor to it. 2. Create a class CheckingAccount and make it a child class …

Member Avatar for David W
0
182
Member Avatar for negru

Write a program that reads strings(words) from a text file and copy the inverted words to another file (use the command line arguments). Form a new array of words b from original array a using the function ***void formNewArray(char **a, char **b, int n, char* (*t)(char *));*** where ***n*** is …

Member Avatar for rubberman
0
208
Member Avatar for Aeonix

If I wrote a program which would `Console.WriteLine()` a base64 code, like an easter egg ("a hidden secret" in gaming jargon) or something, for example string EasterEgg = "dGhlYmlnc2VjcmV0"; Console.WriteLine(b64d(EasterEgg)); And I would let a good obfuscator run through it. Now I know that crackers with enough time and knowledge …

Member Avatar for Aeonix
0
452
Member Avatar for sheelap

hi, i am trying to use parseByte function on hex string it show exception number out of Range.NotNumberFormat exception thrown out. pls tell me why it is. my expression is like this byte b=Byte.parseByte("ac",16); it shows above error pls help me.pls explain in simple language.

Member Avatar for JamesCherrill
0
192
Member Avatar for waseem1345

How do they work? Does -'0' always convert to int from char? Can it convert from anything? And same question about +'0', does it convert only from char to int, or from anything? Thanks in advance :)

Member Avatar for David W
0
8K
Member Avatar for sanraj_1

Hey guys i am having a problem with this function. Its a fucntion to generate bills and i want to add a condition in where if users enters a wrong product number th program should not proceed. Any help is appreciated. void place_order() { int order_arr[50],quan[50],c=0; float amt,damt,total=0; char ch='Y'; …

Member Avatar for David W
0
203
Member Avatar for legio13

Hi there! I need to find the mimimum element in two-dimensional(4,4) array by row and maximum element by column and store them in another array (5,5).Maybe I did not explain properly. That's how it should look new array (5,5): 1 2 3 4 min 1 2 3 4 min 1 …

Member Avatar for tinstaafl
0
2K
Member Avatar for glao

Hello , I want to compare each element of an array with every other. For example, array[0] with array[1] , with array[2] ... Then , array[1] with array[2],with array[3] ... So , I thought something like this : for ( int i = 0; i < N; i ++ ) …

Member Avatar for tinstaafl
0
578
Member Avatar for rose_2

i tried to figure out the wrong here but i donnu why it ignore the part of string converting .. b2 is always equal to 0 in the output .. here is my code #include<iostream> #include<string> #include<sstream> #include<bitset> using namespace std; void encrypt(long num); int main() { int N, M; …

Member Avatar for David W
0
139
Member Avatar for Megaz221

Hi, I guess I'll post here with my problem as well my introduction. I've coded in Java in high school for 2 years but my teacher was horrible so I decided to wait till college to take another programming class. Well I'm Programming Fundamentals and have been assigned a program …

Member Avatar for Muhammad_100
3
14K
Member Avatar for lewashby

I hot the following program from the book 'C++ For Dummies' but have two questions about it. First I compiled the program but I'm afraid to run because the memery created from the heap does not appear to me to get de-allocated. Am I correct in not wanting to run …

Member Avatar for rubberman
0
407
Member Avatar for papuccino1

Hello, I'm 100% new to C++ and someone recommend Code::Blocks as the best IDE for coding in this language. However when I try to run my code: [CODE=c++]#include <iostream> using namespace std; int main() { cout << "Hello world!" << endl; cin.get(); return 0; } [/CODE] I get the following …

Member Avatar for corey_2
0
2K
Member Avatar for Amr.Mohammad87

I've read the following statement and I cannot understand something within it "*In all binary trees, there are at most 2^i nodes at level i + 1*" what I cannot understand is that tree's levels start at level 0, however, if we apply what is written in this statement there …

Member Avatar for Ben McNamara
0
203
Member Avatar for justine_1

Hello guys so i'm quite new to C++ but i already learned OOP and other things so i want to use this little knowledge yet to create some basic program. I wanted to make a program that uses some API's but the problem is i'm not famillar how API's work …

Member Avatar for justine_1
0
446
Member Avatar for Alex_38

The University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module. You are required to write a program in C++ that achieves this. The program is in a number of parts. 1. The program should allow …

Member Avatar for tinstaafl
0
300
Member Avatar for preslav_milev

Hello ! How can I change my sorting function called bubblesort, so that it uses a dynamic stack. Now I've done and funcion can work properly, but is using list, because I intercede for the next item and in stack i have access only to the top. Data for stacks …

0
143
Member Avatar for progteacher2

Hello good morning...I need help on how print the heart beside each other here is the code.. #include <stdio.h> #include<stdlib.h> #include<Windows.h> int heart() { int i, j; for(i=10/2; i<=10; i+=2) { for(j=1; j<10-i; j+=2) { printf(" "); } for(j=1; j<=i; j++) { printf("*"); } for(j=1; j<=10-i; j++) { printf(" "); …

Member Avatar for progteacher2
0
176
Member Avatar for Curious Gorge

I'm pretty good with Java but I would like to learn to create interesting things with C++ or C. At the moment I have to ask: Why do all of these IDE's and libraries make it so damn difficult to set up an environment for programming? Personally I believe programming …

Member Avatar for triumphost
0
393
Member Avatar for Ashish_23
Member Avatar for progteacher2

Greetings. I would like to ask for help. Our teacher ask us to make these messages move vertically. "Merry Christmas""and" "Happy new year". I just dont know where to start..but my idea is that I will be using the for loop.Would that be possible??

Member Avatar for deceptikon
0
113
Member Avatar for MandrewP

Hello, I'm trying to create a data area within an .exe file. Then I will open the .exe file and scan it for the data area. When the data area is found, I will write some data to this data area and write the .exe file back to disk. I …

Member Avatar for rubberman
0
121
Member Avatar for Misar

hello guys, i'm a noob in programming and i just want to understand this two question below: //does anyone know how is the question end, i head it in exam and i didnt know what to do with it: boolean b =false; int i=90; //also i head this question was …

Member Avatar for rubberman
0
162
Member Avatar for El Ticha

I have a new command in my connection 1 of my dataenvironment, but, when i drag the "Command1" to my form, i cant see the labels and textboxes , why? Please help me, its my homework

Member Avatar for Suzie999
0
83
Member Avatar for Callum_2

Task Your task is to write a program that will draw graphs and output them as a full colour image in the .ppm file format and display them using a suitable external image viewer (IrfanView). The program will use code generated sine waves, and harmonics of these, to calculate and …

Member Avatar for rubberman
0
1K
Member Avatar for lloydsbackyard

Need a free links of for c++ compiler ide for windows multipoint server 2012 OS..thank you.. I download turbo c++ but its dos based and my setup is n.computing..it will not run to other monitor connected to the main pc.. thank you..

Member Avatar for pritaeas
0
183
Member Avatar for Zeeshan_6

i am developing attendance software with sms support current i have tried sending sms with one gsm modem , but the it took 1.5 hour to send 3500 sms , so i wan to use 4 gsm modems having separate com ports , now the problem is i am unable …

Member Avatar for rproffitt
0
479
Member Avatar for Schmelz

Hi, I a real newbie when refering to programming. I keep having this error but I don't know what it means. Can somebody help me? I looked it up on google but I couldn't find anything of usefull so I tought posting it. Can you please tell me what an …

Member Avatar for rubberman
0
274
Member Avatar for preslav_milev

Hello ! How i can find the smallest number, higher than average value. For example in deque I have these numbers: 46 84 25 93 91 25 37 32 64 49 17 81 59 38 79 22 57 17 61 11 (transferred from file Stack.txt to deque.txt). Тhe average of …

Member Avatar for David W
0
364
Member Avatar for payara111

How can i print it recursively with one helper function? [img]http://img2.imageshack.us/img2/1690/recursive.th.jpg[/img] Here, n will always be a power of 2 and c will be indicating the column number from which to start the output. The above pattern has been produced with the initial function call RecursivePattern(8,1) It prototype should be …

Member Avatar for Chetana_1
-1
2K
Member Avatar for Moataz_1

I'm doing a second year student in computer and information sciences and it is the first time for me to do a project in c++ so I need help . Project Description:- This project manages the bank activities. The bank has many branches. Each branch has basic information (Name, ID, …

Member Avatar for Stuugie
-1
495
Member Avatar for musthafafarhan

I want to assign a single KEY in Keyboard to enable/Disable function. Initally, the button should be disable. when I press the button1 it should get enable and when I press tha same button1 again it should get disable. How can I do that in visual studio C# for windows …

Member Avatar for rproffitt
0
294
Member Avatar for Callie C.

I'm not sure what I'm doing wrong so if you could take a look and give me some ideals it would be great. Thanks so much Specifications: Write a program that uses a two-dimensional array to store the highest and lowest temperature for each month of the year. The program …

Member Avatar for David W
0
375

The End.