Beginners - October 2015 (Page 21)

Question about sine function.
 
I was trying to make my own sin function and I'm running into some weird values for my value of sin(x) If I put in 2.61799 radians for x and do 3 sumations I g...
[5 replies] Last: I found out what was wrong. I needed to convert large angles into thei... (by Recluse)
Can't use W,A,S,D and arrow keys together
 
With my OPENGL game I've gotten my characters to move around using the windows.h library, however I can't move both characters at the same time one uses wasd ot...
[9 replies] Last: If you're using the while (GetMessage(&msg, NULL, 0, 0)) { Transl... (by liuyang)
Another beginner question... (1,2)
 
Im doing some tutorial and am stuck here. Ive looked over everything closely but can not find the problem. thanks for any help. //main.cppp #include "bi...
[28 replies] Last: The cpp files don't 'know' about the header file unless you tell them.... (by closed account 48T7M4Gy)
HOW TO LEARN C++
 
hi i am new one to learn c++ and i have only learn first program. Please help me how i can learn better and which book is suitable for me.
[2 replies] Last: To add onto what TheIdeasMan said you could also have a look at some t... (by Tom56785)
Changing array values
 
Hey. I am writing a code which uses 4 separate functions, and are able to be called from the main function, and within them, an array is used to store 10 number...
[2 replies] Last: Wow thank you very much for helping with code to make mine work nicely... (by PhaseDaze)
Determine if "a" is a power of "b"
 
I'm asked to prompt the user for 2 integers, a and b. Determine if a is some power of b and output that claim. I cannot find a way to set that condition up thou...
[2 replies] Last: I thought so, but I had a hard time believing this was the "right" way... (by herob4u)
Finding number of people with score below average
 
Hi, I have created a programme that calculates the pay of 10 artists based on the hours they worked and their average pay. What I need to do now is to find the...
[2 replies] Last: Found the solution: if else within the loop For future references if a... (by windeclipse)
Help with for loop repetition
 
Can anyone tell me why with using the for loop I have, it repeats the the cout statement 5 times instead of what I had intended it to do, which was repeat the...
[2 replies] Last: looks: for (; i < 5; i++) cout << "enter a number to add to 20 such ... (by hdj)
Validating Menu Items using a while loop
 
Hello, I was wondering if anyone would be able to help me with this nested loop issue I'm having. I'm currently creating a deli simulator which allows the us...
[2 replies] Last: Thanks for the reply, here's the full code (apologies for formatting):... (by brandino)
How Do I find the sum of positive and negative numbers in a group of 10 different numbers?
 
EDIT: I no longer need help. Thanks to all of you who gave their time to help me! ;) Okay, so I have just started the C++ language, and there are A LOT of thin...
[4 replies] Last: You're welcome :) (by newbiee999)
iterator arithmetic, + operator does not work anymore.
 
Hello there! So I'm trying to compute an iterator that points to the middle element of a vector #include <iostream> #include <vector> using namespace s...
[3 replies] Last: @cire , Thank very much! Nice answer! (by joseplusplus)
Return multidimensional array from function
 
Hi, In my programme, im trying to return a multidimensional array back to main after user's input. However, I cant run the programme after I try to do it. Line ...
[3 replies] Last: In other words, even without the return statement, my array is brought... (by windeclipse)
Piggy bank program
 
How do i go about getting a name from a user and using it throughout the entire program im coding. itll be used quite frequently. its a piggy bank program.so fa...
[1 reply] : line 17: You've declared name to be an int. Does everyone you know g... (by AbstractionAnon)
Halloween project
 
Working on a assignment, needs to be done soon so if you can help please do as soon as possible. It runs and everything is good how it should be but, im having ...
[6 replies] Last: okay thank you so much for all your help Ian i appreciate it :D (by helpmepleease)
Need some help for printing last 100 number
 
Here is my question. If the input is more than 200, display on screen only the last 100 primes. I have no idea how to do it, can anyone help? int Prime::...
[1 reply] : what you are trying to do , you want to print the prime numbers ? or w... (by new1)
My code won't compile. HW question
 
I'm having trouble trying to compile my code. The assignment we are working on is for functions. To use a void function to calculate which division of a company...
[5 replies] Last: I would avoid using global variables. Nevertheless, I placed a comment... (by chicofeo)
by dn90
Finding the kth smallest element in an array using recursion?
 
My goal is for the user to input a number and said number would direct them to the kth smallest number in the already generated array. I'm relatively new to...
[1 reply] : It is possible for size to be 0, and when it is you try to access elem... (by cire)
self-assessment check fails
 
I have an overloaded assignment operator function. Within the function I have a self-assessment check that does not seem to work as expected. I've spent the wh...
[4 replies] Last: I see it now. Thanks for your help! (by chaos407)
Program that reads its own .exe file
 
I need help making a program that can read its own .exe file, and then writes out the ASCII codes inside it. #include "stdafx.h" #include <iostream> #inclu...
[3 replies] Last: Iterate through each line and replace the non-ASCII characters with sp... (by AbstractionAnon)
Help. Don't know how to figure out this For loop exponents question.
 
So I'm supposed to create a base and an exponent variable. Then by using a for loop I should be able to output the result. E.g 2 raised to the power of 2 should...
[1 reply] : It looks to me that you really don't understand what "power" means in ... (by jlb)
October 2015 Pages: 1... 1920212223... 57
  Archived months: [sep2015] [nov2015]

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