49,761 Topics

Member Avatar for
Member Avatar for skylinedrifter

#include <iostream> #include <iomanip> using namespace std; int main(); { cout << "***************************************... cout << "** Revenue for Bayou Broadway Theater **\n"; cout << "***************************************... const double balcony = 59.95; const double mezzanine = 99.95; const double orchestra = 139.95; int balconyTickets, mezzanineTickets, orchestraTickets; double balconyRevenue, mezzanineRevenue, orchestraRevenue, totalRevenue; // …

Member Avatar for Slavi
0
194
Member Avatar for totalwar235

using a linked list in C++ i am attempting to delete a middle node from a series, and then put the series back together. ex: N1 -> N2 -> N3 N1 -> N3 delete N2 but i am getting a segmentation fault (core dumped) at the point in the code …

Member Avatar for Ancient Dragon
0
162
Member Avatar for pprabhat

coding for printing diamond pattern using recursion as following * * * * * * * * * * * * * * * *

Member Avatar for samson.dadson.3
0
113
Member Avatar for brandon66

I have a text file i want to read data from the first line of the test file is ow many lines are in it then on each line seperated by a space is itemnumber itemprice itemquantity. 3 39284 5.75 12 18372 4.50 23 27649 12.99 81 how would i …

Member Avatar for cgeier
0
314
Member Avatar for Vaaal

Someone please help thanks #include <sstream> #include <string> #include <iostream> #include <opencv\highgui.h> #include <opencv\cv.h> using namespace cv; //initial min and max HSV filter values. //these will be changed using trackbars int H_MIN = 0; int H_MAX = 256; int S_MIN = 0; int S_MAX = 256; int V_MIN = 0; …

Member Avatar for JasonHippy
0
3K
Member Avatar for coca99

Hi Guys, This is the first time I have just started with Keil C . Yet, I have no idea about this concept. Please clarify it for me. Thank you all. #include <stdio.h> #include "NUC1xx.h" #include "Driver\DrvGPIO.h" #include "Driver\DrvSYS.h" #include "Seven_Segment.h" #define SEG_N0 0x82 #define SEG_N1 0xEE #define SEG_N2 0x07 …

Member Avatar for coca99
0
520
Member Avatar for Preitykelz

Write a program to swap two values so that what is in Value1 would be interchanged with what is in value 2

Member Avatar for AndrisP
0
83
Member Avatar for ghazanfar abbas

draw a flow chart to discribe your logic to find out and disply to given charecter from lower case,uper case or number. asci table below. 65-95(A-Z),97-122(a-z) and 48-57(0-9).

-1
79
Member Avatar for chubbyy.putto

Here is what I try to do: The purpose of this program is to find the two smallest elements in several integer arrays, each containing 100 elements. The program will use functions with the prototypes: call the function Two_smallest to find the two smallest elements in the array and their …

Member Avatar for vmanes
0
200
Member Avatar for Emma_3

Write a program that prompts the use for the number of assignments in a specific class. Then using a for loop, prompt for each score. Use an accumulator to store the sum of the assignments, and then calculate the average score for the assignments. HELP. I have no idea what's …

Member Avatar for cgeier
0
162
Member Avatar for apcxpc

Hi all I have been following a tutorial on creating win32 GUI applications. I'm having a problem getting a dialog box to pop up on top of my main window ...the CreateDialog() method returns a NULL for some reason. Would really appreciate some help with this. Here is a zip …

Member Avatar for Jens_2
0
650
Member Avatar for alexandru.caplescu

Hello everybody,can someone help me? i have to make a program who ilustrates Kirchhoff's first law.Thank You!

Member Avatar for Suzie999
0
1K
Member Avatar for ganesh.naphade

