Beginners - March 2012 (Page 15)

leanr in a order?
 
What order should i learn C++ in? Email me at hunteru@bountifulfamilyservices.org/ OR PM me. or just leave me a comment!;)
[1 reply] : That's good, but the response time of any programmer that should be ab... (by Kyon)
program wont compile for some reason?
 
#include <iostream> #include <cmath> using namespace std; int main () { int numValue; int sum = 0; int Value; cin >> numValue; cout << numValue <...
[5 replies] Last: if you are using x just for the loop you should declare it in the scop... (by ui uiho)
by xurian
is the outcome of this code correct?
 
Here is the source for a calculator in which the user imputs their weight, and the output is a comparison of their energy to that of your average atomic bomb. F...
[1 reply] : NEVER use system("pause"); you use this forum there are two posts th... (by ui uiho)
How to use a "SET" function
 
My "get" functions: //get functions: char* getAvtor(){return avtor;} char* getDello(){return dello;} int getGod(){return god;} float getCena(){ret...
[7 replies] Last: If your name is public defined, you can use g.name=" your name", other... (by Jeff Chen)
implicit specification of template
 
In C++ programming language book, it says: template<class T, class U> T implicit_cast(U u) { return u; } void g(int i) { implicit_cast(i); // error: can...
[4 replies] Last: haha, I will try:) (by jijijude)
by wan904
Run-Time Check Failure #2 - Stack around the variable 'box' was corrupted.
 
hey~im new to programming...i got the problem in my program.Can anyone help me to solve it? Run-Time Check Failure #2 - Stack around the variable 'box' was c...
[1 reply] : [co de] "Please use code tags" [/co de] array index goes from 0 to... (by ne555)
accessing arrays with pointers
 
I have a student stat calculator that i'm working on. My Average function doesn't want to store the average in float Avg. Also not sure how to get my input to ...
[4 replies] Last: It's not storing the correct value in total... because I can replace t... (by nadurraXII)
Printing Histogram issue
 
So i have a printhistogram function but it obviously isnt printing the histogram i need it to, can anybody help me with the code inside my function? the idea is...
[1 reply] : bump (by paper32)
How to effectively reallocate/copy std::string array?
 
Hello, I have a C++ homework assignment, which forbids me to use list or vector and I have to store some data in arrays of std::string. I have to allocate it fo...
[3 replies] Last: Is this legal C++? Doesnt the array size have to be a constant? No... (by firedraco)
Soooo Close- Interesting Question
 
I am having trouble tweaking my non-recursive preorder to print in a non-recursive preorder fashion. Any ideas? Preorder recursive template< typen...
[8 replies] Last: Hmmmm (by darms21)
find the errors
 
Hi I'm new to programming, but I'm trying to figure out the error in this program segment. please help. When I try to compiler and run it. char x = 'a', y = '...
[3 replies] Last: strcmp uses two parameters. Both of them being constant character poin... (by Pravesh Koirala)
are these bad names for variables?
 
recently, some global variables I am using just refuse to transfer value to some functions. after being frustrated, I changed their names and everything sta...
[3 replies] Last: Don't reuse the variable names as parameter or local variables names. ... (by Zhuge)
Help comparing a string with 0
 
Is this correct: cout<<"Type the offers till you type '0' for end"<<endl; do { cout<<"Type the name of the buyer:"<<endl; cin>>av; cout<<"Type...
[5 replies] Last: I just replaced it with an infinite 'for' cyclus. thank you (by Bashkim Ukshini)
fuction not working
 
after i was able to get my other program to run with everyone's input I decided to try a different one to get a better understanding of function programming. I ...
[2 replies] Last: Or says if either of the conditions returns true then return true, an... (by ui uiho)
problem reading txt file
 
So I'm to open a txt file i have in my temp folder and copy the numbers into an array then take those numbers and calculate the lowest, highest, total, and aver...
[1 reply] : You need to convert the Filename string into a c string you do this by... (by ui uiho)
Deleting array elements
 
I am new to programming. I justlearned how to implement arrays both from user input and getting it from a file. I would like to know if anyone could help me in ...
[6 replies] Last: Thank you all. The feedback I received was very helpful. Glad I joined... (by RookieOfTheYear)
by Y4kuzi
Problem with [Y/N] option in console.
 
Hi guys, I am not sure how to describe this problem, so I'll just keep it simple. In my console app, users can choose if they want to exit the program or not b...
[8 replies] Last: The most common way of jumping to other parts of code are "functions".... (by Moschops)
Preprocessor Wrapper?
 
i read somewhere that a prepocessor wrapper prevent a code in the header file from being include into the same source code file more than once. my question is ...
[1 reply] : http://www.cplusplus.com/forum/articles/10627/#msg49679 It's the #ifn... (by S G H)
system("pause"); doing weird things ???
 
please help me. I have such testing code insert in one of my sub: I need to have a output on screen: "(i,j)=...:ratio4=...." and have a pause till I hit key. ...
[6 replies] Last: To explain why: cout is buffered by default, which means the output is... (by Cubbi)
Program Help.
 
Hey guys I'm back. This time I'm here with a more complex problem. I'm on problem 11 of Project Euler. This time the problem is: In the 20×20 grid below...
[2 replies] Last: Or I could just do a two dimensional array with a for loop... (by closed account G854izwU)
March 2012 Pages: 1... 1314151617... 71
  Archived months: [feb2012] [apr2012]

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