49,761 Topics
| |
"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 … | |
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: … | |
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 … | |
**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 … | |
is it possible to etract palin text from a pdf file? if possible, can i please have the code | |
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 … | |
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 … | |
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 … | |
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". … | |
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 … | |
#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 … | |
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, … | |
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 … | |
How can I compute the memory space required during: Run time, Idle time and Compile time. In comp graphics | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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* … |
The End.