49,761 Topics

Member Avatar for
Member Avatar for Ubunterooster

"Line 53: error: too few arguments to function 'void printResult(int, double, double, double)'" I have an "error" with my code (or so my compiler informs me) at line 53: "void printResult" I don't see how it's possible to need more aguments in that function. Any clue on how I should …

Member Avatar for Ubunterooster
0
314
Member Avatar for Vish0203

Hi, I wrote the following program for stacks using linked list! But, the display function doesn't seem to work! can anyone point out the errors in this? Thankyou! #include <iostream> #include <cstdlib> #include <iomanip> using namespace std; template <class T> class stack { T data; stack<T> *top; stack<T> *next; public: …

Member Avatar for umesh314
0
145
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
142
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
123
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
195
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
416
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
220
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
116
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
110
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
236
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
451
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
156
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
141
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
141
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
152
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
188
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
281
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
164
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
344
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
108
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
275
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
558
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
149
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
264
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
306
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
154

The End.