Beginners (Page 2)

by GJOwl
Differing variable input question
Hi all, I'm working on an assignment where the user inputs the center coordinates(x,y) for an cir...
[no replies]
by Ch1156
How can i use getters and setters with math? (1,2)
I have a function in a game i'm working on that is the shop function and I need to do some math for ...
[38 replies] Last: Thank you both :). I'll look over my code tomorrow and get back to you... (by Ch1156)
How do I round?
I've tried everything possible and the final answer won't round up. This is what I have so far and t...
[6 replies] Last: Can someone please help me? I've been struggling through this for hour... (by Giorgio)
Noob needs help with foo and other things
So I'm just picking up C++ in college and I'm really enjoying it. However my teacher is a backup who...
[13 replies] Last: Thanks. I was just using it as an example because I only know of main ... (by TieRein)
by Felmon
help me pls, I am not quite sure if I am doing right or not.
Write a program in C++ that prompts the user to enter a number representing inches and breaks it dow...
[no replies]
by KMagic
Memory leak detection
I have googled how to detect memory leak and knew that Microsoft offers a library which can help u...
[1 reply] : Try Deleaker, it has standalone version that works with binaries made ... (by ArtemRazin)
Vector resize
Why does vector resize cause array entries to be zeroed out? #include <cmath> #include <cstdio>...
[2 replies] Last: resize is changing logical size of container. If new size is less than... (by MiiNiPaa)
by trunax
C++ Tutorial Basic Input/Output Bug
Hi, there is a bug either in the script or answer, if i run a compiler i get 154 as an answer (Ente...
[5 replies] Last: I assume you are inputting the value as 22,25 but you need to input it... (by naraku9333)
by Ulutay
pow() function
hi, i have been trying to write the ready-made (cMath) pow function. #include<iostream> using...
[3 replies] Last: aha i got it now, thanks a lot, cheers ! (by Ulutay)
How to use new to allocate space?
I have no idea how to use new or what it means. I would appreciate it if someone can explain it to m...
[6 replies] Last: Was a typo, but MiiniPaa is correct you should use delete with new a... (by Pindrought)
problem with pointers
this code works... int **p=new int* ; but can someone help me with the code below? ...
[3 replies] Last: Oh okay I've never worked with that. Also, don't forget that every ti... (by Pindrought)
not understand
Hi, i'm do a program about list , and a list that I do is this: placed alternating ends of the l...
[1 reply] : Actually inserting at the beginning is easier than inserting at the en... (by dhayden)
Read input into array & find mean and median
Hi, I'm having trouble figuring out how to write this program. I'm supposed to only gather user inpu...
[4 replies] Last: Another way: ... while (NumberOfEntries < SIZE && (std::cin >> array ... (by dhayden)
Basic C++ program
Write a program that asks the user to input 5 integers. For each integer, squaring it, print out the...
[3 replies] Last: As dhayden stated, the optimal way to do this would be to use vectors,... (by Pindrought)
by AVM8
footballer 1
Write THREE (3) classes in a file named classA.h, where class footballer functions as a base class,...
[3 replies] Last: (by mutexe)
need help with code!
hi so im having some problem with my code so i think its because of the loops please check the code ...
[no replies]
Problem with function argument
If i have this class for fractions #include <iostream> #include <cstdlib> using namespace st...
[2 replies] Last: Thank you big time man, really helped me :) (by etrusks)
Please help me in Palindrome Code
Check if the string is a palindrome If a string is not a palindrome, at least how many cuts do you...
[2 replies] Last: yes, I forgot to edit sossanh ==> compare But I want you help me in s... (by locvx1234)
Creating bigint class
Hello, I'm working on a class project and we're creating a bigint class from scratch, and i'm ha...
[7 replies] Last: dhayden - So, after digit iterates backwards through the array, the ... (by tmmobley)
What's wrong with the code?
The code below is the example on my new book. It shows different answers and the author didn't expla...
[5 replies] Last: Add another zero to the 15-number, but yes that's a good way of wordin... (by Ganado)
Pages: 1234... 94
  Archived months: [nov2014]

Cannot post in this page. To post a new message, go to the first page.