Beginners - May 2014 (Page 27)

not having to write in memory everytime a program starts?
 
Hi, I have a simple question. I have a program that requires writing a large amount of memory from ...
[3 replies] Last: Most of the time taken to populate your vector is the access times of... (by Codermik)
BST inorder traversing
 
Question :This is a code of inorder traversing in BST , the problem is i can implement code but i a...
[3 replies] Last: If you look at it in the flat way - each number is printed three times... (by JockX)
SDL
 
Hi guys, i am trying to write my first SDL programme. I am making use of two cpp files,a main.cpp a ...
[2 replies] Last: wow what a silly mistake. thanks for that it works now :) (by yusufseedat)
Finding multiples of 7 in given number range
 
I have this assignment to write a program the asks the user to enter two numbers between 0 and 999 a...
[12 replies] Last: This all just seems a crazy way to teach a student how to program in ... (by Codermik)
Project Euler #10
 
I was trying out project Euler today and I'm currently working on number 10. The link to the questio...
[2 replies] Last: I'm new to vectors, so I made the mistake of preforming calculations w... (by Shadowwolf)
by ushu
Variable not being asigned well
 
Hi, I am kind of new in c++, all the problems I encountere I tried to solve them by reading webpages...
[2 replies] Last: Thanks a lot for your help, I can't believe the error was s stupid, ho... (by ushu)
While loops
 
How do I get the loop to end when it either Hits 10 on the counter OR I say something other than ...
[2 replies] Last: while(condition_is_true){do something; if(goal_achivied)do something t... (by Cienjz)
How can I make this brutally forced array output into for loop?
 
cout<<"CRAMER'S EQUATION IS: \n"; cout<<" "<<equation <<"x + "<<equation <<"y = "<<equa...
[2 replies] Last: you can use loop for to output each element of array. But remember, to... (by Cienjz)
using the return function
 
What is the easiest way to return to a point in a program, such as...if I wanted to return to cout...
[4 replies] Last: thank you for your time and for helping me. Much appreciated!! (by ImmaNewb)
How would I allow the user to input an equation
 
I've written a program that finds the max of a function. I now want to get rid of the equation y=x^2...
[3 replies] Last: are you sure you've written this sourcecode by yourself? it looks like... (by Cienjz)
by Light1
std::out of range...
 
When i run this program. It gives me this error: terminate called after throwing an instance of 'st...
[10 replies] Last: Softrix is correct. Line 78 should be <, not <=. Lets assume th... (by AbstractionAnon)
by Relit
Question about functions
 
So i'm trying to figure out the difference between a void function and a int function what is the di...
[7 replies] Last: void function CAN'T return any value, but it can do anything. int/doub... (by Cienjz)
ascii art loop
 
i forgot how to make it loop... using while statement... there is alot more code but i couldnt add i...
[1 reply] : bool finished = false; do { // ... do your stuff, this wi... (by Codermik)
using point and click programs
 
Alright i know i have been told that a gui is for making like a program that allows you to point and...
[3 replies] Last: Well, GDI (graphics device interface) is basically about drawing: li... (by coder777)
by lays
error: when I trying to accept a container type.
 
I wrote a template function which accepts a vector container type. But I meet compilation error. Whe...
[3 replies] Last: It works! Thank you. The problem is thtat I treat the template functio... (by lays)
Printing highest number in array.
 
Hi guys, I'm writing a function that is suppose to print out the biggest number in the array. I c...
[3 replies] Last: Your welcome :) (by Codermik)
Alphabetical characters. Help.
 
ok i am almost done with this program, but i am stuck, well sort of. i need help with compressing, i...
[1 reply] : http://www.cplusplus.com/reference/cctype/isalpha/ bool Valid = true... (by keskiverto)
Prime Optimization
 
I was writing a piece of code to find all primes in a certain number range, and I came up with this ...
[1 reply] : One optimization for your code: cache the value of sqrt(num) so it is ... (by Smac89)
Using Arrays With Files! [Help] C++
 
I am Trying to make my program read 10 integers from a user-named file using arrays, but I encounter...
[4 replies] Last: Great! Thanks!! lol its Cleaner now (by laidDogg)
Problem with outputs?
 
The program needs to read in two sorted arrays each of at most 10 positive integers - assume that th...
[3 replies] Last: Update: Found your problem. You were going out of bounds. Example: ... (by closed account j3Rz8vqX)
May 2014 Pages: 1... 2526272829... 55
  Archived months: [apr2014] [jun2014]

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