Beginners - May 2015 (Page 21)

Loop Question
 
Dear All, Is it possible make below NPV calculation automatically? I mean can we use any loop for the following; NPV= C0 + (C1/(1+r)) + (C2/(pow(1+r, 2)))...
[1 reply] : const unsigned int N = 5; short C ; C = -2000; C = 500; C = 225;... (by Mathhead200)
a
 
aaa
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
by nruiz8
Trouble with my Computer Assistance Instruction Program
 
My output for my assignment is supposed to be something like this: What is 10+5=? 7 Incorrect: 10+5=15 What is 9-4=? 5 Correct! (etc) Your total score is ?...
[2 replies] Last: I placed the second code you sent me here: if(OP==1) ///Subtraction)... (by nruiz8)
by nruiz8
How to fix my Computer Assistance Instruction Program
 
For an assignment, I had to write a program in which it has to do the following: Ask a student for the answer to 10 random arithmetic problems consisting of a...
[3 replies] Last: on this line: if(youAns==correctAns) "youAns" only gets set only ... (by mutexe)
Need help on search algorithm!
 
Create a program that already has 5 integers assigned by use. Now, as program runs it will ask user to enter integer, if ineteger is already stored in array it ...
[12 replies] Last: Create a program that already has 5 integers assigned My instructor... (by mutexe)
Vector sorting with different objects in it
 
Hello all, I am trying to come out with a sort function, previously, with some help, manage to do a sort that sorts base on a variable that is stored into an ob...
[3 replies] Last: Oh, understood, have change and it works now, thanks. (by tokillmob)
Alphabetical order
 
As you know problem is Alphabetical sorter but without vowel letter. What do you suggest me? #include <string> #include <iostream> #include <algori...
[3 replies] Last: another method. #include <iostream> #include <algorithm> int main()... (by anup30)
Programming for Windows in a Linux environment
 
Hello I am programming a program, which should only be able to be ran on Windows. But, I've got a Linux machine. So, I've got a problem. How do I make it...
[7 replies] Last: [quote=OP]Because all my tools and setup is on Linux. I like programmi... (by Computergeek01)
Want to display 00
 
Hi, I want to display 00 by using data type int, but this is displaying only one 0. Please help me, how should I display 00 ? Thanks. #include<iostream> usi...
[1 reply] : Hi, type "iomanip leading zeros" in Google: you should find all the in... (by minomic)
by Shrek
Making a soundboard?
 
Is there anyway I could make a soundboard with C++? Just a simple enough program with some buttons (So I want to create a GUI, some image files as the buttons a...
[3 replies] Last: Thanks for the information. (by Shrek)
by savanh
question
 
hello friends, i have this code, i know it is not complite even but i try to help my self to understand how supscript operator overloading work, so can you plea...
[11 replies] Last: Ok, thanks and sorry, I didn't plan on attacking you either. Next time... (by TheHardew)
by TAKU62
RUN TIME ERROR
 
In my first homework about class, I have to create a program similar to a social network that finds the max amount of friends among those existing IDs. A pair o...
[2 replies] Last: +1 mutexe addendum : when run in debug mode. What type of run-tim... (by Computergeek01)
by kunz
assignment question
 
Need help in a assignment question can some one help me please
[3 replies] Last: Why not? (by MikeyBoy)
by FBC
Problem with linking libraries in Code blocks C
 
So i am trying to include the crypt.h library to my code and the compiler gives me this message http://prntscr.com/752bqn . So i downloaded the library from htt...
[2 replies] Last: #include <stdio.h> #include <stdlib.h> #include <crypt.h> int main()... (by FBC)
Stack
 
Does anyone understand what it is meant by: "When fib() terminates, the topof-stack pointer is relocated to its former position.The new values aren’t erase...
[3 replies] Last: Wow, that's quite a bit to digest. But yea, it's much clearer now. Tha... (by Drakonaut)
by Shrek
Line 5: error: expected unqualified-id before '{' token|
 
I can't see the problem with this code, can anyone tell me what I am doing wrong? #include <iostream> int main(); { cout main <<"GET OUT OF HERE, Y...
[10 replies] Last: Ok, I will check the link out, thanks. (by Shrek)
Need help with small issue on simple begginner decoding program
 
Any help can be appreciated. The code is supposed to decode a string for example "!^&*" should output to "abcd". Right now it just decodes the first letter like...
[4 replies] Last: I changed all of the zeros to i's on lines 51,52 and it caused an out... (by pnoid)
Need help, please!
 
Hi, I'm not sure if I'm heading in the right direction, but here's what I need to do : In a right triangle, the square of the length of one side is equal to the...
[5 replies] Last: Nvm, it turns out the numbers I was inputting could not be a right tri... (by closed account yR9wb7Xj)
Ongoing Loop
 
On line 39, when I try to test the while loop by entering in only 1 character, the loop goes on forever, and spams all of my black box. #include <iostream> ...
[4 replies] Last: I used the first one and it worked, but not the second one. Weird. Tha... (by CplusplusHelpPls)
Tortoise and Hare Race
 
I can't get the hare to move at all. I checked and I can't find anything wrong in the code. Anyone willing to help me out here #include <iostream> #inclu...
[3 replies] Last: thank you guys. My bad.. really appreciate it (by Agalito)
May 2015 Pages: 1... 1920212223... 40
  Archived months: [apr2015] [jun2015]

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