Beginners - April 2013 (Page 58)

Can help with C++
 
Hello! I'm the C++ tutor. I have a site about game programming in C++ for beginners in Russian (I don't know can I post the link). Now I'm translating it in En...
[1 reply] : And where are there your posts that prove that you indeed can be a C++... (by vlad from moscow)
while loop and checking for uniqueness
 
http://www.cplusplus.com/forum/beginner/98118/ that was an earlier post that I made, and I fixed the suggestions and my original problem, however, my program...
[5 replies] Last: || is logical OR. The expression means push_back IP either when it is ... (by vlad from moscow)
by dv1575
vector template with stl member function
 
Hello, I am trying to add a Try-Catch and throw 'exception' for possible wrong input data. I've also got to add a vector template container and at least o...
[1 reply] : Are you required to do #1? If so, I feel very very sorry for you. It's... (by LB)
need some mancala board programming help
 
I am working on a mancala board for class that we have to put together. I have an assignment where I must use a double loop. One is to output six spaces and the...
[1 reply] : What is a "double loop"? I think you've confused some programming term... (by LB)
by ET21
Inputting Binary into a struc
 
My code works fine, outside of the input file. I'm trying to input the file binary_hockey into my program, which contains hockey stats that'll be ordered into 2...
[11 replies] Last: Well thank you everyone for your help, and the clarification between .... (by ET21)
Help with my code?
 
This is what I have so far but with only one battleship now I have to do the following: Add a second boat to the board. You must make sure that the two boats a...
[5 replies] Last: Thanks so much!! (by closed account LN3RX9L8)
'struct std::ostream' has no member named 'close' error in header file
 
Hi, LeafyCircuits here! Comp specs: OS: Windows 7 Premuim 64-bit Compiler: GNU gcc with C++ 2011, ISO and STL IDE: Dev C++ v4.9.9.2 NOTE: Code shown be...
[4 replies] Last: Whoops, I was just using the wrong thing: LowestOne said: you w... (by LeafyCircuits)
by Cut
ReduceFraction and CommonDenominator Help
 
Hey i have no clue what to put in the ReduceFration and CommonDemoninator sections. I know that you call the gcd function for ReduceFration and lcm function ...
[2 replies] Last: I'm not very good at math, for I haven't taken a course since high sch... (by Cut)
new / delete
 
I have a couple questions about the following code from the C++ Primer book I'm working through related to the new and delete functions. Here is the code: ...
[4 replies] Last: Thanks for taking your time to help! I was getting mixed up by the na... (by egg management fee)
BOOST_FOREACH problem
 
Hi! A little problem with the BOOST_FOREACH function. documentation here: http://www.boost.org/doc/libs/1_53_0/doc/html/foreach.html code: BOOST_...
[10 replies] Last: ok, flagged it for C++ 11. Works now. and thanks coder777 (by Jonas Wingren)
by Varius
Initializer string is too long
 
Whenever I attempt to compile this code I get the error "initializer-string for array of chars is too long". Any help is greatly appreciated. #include <iostre...
[3 replies] Last: Thank you for the help vlad and Catfish (by Varius)
by Larry2
Buffer vs getline
 
Hi, I was wondering why is buffering so long in comparison of a backup with getline. eg : ifstream in; in.open("mytest.txt", std::ios::in|std::ios:...
[5 replies] Last: Thanks, Catfish, your solution is even faster. I cannot understand w... (by Larry2)
by SlatA
Class Car Please help!
 
Thanks
[7 replies] Last: The link in Zhuge's post explains everything that you need and more. (by mutexe)
Translating a math expression
 
I need to translate this expression into C++ code, without using cmath functions. Payment = ((Rate(1+Rate)^N)/((1+Rate)^N - 1)) * L my particular concern ...
[10 replies] Last: @DanStirletz for(N=1; N<=24; N++){ b =pow(Rate,N); Payment ... (by Sam99)
singly linked list (1,2)
 
newnode->next = current ->next; current->next = newnode; My Question is : Suppose that a singly linked-list is implemented with both a header and a tail n...
[28 replies] Last: @ clayKitty: why don't you start your own thread instead? (by Catfish3)
by Ch1156
Program that searches for bugs in code?
 
I know a compiler is made specifically for catching bugs but isnt there a program that searches through code and cathces bugs and other things in the code that ...
[5 replies] Last: Debugger and if you use Linux (and Mac, can't remember if it is on tha... (by BHX)
Recursion and strings
 
Hi, I have an assignment I am working on that uses recursion. I'm still having a little trouble understanding recursion, or at least how it all works, but I thi...
[11 replies] Last: "First, if the pointer to the string hits the zero, or the end of the ... (by derekroolz)
How to exceed certain limitations
 
So I made a program which can calculate factorial, however, it goes up to 1754. Is there a way to calculate larger numbers than that factorial? #include <io...
[4 replies] Last: My laptop has 2.5GHz dual core processor (and 4GB RAM). Your computer ... (by eklavya sharma 2)
Can't compare strings..
 
I am trying to write a script which reads some data from a file and builds a class instance, but for some reason I can't read the strings properly: if (type...
[4 replies] Last: Can you explain? (by ausairman)
Error: expression must have integral or enum type
 
Almost complete with my programme and then I just notice I receive an error "expression must have integral or enum type"... Can anyone help me what does this me...
[3 replies] Last: Thanks for realising my mistake for me. Guess ill use if else function... (by Angry Food)
April 2013 Pages: 1... 5657585960... 83
  Archived months: [mar2013] [may2013]

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