Beginners - August 2014 (Page 9)

by BaneX
Reading out my answer
 
Hello. I'm learning c++ just for leisure As i was building my code, i came across a problem. How am i able to portray my answer when i run it? What ...
[1 reply] : I don't understand, you already have the code you want on line 18+19. (by LB)
Collision Help?
 
I'm making a maze game. It's simple. You control the camera movement as you search the maze. But the thing is, the camera goes through the walls... any help? Wh...
[no replies]
my stack class
 
hey guys i was trying to make this vector class this works fine but i have a few questions ...if you plz help me ..... i used linked list to make my class....
[6 replies] Last: Thanks bro i'm gratefull to you ....... (by MRKSalman0349)
Operator overload
 
I am wondering how to correctly use overloading operator in this example. I want to set Mary == Susan. #include <iostream> #include <string> using namespace s...
[6 replies] Last: Thank you. I need to be more careful when I type. I am using a tablet ... (by JackieJ)
Integration code arrays help
 
I'm writing a code for integration to find the definite integral using the area of trapezoids. I wanted to know if this looks correct, it's giving me 21.5 for a...
[1 reply] : This looks correct to me, but it would be better to call integrate in ... (by dhayden)
String help
 
I'm trying to make a string code work but I can't seem to make it return the number of names in a string. The string should count the number of names in an arra...
[4 replies] Last: Okay thank you. (by hellworld136)
Pass by value question
 
I'm doing a practice problem for C++ and the question is asking me what will the function below(int fu) return after the call fu(e,f,g) is made. e=3.0, f=10,g=3...
[5 replies] Last: Opps didn't see all the new messages. Reading them now. I understand ... (by hellworld136)
Unlimited generator (1,2)
 
I want to make a program in SFML to make a spaceship fly around and dodge asteroids. This is my program so far. #include <SFML/Graphics.hpp> #include <s...
[22 replies] Last: Sorry, I only know how to use vectors for like ints and stuff. Thanks... (by giblit)
Exam Grader
 
This is part of a class assignment. I can't get in touch with my teacher, so I have nowhere else to turn. There are two text files with this program, an answ...
[8 replies] Last: Awesome. giblit, thank you SO much! Still a few more touches I need to... (by mct1981)
Linkedlist
 
Guys if you plz help me i'm stuck here .... This is linked list and when i try to add second time to list it throws exception .......... // LinkeListDe...
[5 replies] Last: Thanks very much bro.... (by MRKSalman0349)
SPOJ - Prime1
 
Hi I'm trying SPOJ Prime1 (http://www.spoj.com/problems/PRIME1/) where I need to write a segmented sieve of eratosthenes. The below seems to work except for pr...
[1 reply] : long long int first_multiple = m/primes * primes ; for (int j=first_... (by ne555)
Confused about pointers
 
ok so i grasp the essence of pointers,but what i find really confusing is what they actually hold. so lets say i do this int v=10; int *pointV=&v; ...
[5 replies] Last: ohhh alright. thanks a lot for the replies. i finished my 3rd year in ... (by DAoliHVAR)
Vector of class type initilization
 
Okay I do not know how I can initlize Sales_data items that are in a vector. This is what I`m trying to do vector<Sales_data> items = {0-235-1456, 0-159-...
[3 replies] Last: Thank you, how stupid of me. Thanks (by closed account EwCjE3v7)
by Nezar
the use of noexcept
 
Hello every one. I know what noexcept does, at a basic level, but the way it is used in the code below is pretty much confusing to me. #include <ty...
[3 replies] Last: Everything after the arrow -> is part of the trailing return type. I w... (by LB)
by cpm14
Opening File
 
hello i have a big problem with opening files can any body help me with this program #include "iostream" #include "fstream" #include "conio.h" using names...
[5 replies] Last: Please note your #includes are using the incorrect notation. You shoul... (by jlb)
by drawar
Concatenate strings across multiple files
 
I've danced on the brink of insanity trying to find a solution to this problem. I'm supposed to write a program that takes multiple input files, and concatenate...
[6 replies] Last: Actually I was looking for a more rudimentary method to tackle this p... (by keskiverto)
by jon218
Vector Help
 
I need help with my program using vectors. The error comes when you input a decimal. After entering a decimal, the program accepts no input and runs to the end....
[3 replies] Last: Line 21: summ is uninitialized. Line 24 is going to be adding to gar... (by AbstractionAnon)
Expected Primary-expression ERROR Pls Help!
 
Hello, Thank you for any and all help in advance. I am fairly new to C++ and programming in general. I have been going through a C++ tutorial book and learne...
[3 replies] Last: Lines 16-17 aren't going to work the way you are thinking, even if the... (by AbstractionAnon)
HELP with ELSE statement
 
Im using an online executor. compileonline.com , so all i could see in the output was the "cout" and im not able to insert the answers/inputs : So thanks to ...
[1 reply] : Your else statement on line 41 only applies to the if on line 36. I... (by AbstractionAnon)
I need help please!!
 
Below is the code for displaying distance between time=0 till time=4 with interval of 0.5 I have several questions: 1) why do the /t=t+interval/ can not be pla...
[4 replies] Last: whoa the garbage it displays is 0 which is coincidence with the initia... (by higherplace)
August 2014 Pages: 1... 7891011... 40
  Archived months: [jul2014] [sep2014]

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