General C++ Programming - December 2013 (Page 18)

2 accounts on a ATM Project HELP DUE TOMORROW!
 
second cpp file #include "ATMfinal.h" #include <iostream> #include <iomanip> #include <cmath> #include <string> using namespace std; //bool exitProgram...
[9 replies] Last: I would seperate this into sections: - Account (a class to handle an... (by IWishIKnew)
Proper declaration of dynamic arrays
 
Hello, I started to practice some C++. I use to program in C and a little C++. Anyway, I am writing code that creates a dynamic array. I would like to be able ...
[3 replies] Last: I can see a small mistake. [code firstline=73] //galaxyobjectstota... (by Catfish666)
Creating a variable name for a file
 
I'm attempting to split a large binary file into smaller manageable files for analysis. I've written most of the software but I'm stuck in a couple of places. ...
[2 replies] Last: Thanks for the reply. I successfully implemented the dynamic name assi... (by loginic)
Help!!
 
I need help for a program that allows the user to enter a statement and outputs statistics; number of vowels, number of constants, percentage of vowels and cons...
[2 replies] Last: While you should be writing your own code, and posting problems on the... (by Aaron Vienneau)
need help, my program is running but not showing some of data
 
I write a employee payroll program using structures. My program is running but it does not show any data. only shows some of the info, #include <iostream>...
[4 replies] Last: thanks, i just found out what was the problem thanks again (by GokuK97)
by mywish
drink machine
 
Hey Guys! I!d like to create a drink machine in C++ which can do the following things. It has 3 options for drinks to choose. you can recieve max. 10 bot...
[no replies]
Getting type for a template
 
How might one go about solving this problem? unknownType func( void ); std::vector< /* type of unknownType */ > objects The source of my question is trying...
[2 replies] Last: Thanks xerzi, I didn't realize that std::function<void()> would be ... (by Lowest0ne)
possible to program satellite receivers
 
is it possible to develop a program for satellite receivers? or smart televisions? where should i start from? Thank you
[2 replies] Last: @ OP: Not universally. I would not be surprised if a lot of them run s... (by Computergeek01)
by Minttu
Polymorphic function pointers
 
Hi, In my game engine, I have an object hierarchy consisting of objects that inherit my base class STObject. STObject can handle registering of parameters (t...
[no replies]
charactor quoting problem
 
I wanted to quote character upper come, " ' " in swithch statement but it showed two errors(in the last row), in visual c++. "IntelliSense: quoted string sh...
[2 replies] Last: Thank you :) (by tharindu11)
i am facing one error while running this programe. the problem is in the main().
 
initialization of "i" is skipped by "case" lebel..plz help me. int main () { diary myContacts ; while (1) { cout << "Press 1 to add contact" << endl; cout ...
[1 reply] : My first piece of advice would be to sort your brackets out. They're a... (by MrHutch)
ARRAYS/FILES/FUNCTIONS: help please!
 
Hello! So I have to write a program that inputs numbers from a single line in a file into an array. It then uses a function to check which numbers are even...
[1 reply] : Please use code tags http://www.cplusplus.com/articles/z13hAqkS/ I d... (by Yanson)
by kemkoi
Creating a simple memory game in Forms Application
 
Hello there, I've been studying programming in school for a while now and we recentley got into using the Forms Application option in Visual Studio c++. We have...
[no replies]
A little help with my code
 
Can Someone help me with this problem , been breaking my head over it for a while now :) //Problem. The first line of the file "trees1.txt" holds the numb...
[1 reply] : delete line 97. i'd rename that Max() method to something more specif... (by mutexe)
Functions in headers...
 
I am really curios that when i go to the declaration of some functions in C++/C i only see their function prototypes and only some have full functions, i am cur...
[7 replies] Last: JLBorges oh yes thats what i was looking thank you (by topnik1)
by HARB
Confused on a code from a Professor, Greatest Common Divisor
 
I'm confused about how a certain algorithm works. My professor gave it to us as part of an example code, but I am not sure how it runs or why I need to use it. ...
[1 reply] : > but I am confused why this is necessary The idea is to reduce the f... (by JLBorges)
by Amarki
deque iterator not dereferencable
 
The program is supposed to evaluate a line of mathematical expression, then push and pop operands and operators respectively into two different stacks. Proble...
[1 reply] : int evaluate(string expression) { istringstream in; in.str(expressi... (by JLBorges)
Need help
 
How do I check the internet conection? I'm can of noob. I looked on google ut I found nothin. #include <iostream> #include <windows.h> using namespace ...
[3 replies] Last: Did you #include the correct headers? You can't just copy and paste an... (by LB)
The efficiency of return values
 
Wouldn't it be more efficient to just directly modify the variable by passing it by reference?? Every time we call a function, it will allocate new space for ...
[5 replies] Last: uhg... I wish it would be what it is... and if that were true, then I ... (by IWishIKnew)
by Jecs9
Magic Pairs
 
Hello, I am trying to solve this problem Alexandra has some distinct integer numbers a1,a2...an. Count number of pairs (i,j) such that: 1≤ i ≤ n 1≤ ...
[4 replies] Last: So for the example I gave If N is for example 10 any Ai = 0 or Ai > 1... (by Jecs9)
December 2013 Pages: 1... 1617181920... 37
  Archived months: [nov2013] [jan2014]

This is an archived page. To post a new message, go to the current page.