49,761 Topics
| |
Please, I need some help with my hw. I have to create a program that stores the scores for a football team. I need to record the score by quarter for each of the 20 games. I have to initialize all games to 0. Then, the user is asked to … | |
hi every one i need help please i want a program to evaluate a postfix expression i have made a code for it . but it works just with numbers between 0 &9......but i want to use the program with larger numbers e.g: 20 30 + = 50 i will … | |
Ok, so I am trying to write a program that will solve simple math and physics problems, and am trying to use strings and words more, so my question is: is it possible to use a char in an if statement? I'm new to this so yeah. Here is what … | |
Ok, I know I'm probably programing in some kind of archaic way for C++ but my knowledge base is rather limited. I'm having problems with my input not being identified correctly (or however you would say it, rusty is me) [code]cin>>StatsChange; if (StatsChange == "Strength" or "strength" or "str" or … | |
How would i go about making a program wait before printing the next line? Keep in mind that i would like the next line to print automatically after a few seconds. Also if at all possible i would like to know how to make the text act like it is … | |
Format the output in fixed point notation with two digits after the decimal point, even when the number is zero or has no fractional part. Omit the input validation for this program. You may assume the user input is in the valid ranges described. Remember to turn in your program … | |
how do i solve this problem r+5(r-2)=28 3(r+4)+5(r+2)=102 | |
[CODE]template <class T> class Node{ private: T data; Node<T> *ptr; public: void set_data(T parametre){ data = parametre; } void set_ptr(Node<T> *ptr){ this->ptr = ptr; } Node<T> * get_ptr(void){ return ptr; } T get_data(void){ return data; } }; template <class Type> class Stack{ private: Node<Type> *head; public: Stack(void){ head = 0; … | |
Hi, I am trying to read a webpage, namely a PHP page that returns "true" or "false" depending what $_GET (Or is it $_POST?) information is sent. The URL it attempts to read will look like this: [ICODE]www.thesite.com/key.php?key=the_key[/ICODE] and the page will return a true or false. I currently have … | |
Write a C++ program to implement employee directory, which will let the organization to perform the following functions: 1) Insert the record of new employee 2) Delete the record of an existing employee 3) Find the record of an existing employee 4) Display Report Following information of each employee must … | |
I was given a template class code here and I have to add the code to a insert function in there, I have no real experience with templates, how would I go about doing this ? here is the template class code.cpp [code] // Implementation of the templated version of … | |
N00B. Is it possible to compile every line in a file except one? That line would be left in text mode inside the compiled file. Would the file even execute? I'm using gcc (g++). | |
heeeeeEEEeeey I had a question. I am somewhat of a n00b when it comes to coding real C++ programs but I am decent with C like syntax because of actionscript/Processing, so hopefully it makes sense that my skills are disparate. My question is thus, I recently found out how to … | |
N00B. Can I buffer cout, cout something and then cout the buffer? I've been googleing but did not find anything of this sort. [CODE]#include <iostream> using namespace std; int main (void) { cout << "cout output until this point"; string BUFFER; // I need to buffer the cout output until … | |
what is the function for eroor trap like if the user is only allowed to input numbers if he input letter he wil get a note | |
Hi,Im having a hard time understanding the fundamentals of Object oriented programming.Ive made a really simple program that allows a user to enter a number, and then i have a function that doubles this number and returns it. But im still having the same errors that i had when i … | |
Hello, I am a newbee in C++. I am trying to have a connection setup and trying to access private varaibles of a class. Please look at my piece of code below. Any comments would be greatly appreciated. Basically, I want to access two private varaibles from MyClass into AnotherClass(myNewClass … | |
N00B. I cannot seem to get this right. [CODE]#include <iostream> #include <cstdlib> using namespace std; int main(void) { system(("sendmail -options" + EMAIL_TEXT)); return 0; }[/CODE] | |
I have composed a Windows Forms Application with few Check Boxes and Install button on it as well. Now I just made a code for Install button's Event Handler which run application when button is clicked. Code is following, and was just made for test if everything works as supposed … | |
I'm stuck and I don't know what to do I need help. I need help on how to do the nested for loops and how to get to data from the input file to display corresponding values. Can somebody help me please. Read the attached documents and see if you … | |
hi, i am new in programming. i know that c++ used in development of games.so,i want to also some simple games to develop.please give some question for developing game? thank's | |
Had a look at pointers in the tut I am following, and I can't really get my head around why their useful. It says they are, but tells you no more??? | |
Create a program that displays a pyramid , square and a triangle using the multiply character “*” as follows: welcome to c++ shape for pyrasmid sqyare trinagle | |
I am having problems figuring out what I did wrong to my highest, lowest and average for grades entered by a user. I searched for help but have not found any. Any hint in what I did wrong would be greatly appreciated. [code] #include <iostream> #include <iomanip> using namespace std; … | |
Just picked up a beginners book on C++ so i'm pretty new at this. trying to write a program to test what i have learned so far, but it's not coming out as i had hoped so i'm hoping someone can help me out constructive criticism welcomed Here it is: … | |
I'm using VC++ .net to write a program for searching through files in a directory and then opening them. The only problem I have run into is opening the file. I tried using streamreader but this does not work for opening pdf files. Currently I'm using system ("start //location and … | |
please help me solving a program about booking a ticket for a flight that need to show the seat, the price and the class | |
hi, I have one query that create process funcion retuns bool value. And i want to know the exit code of my exe which i ran through create process function. EX. [CODE] int main() { return 5; } [/CODE] this exe is returning 5. I ran that exe by createprocess … | |
If I have 2 classes a) class Business b) class Customer I want the Business class to be able to store a dynamic list of it's customers. So I thought the easiest way to do this would be to use a vector. [code] class Business { vector<Customer> customers; public: Business(); … |
The End.