Beginners - February 2014 (Page 30)

Fruit Sales assignment
 
Hello I have been faced with a difficult problem domain. I am getting tons of errors.Any help would be appreciated, thank you. -----------------------------...
[3 replies] Last: Why do you have to use strcpy and why do you do the same things twice?... (by closed account iAk3T05o)
Having display issues with my code, looking for help to fix!
 
Hello everyone! I have a code that I've been putting together for school that's basically a bike calculator. It calculates the max and average velocity of th...
[6 replies] Last: // Creates a dynamic CycleComputer object // static CycleComputer ... (by Alysha Recore)
How when should I use literals?
 
Hi, I understand how Integer Literals are to be used. int main() { const unsigned short int A = 60000u; //more or less? } However I don'...
[1 reply] : Self answering here -_-;;; http://www.parashift.com/c++-faq/numeric-... (by closed account 91vUpfjN)
HELP - many lines text
 
i will explain again, my program will create a file in the desktop called test.txt so it will create it, and will tell me what text i want inside so when i type...
[6 replies] Last: thanks bufige (by closed account ivDwAqkS)
why does it load wrong[0] twice before loading wrong[1] ???
 
exactly what the title says.... basically this function goes through 81 boxes or 9 rows of 9 boxes. each box has "possibilities" so that box could look like 125...
[no replies]
Can you use VC++ to write Windows Apps
 
I'm really confused, I have tried to look everywhere to see if you can write Windows applications in C++ in the Visual Studio IDE. So can you use VSC++ to write...
[10 replies] Last: Alright, thanks modoran - I'm still all quite new to this. (by SoftMOUNT)
helpp
 
how to eliminate duplicate from a singal integer array?
[2 replies] Last: std::sort + std::unique + std::distance http://www.cplusplus.com/refer... (by keskiverto)
cin invalid input
 
Hey all... I am looking for a way to handle the comparison of input datatypes. In other words, in my cin>>a where a=int, how would I generate an error message...
[1 reply] : You can check if the input was successful by using it as a condition f... (by Peter87)
by Alby94
for_each() function!
 
Why the function for_each() calls first the constructor and after the function operator()? #include <iostream> #include <algorithm> using namespace std;...
[2 replies] Last: Because the arguments of the functions must be evaluated before the fu... (by ne555)
A couple of algorithms to compress
 
Huffman 1 #include<iostream> #include<fstream> #include<string> #include<vector> #include<map> #include<iterator> #include<algorithm> using namespac...
[1 reply] : 1. You haven't asked a question 2. You duplicate posted: http://www.cp... (by Stewbond)
Is it possible to use the modulus operator on a decimal?
 
Hey, so I'm trying to write this program in which once you are given change, it dispenses it according to highest tender. For example, if you purchased an item...
[3 replies] Last: You can use fmod from <cmath> http://www.cplusplus.com/reference/cmath... (by Stewbond)
by siebi
ifstream.get() returns wrong character
 
Hello, I have a really confusing problem. Was searching the web, but found nothing useful. It is simple: I want to remember the position in a file by call...
[2 replies] Last: try using gets() instead of get(). (by NPcomplete)
by kooogs
New to Programming
 
Hi, I would like to start learning c++ as a programming language and really I wanted to know where the best place to start and sort of progression so I can get ...
[6 replies] Last: @koongs Tablet/Mobile apps. This can't be done with "pure" C++, but wi... (by iQChange)
Requesing Interesting C++ tutorials
 
Hi there , This site already has the best tutorial of c++ but I need some other tutorials of C++. Of course , I could google it ( already did but could not find...
[no replies]
Convert an array into a link list.
 
typedef struct Elem { int x; unsigned char value; struct Elem *next; } Elem; typedef struct Row { int y; Elem *elems; struct Row *n...
[no replies]
Multiplication using repeated addition problem
 
This code works on everything expect when I input a 0 for the second number... when I enter a 0 for the second number I just get the value of the first number a...
[3 replies] Last: Your computer knows 5 * 0 or 0 * 5 is 0 so there is no need for that c... (by closed account iAk3T05o)
Overloading Functions Compiler Error
 
I'm trying to overload the '<<' and '>>' operators but when I compile using g++, it gives me the following error messages: 'undefined reference to operator>>(s...
[7 replies] Last: Thanks! (by Tipharez)
C++ text adventure
 
I am making an adventure game where the person is either a knight or samurai. I am having some issues with the yes and no choices. Is there anything I can do to...
[10 replies] Last: @dnulho I will be posting my code is several parts in a new topic. And... (by faust058)
using text file
 
Hello. I am taking my first computer class and my teacher doesn't offer any type of guidance. She expects us to already know what to do. So I need help writing ...
[1 reply] : Let me make sure I'm understanding you correctly... you don't have any... (by packetpirate)
by dnulho
Text based game w/ external files
 
I am working on creating a game that is midway between a text based adventure and a text based RPG. I want the "pages" in another file (or files) that the progr...
[1 reply] : Sorry to double post, but I updated the code and my problem. If some w... (by dnulho)
February 2014 Pages: 1... 2829303132... 60
  Archived months: [jan2014] [mar2014]

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