I am using following gdiscreen() function which takes screenshot jpg image into buffer.I am sending this buffered image using sento() over UDP.I am unable to convert this char array data sent back into image .I appreciate any help you can provide void gdiscreen() { char buffer[61400]; using namespace Gdiplus; wchar_t …

Member Avatar for triumphost
0
364
Member Avatar for Charles_6

I am trying to modify a program so that it used 2 variables rather than one. I have tried to get help through the other discussions on this topic but they are all talking about passing by reference not value. My code is: #include < iostream > using std::cout; using …

Member Avatar for ann.mughal.5
0
207
Member Avatar for siskaj

Hello. I have problem with compiling this piece of code after "install" of Allegro (according to this http://www.daniweb.com/software-development/cpp/threads/248782/help-installing-allegro-for-bloodshed): #include <conio.h> #include <stdlib.h> #include “allegro.h” int main() { allegro_init(); printf("Allegro version = %s\n", allegro_id); printf("\nPress any key...\n"); getch(); return 0; } END_OF_MAIN(); Because I got these errors: 3:10 ..\GetInfo\main.cpp #include expects …

Member Avatar for siskaj
0
352
Member Avatar for ismet_1
Member Avatar for ali4084

some one tell me that if we want to terminate this program on -1 then which condition we use.. please help... #include <iostream.h> #include <conio.h> main() { int arr[10],i,sum=0; for(i=0;i<10;i++) { cout<<"Enter values:"; cin>>arr[i]; sum=sum+arr[i]; } cout<<"Sum is equal to="<<sum; getch(); }

Member Avatar for deceptikon
0
229
Member Avatar for mandip.malla

question no 1 write a program to overload *= operator which should allow statement like l1*=l2; so plz send me source code

Member Avatar for deceptikon
0
34
Member Avatar for udaya.kiran.969
Member Avatar for mixelplik

I have no clue why this search isn't working. Two majors problems (1) As is it always returns false (2) It would recognize valid IDs if instead of setting found to true, I just returned true, but I don't want to do it like that, and if there was an …

Member Avatar for rubberman
1
120
Member Avatar for ndrdesign

Hello. I have a source code written in c++. With this source code i should compile it and make with him a pdf viwer that will be embeeded into a webpage. Can anyone help me what program should i use? how can i compile it and embeed the result into …

Member Avatar for rubberman
0
359
Member Avatar for ndrdesign

Hello. I have compiled a c++ program and i want it to be run into a webpage. I have tried the proc_open() command but it doesnt work. any help or suggestion?

Member Avatar for rubberman
0
329
Member Avatar for glamiex

Hi guys, my assignment is to create a program that sets up a menu for a user to choose from. The menu should consist of an addition, subtraction, multiplication and division problem. It seems to work well, but the only thing that's not working is the division problem. Whenever I …

Member Avatar for rubberman
1
157
Member Avatar for Kartike

Write a function in C++ to write N number of record in binary files ‘hospital.dat’ and Search for a room number (room no) given by the user in an existing binary files ‘hospital.dat’.

Member Avatar for Ancient Dragon
0
524
Member Avatar for kathija nafis
Member Avatar for Ancient Dragon
0
45
Member Avatar for bananacat

Hey there! I've been working on this code that uses linked list operations: #include<iostream> #include<conio.h> using namespace std; void displayRecords(); // done void searchRecord(string); // done void insertAtEnd(string, string, int); // done void insertAtBeginning(string, string, int); // done void insertAtSpecifiedLocation (string, string, int, int); // done void deleteAtEnd(); // somewhat …

Member Avatar for bananacat
0
167
Member Avatar for genecasaminiano

my assignment is to find the commission of each monthly sales,how can i get the right answer? monthly sales is 0-19,999(4%)/ 20,000-29,999(5%) /30,000-39,999(6%) / 40,000-49,999(7%) 50,000-above(9%) using if/else statement

Member Avatar for ddanbe
0
91
Member Avatar for Neelam_1
Member Avatar for WolfPack
0
191
Member Avatar for Sanjeetjmp
Member Avatar for chubbyy.putto

I am creating 30 random from last function and the last function have pass the information to this one. I am using the bubble sort because i want to make a mode. But mode is not idea here. Anyway, it run but it show some crazy output. Here is the …

Member Avatar for chubbyy.putto
0
257

The End.