Beginners - March 2014 (Page 22)

by iluv41
Looping question
 
//
[1 reply] : Hi @cheer4BAS, try: do { balance = PlayGame(balance); cout << ... (by eyenrique)
function brings up random letters and numbers?
 
I am writing a program to compute the distance formula. It runs smoothly until the solution, that's when it brings up a string of random numbers and letters. I ...
[3 replies] Last: Two (three? four?) things: -- To call your distance_formula , you nee... (by long double main)
Cant get my loop to work!!
 
Hi guys, I just started learning C++ a week ago and im trying to get a counting loop to work but I cant. Im going nuts because I know somewhere in my code ther...
[13 replies] Last: @ rookiecoder: Ah I see. Try this then: float dummy = deposit; int y... (by Stormboy)
rock paper scissors help
 
Hi, This is my first time on this forum so I want to thank you in advance for your help. When I submitted this program, i got the following error: 8.1: expe...
[3 replies] Last: Guys, I appreciate the help. The program now work the way it was inten... (by original4u)
Problem with if else?
 
Beginner programmer here. The problem says that line 27 has illegal else without matching if. #include <iostream> using namespace std; int main() { c...
[3 replies] Last: Thanks. It worked. (by Retraction)
Exam Question Predict the Output
 
In my Final Exam paper I got following question : "give the output of following program" #pragma GCC diagnostic ignored "-fpermissive" #include <iostrea...
[4 replies] Last: @giblit yes I got it but bit late... see I lost marks alright but joke... (by closed account 4jzvC542)
by jb1200
calculating a fibonacci sequence
 
fgfdfhfdh
[1 reply] : The counter should not be used in generation of the fibonnaci numbers.... (by Hiten)
by enemy
conversion constructor
 
Hello! I do not have in my textbook any chapter nor idex item "conversion constructor". Pleasse, can someone help me with changig a and y in object a? Can some...
[1 reply] : you can declare a public member function so called mutator which essen... (by nvrmnd)
Help Building Cal3d2ogre
 
Hello new here and a beginner to the world of C++. Not going well Im having Extreame diffculty Building Cal3d2orge http://www.ogre3d.org/tikiwiki/tiki-index.php...
[no replies]
Dynamic Arrays
 
Hi! This is my first post here on cplusplus.com. I'm fairly new to programming and I was making a small program that keeps taking integers from the user and p...
[6 replies] Last: Ohh ok. I totally get the logic behind the loop part, I just didn't kn... (by doctorX)
can't compile program in dev-cpp
 
Hallo. I'm new in dev-c++ compiler, i have error when i compile my code. The error like this : [Linker error] undefined reference to '__cpu_features_init'. So...
[3 replies] Last: Thank you to catfish666, you right. Dev-c++ conflicting with minGW. ... (by ronnyHidayat)
by alsade
how can i calculate 'the sizeof pointer's array
 
im trying to create a function that will execute a for loop as many times as the size of array which contains pointers to structobjects. the only thing i can s...
[1 reply] : I recommend to use std::array<> and just call .size() member funct... (by nvrmnd)
Some issues with .h and .hpp files
 
Hey guys! I actually came a little bit confused with my header files here. My compiler throws up an error and I can't find the solution anyhow. I'm sure I miss...
[6 replies] Last: OK, two things. First, you need to move your extern declarations of th... (by TwilightSpectre)
by chk2
core dumped- dynamic arrays
 
hi! im desperate... i dont know why but in specific test that i run on my code the program crushed. that heppens while the program releases the memory of 2...
[4 replies] Last: change delete arr ; to delete arr[ loop ] and int **&arr to i... (by nvrmnd)
can anyone help me plz
 
can you solve this one for me ?? Write a C++ program to perform the following: 1) Input a positive integer total that represents the total distance in ...
[4 replies] Last: sorry but i didn't get the dividing point !! so i need to divied over ... (by shaikha)
Beginner Exercise Help
 
#include <iostream> int main() { int a = 1; int sum = 0; while (a <= 10) { sum += a; a++; } std::cout << "Answer: " << sum <<std::endl; return 0...
[3 replies] Last: you can try : int a=10; int sum=0; while(a>0){ sum+=a; a--; } e... (by zsteve)
C++ for beginners : Array's problems
 
...
[1 reply] : 1) regmane and revname should be string, not char. 2) Line 98: there ... (by MiiNiPaa)
For loop will slow down if it have to repeat many times?
 
I have coded a solution to solve the problem on this site: http://www.codechef.com/problems/INTEST #include <iostream> using namespace std; int main() { ...
[4 replies] Last: Thanks guys, all I did was adding ios_base::sync_with_stdio(false); ... (by dleanjeanz)
adding texture to a rpg game
 
so i made a very simple console rpg game. it is the start of an rpg. and what i am wondering is how do i put tiles to the characters? thanks for the help! ...
[1 reply] : You are going to have to use a 2d/3d graphics library for textures. I ... (by giblit)
March 2014 Pages: 1... 2021222324... 79
  Archived months: [feb2014] [apr2014]

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