51,593 Topics

Member Avatar for
Member Avatar for mike.severini.3

I have an assignment where I have to produce a rectangle or square based off of input values. For example; the user inputs height = 3 and width = 3 *** *** *** But I also need to make a hollowed out box, so it's like this height = 4 …

Member Avatar for mike.severini.3
0
145
Member Avatar for Kaiser.432

**Hello! every one...** I am looking for a good topic for my project. I want to make a project based on Database management and datafile handling. I need a topic which is usefull for the school or office etc. If anyone has a good topic based on these requirements please …

Member Avatar for rubberman
0
126
Member Avatar for dinhunzvi

is it possible to etract palin text from a pdf file? if possible, can i please have the code

Member Avatar for mike_2000_17
0
213
Member Avatar for Ja14

There is a lot more that is supposed to go with this. For now, I'm just trying to implement a class that uses a vector. Class is called ItemList, it's the header file. Main creates the object and attempts to add to the vector. Compiler doesn't recognize "list" as a …

Member Avatar for deceptikon
0
4K
Member Avatar for Slate2006

Is there a function used to calculate the length of an array. For instance, if someone enters John, the function outputs 4. Or is it necessary to write a function to do it, and how is it done. (This is not homework this time, just want to know for my …

Member Avatar for Sebelius
0
1K
Member Avatar for kisetsukee

I m developing a C# CE application to read data from binary files which created by C++ progam to do item validation. Below is the coding of the C++ program.. // File Name: Ean2an.bin which is created by struct struct EAN2AN_TYPE { __int64 ean:40; // 5 bytes, up to 12 …

Member Avatar for TnTinMN
0
418
Member Avatar for zvjezdan.veselinovic

I am making a mock financial aid account for a project and I wanted to know why my program is not working. Can anyone help me out?? After creating my class, I am trying to access my getName(student_name) function in my main(). It says: "error C2065: 'student_name' : undeclared identifier". …

Member Avatar for zvjezdan.veselinovic
0
222
Member Avatar for akashi

Question: 1. The Theatre Auditorium contains 20 rows (numbered 1 through 20) with 30 seats each (numbered 1 through 30). Write an application that allows a user to buy show ticket continuously by entering a row and seat request until a sentinel value is entered. If the row or seat …

Member Avatar for nmaillet
0
117
Member Avatar for ougesh

#include<iostream.h> int main() { cout<<"*************Welcome************\n\n"; int pass; int option; int balance=50000; int withdrawal; int deposit; cout<<"Please Enter Your Password:"; for (int i=0;i<3;i++) { cin>>pass; cout<<"\n\n"; if(pass==2468) { cout<<"**Choose an Option**\n\n"; cout<<"1. Balance Inquiry\n"; cout<<"2. Withdrawal\n"; cout<<"3. Deposit\n"; cout<<"4. Mobile Refill\n"; cout<<"5. Exit\n"; cout<<"Enter Option:"; cin>>option; switch(option) { case 1: cout<<"\t …

Member Avatar for ougesh
0
111
Member Avatar for neithan

Hi! I'm trying to implement the easy curl function to get a website, `curl_easy_setopt(curl, CURLOPT_URL, m_sURL);`, where the third argument is the only one that i give, and it's in this part of the code: ... public: string m_sURL; URL() : m_sURL("http://www.google.com") { } ... Now, when I call `curl_easy_setopt(curl, …

Member Avatar for sftranna
0
239
Member Avatar for Theanonymous

Hi I need some help with this problem Complete the implementation of linear-time algorithm for Stock Span Problem already I have this code : [CODE]for i=0 to n-1 do done < false while not(D.isEmpty() or done) do if P[i]>=P[D.top()] then D.pop() else done < true if D.isEmpty()then h< -1 else …

Member Avatar for jyotiswaroopr
0
455
Member Avatar for marvelous.damilare

How can I compute the memory space required during: Run time, Idle time and Compile time. In comp graphics

Member Avatar for mel.stober
0
67
Member Avatar for linabeb

ermm...i want to make a dll using dev c++ can i simply make a dll files and call the dll using the windows application..normally(which i have been seen a lot in google).they make a dll files and make a console application.. so can i change the console application to windows …

Member Avatar for linabeb
0
161
Member Avatar for markjoe.online

Write a program in C++ to print a student grade based on; 0 to 40 = E 50 to 59 = D 60 to 69 = C 70 to 79 = B 80 to 100 = A

Member Avatar for WaltP
-1
107
Member Avatar for klharding2

Hello, this is a homework problem, but I can't find the problem with my program. My TA who is supposed to help me couldn't figure it out either. -.- First of all, I know there is a problem with the factorials. It only outputs the right answer up to n=6 …

Member Avatar for klharding2
0
144
Member Avatar for jwill222

How do you read a input file into a structure in c++? Say for example you have an input file with 5 names. And a structure such as struct{ string student; int grade; }; The input file is structured like: Justin Williams 95 Tracy Williams 34 How do I get …

Member Avatar for WaltP
0
142
Member Avatar for ShEeRMiLiTaNt

Hello, I need to write a program that simulates a copmuter lab (ie Login, Logout, etc). So the problem I am having a in the IsValidLab function. This functin is designed to go through the rows that I've allocated in my dynamic array and see if it the user inputed …

Member Avatar for WaltP
0
157
Member Avatar for Bubbles26

Problem: Write a program that prompts the user to enter some number of 1, 2, 5, 10, 20, 50 and 100 dollar bills. Query the user separately for the number of each size dollar. I think I've completed the code pretty well but the last part of the question states: …

Member Avatar for Bubbles26
0
196
Member Avatar for rrr12345

I am thinking of something that would require extreme use of algorithms, maybe a search engine or a distributed computing systems. Any other idea for heavily algorithim based project that would of course increase my marketability ? and by the way i have 2 instead of 1 year to complete …

Member Avatar for Taywin
0
283
Member Avatar for linabeb

ermm...this code i took from here >> http://tutplusplus.blogspot.com/2011/04/c-tutorial-create-dll-in-vc-20102008.html below is the code for the header file.. namespace nmspace { class myclass { public: static __declspec(dllexport) void Crap(); }; } my ques is.....if i have a more than one function that need to be call...soo i can i put it like …

Member Avatar for linabeb
0
167
Member Avatar for RAPTOR88

Hey guys im in drastic need of help. Please fine below my code for the conversion of change in dollars and cents. The program has to convert the real number into 2 ints then output how much of each denomination to give. As is the code works fine for the …

Member Avatar for WaltP
0
350
Member Avatar for Geowil

I decided that before I would actually write the code for my planned inventory system in a game I am writing I would test it out in a small project first to make sure I know what needs to be done and if I needed to change anything. So I …

0
110
Member Avatar for agentc0re

I am currently in an introductory c++ class and am working assignment that sorts data. We recently covered structs and I decided to use structs to approach the problem rather than create 3 arrays to hold the information from our data file. The trouble i'm having is when i'm trying …

Member Avatar for agentc0re
0
278
Member Avatar for Tanyael

Write a C program that models a phone recharging system in Guyana. There are two providers: GT&T and Digicel. Please ask the user to enter their telephone number and the amout of credits needed. The program should then determine whether the customer is Digicel or GT&T based on their telephone …

Member Avatar for np complete
0
569
Member Avatar for jorgmen

Hello everybody... I have been using c++ for a while for console applications, but now I need to make a simulation of a soda factory, implementing multi-threading and GUI. I was using Dev c++ for console apps, and I tried to install some dev-packs for multi-threading and GUI development as …

Member Avatar for np complete
0
153
Member Avatar for silvercats

I mean,let's say we write a console (windows) application to display a text. it woruld be console.write("whatever"); 1. do we have to use different compilers for both windows and linux?what are the names of them 2.is console.write a windows only code? even if we compiled for Linux, will it run …

Member Avatar for Ancient Dragon
0
279
Member Avatar for anonymous213

code is at bottom i have to make the program below display lettergrade next to average and ask for the grades in a loop can anyuone help me please btw this is how im getting graded i will get a 70 if program ask the user for the number of …

Member Avatar for triumphost
0
308
Member Avatar for sanghai45

I am making a blackjack game in cocos2d-x here is the following code of the same where I am getting crash but can not understant why this is happening whats going wrong ? I tried several things thinking that crash might be because of string memory leak or something CCSprite* …

Member Avatar for dx9_programmer
0
167
Member Avatar for Dman01

Hey daniweb, I stumbled upon an issue I can't solve myself. Here is the code : #include <sstream> #include <iostream> template <class T> inline T htot(std::string str) { T x; std::stringstream ss; ss << std::hex << str; ss >> x; return x; } int main() { int x = htot("0x0F"); …

Member Avatar for Dman01
0
199
Member Avatar for kisseric

I am doing something wrong, I have tried for two days and I still cannot figure it out. Can someone help me? Thank you. [code] #include <iostream> #include <iomanip> #include <cmath> using namespace std; void instructUser(); double doDivideZero(double &); int main() { instructUser(); double displayedVal; double newEntry; char command_character ; …

Member Avatar for manujkathuria
-4
1K
Member Avatar for vaishvik.nakhashi

I dont know what goes wrong in this code... Help me here I simply want to save the initial and final positions after dragging the mouse... #include"iostream" #include<glut.h> class point1 { public: point1() { x=0; y=0; } int x; int y; }p[2]; int flag=0; void processMouse(int button, int state, int …

Member Avatar for vaishvik.nakhashi
0
2K
Member Avatar for mashitah

How to write a program use pointer on array that needs eleven numbers, compute their average and find out how many numbers are below the average?.

Member Avatar for np complete
0
133
Member Avatar for Mounica Chirva

Hello everybody, I'm a beginner in the world of game programming. I'm working on Pacman project in C/C++. I want to know if any such 2d game requires an IDE to compile or execute it succesfully? Or is it possible to write a program to run Pacman with graphics.h and …

Member Avatar for myk45
0
481
Member Avatar for bryangino20

question is: Give 5 type checks that should be made for the following c++ statement: x=f(v[i]); NOTE: assume x, f,v and i are all declared and in scope. 1. compatibility check (compile time) 2. v[i] is a valid array element. (compile time) (i.e. (i is not a float or something)) …

Member Avatar for mike_2000_17
0
502
Member Avatar for zeppelyn

I'm nearly complete in figuring out this program, but for some odd reason, my program will either output "segmentation fault" or a "floating point exception" when it attempts to evaluate the postfix expression. The objective of the program is to take in an infix expression, convert it to postfix, then …

Member Avatar for Ancient Dragon
0
646
Member Avatar for vicky30312

I had to make a program that calculates how much you gain or loose in a stock markect. I have everything worked out excpet how to use char. I've looked it up but i don't understand anything. Can you help explain it to me? // Project 6.4. Calculates how much …

Member Avatar for vicky30312
0
267
Member Avatar for ilvanhellovan

i have a problem conversion from char to LPTSTR as parameter, could anyone help me,, for example char temp[10]="abcde"; how convert to LPTSTR from char above?? thanks

Member Avatar for deceptikon
0
2K
Member Avatar for vicky30312

Same project as before but now I have diffrent Errors. fatal error C1075 and error C2450. //Project 7.4. Program determines what your weight would be on another planet.2.3. #include <iostream> #include <cmath> using namespace std; int EarthWeight ; int WeightOnPlanet, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto ; int …

Member Avatar for vicky30312
0
454
Member Avatar for jimmy.teohmingsiong

#include<iostream> #include<iomanip> using namespace std; class circleType { public: void setRadius(double cRadius); double getRadius() ; double calcArea() ; double calcCir() ; void print() ; circleType (); circleType(double cRradius); private: double radius; }; void circleType::setRadius(double cRadius) { radius = cRadius; } void circleType::print() { cout << "The radius of the circle …

Member Avatar for np complete
0
475
Member Avatar for farah.hany.31

I'm trying to display the pegs of the Hanoi Towers recursive algorithm. I want each step to appear separately as such: For example if the number of disks is 2 A: 2 1 B: C: ---------- Move disk 1 from A to B A: 2 B: 1 C: ---------- Move …

Member Avatar for WaltP
0
93
Member Avatar for meby mathew

the program is to print a bill using two classes-customer and item.... in class customer, members are itemname and customer name.in item, members are itemname itemcode,itemprice,noof items...and functions to calculate bill and update stock. iam in confusion with the logic.....i think that it can be done by using nested class???

Member Avatar for gusano79
0
106
Member Avatar for RonKevin

PART 1 of my Project:Using turbo c++ 4.5, and I'm very new to Programming, i'm not good 1. I made a program which stores 100 records please check if it's right. 2. I want to read each line into an array. I want to use a struct or what they …

Member Avatar for WaltP
0
148
Member Avatar for mkaynutty

So I'm trying to right a code to output some simple data using classes. Everything works accept the retail price function. It's suppose to calculate and output the retail price but it only outputs 0 no matter what numbers I eneter. Can anyone give me some suggestions on how to …

Member Avatar for Ancient Dragon
0
186
Member Avatar for ii.love.o5

**Hello :) can somebody help me how to put the quantity and adding a receipt also the a1, a2, a3, a4 (for example i chose the a1 and it will ask me how many order and do you want to order more? if not it will go to the payment …

Member Avatar for ii.love.o5
0
1K
Member Avatar for chris.vargas.773

i need some help/ having trouble in making this program for homework: Create a C++ program which calculates student fees for those attending Santa Monica College. IN ORDER TO RECEIVE FULL CREDIT, YOU MUST CREATE FUNCTIONS TO SOLVE THIS PROBLEM WITH BOTH PASS-BY-VALUE AND PASS-BY-REFERENCE PARAMETER (No, main() doesn't count). …

Member Avatar for np complete
0
195
Member Avatar for DelilahDemented

I have an array of structs that contains an account number and a balance. I open a file which contains an account number and an amount that needs to be either added or subracted from the correct account. My problem is it is adding and subracting to the first account …

Member Avatar for np complete
0
168
Member Avatar for RonKevin

0001 Bread Bakery 35.00 0002 Soap Hygiene 20.00 0003 Milk Dairy 40.00 0004 Apples Fruit 30.00 0005 Gelatin Snacks 15.00 0006 Candy Snacks 25.00 0007 Catsup Condiments 40.00 and so im trying to read this grocery.txt file...i'm thinking of using an array...the code ive done would read the first line …

Member Avatar for RonKevin
0
319
Member Avatar for charuwaka

in my college we are runnig c++ by creating a directory from cmd and this commands goes like this cd\ cd rollno set path=c:\tc\bin tc this created dir in c folder and also saves our pgms with our roll no so what i want is iwant to implement it in …

0
62
Member Avatar for linabeb

if im doing a dll in dev c++ ..... and doing a dll in c++ but using visual studio 2010 is both of them gonna be the same?? i mean..ermm..if the computer doesnt have the visual studio will they be able to run my dll project which using c++ language... …

Member Avatar for linabeb
0
294
Member Avatar for tmoran1016

I have a project to create a pointer based linked list. I am having a problem with the contains() indexOf() and lastIndexOf() methods. I am not able to compare iter->item!=o. This is my ArrayList.cpp. I will follow it with ArrayList.h and Country.h (the ArrayList uses a typedef of the Country …

Member Avatar for vijayan121
0
186

The End.