
please wait
by bjl311
what am i missing in my code?
|
i had to make a code for a GPA converter. every thing works fine when I put in a number like 83. But when I input a number with a decimal like 83.5 it prints ou... |
Feb 26, 2016 at 3:33am
[2 replies] Last: Thats because 83.5 is not covered in your conditions. You have an opt... (by bjl311)
|
by Andrewcen16
Help with a simple while statement
|
Write your question here. // the code needs to display the string twice on the first line //four times on the second line and six times on the third //... |
Feb 26, 2016 at 3:13am
[4 replies] Last: while (second < temp) { for(int i=1; conditio... (by Arslan7041)
|
by Apple1234
selecting strings
|
I'm trying to make a game. I want the program to randomly pick from the given strings. How do I do that? #include <iostream> #include <string> using na... |
Feb 26, 2016 at 3:00am
[3 replies] Last: "Random number engines generate pseudo-random numbers using seed data ... (by JLBorges)
|
by iamharshit
c++ pointers
|
why my program crashes,if i do this? int *p; *p=2; cout<<p<<endl; |
Feb 26, 2016 at 2:42am
[1 reply] : A pointer needs to point to something . p is not initialised, it cont... (by Chervil)
|
by bankaijoey
Help with C++ code for Run Time Analysis
|
I keep getting a Access Violation error in visual studio when i run this code. It stops at "A = a / (i + 1);" Thank You. #include <iostream> #include <t... |
Feb 26, 2016 at 2:09am
[2 replies] Last: Thank You so much. The smallest things really matter dont they? (by bankaijoey)
|
by Dontdoit2306
Student Information
|
Write a program that displays the following information about your self: your name, the computer languages you know (you can write “none”), your favorite ... |
Feb 26, 2016 at 1:55am
[3 replies] Last: Thank you. well i had the class but ended up dropping. probably just t... (by Dontdoit2306)
|
by stealthboy
Understanding operators?
|
Hello, I'm struggling a bit to understand what the difference is, say, between ++n and n++. These were some examples I was given, could someone break them down ... |
Feb 26, 2016 at 12:41am
[7 replies] Last: Actually you should be thinking it in terms of a mathematical expressi... (by YFGHNG)
|
by qwaserdf
Modifying a visual studio project
|
Hello to everyone. First of all I am not sure if this is the right forum to ask it, but I am quite sure that my question will be easily answered by any of yo... |
Feb 26, 2016 at 12:37am
[no replies]
|
by keanedawg
Is my random number generator failing?
|
So I'm using the classical srand() and rand() functions to generate random numbers to perform a stress test. But when I look at my output, I feel as though the ... |
Feb 25, 2016 at 11:43pm
[3 replies] Last: std::cout << "Max value returned by rand: " << RAND_MAX << '\n' ; O... (by cire)
|
by Respect
Fiboccani Series.
|
#include "stdafx.h" #include <iostream> int main(){ int x; int y; int z; y = 1; std::cin >> x; for ( y = 1, z = 0; y+z < x;y++,z++){ y = y + z; st... |
Feb 25, 2016 at 11:12pm
[5 replies] Last: This is based on the original code: #include <iostream> int main() {... (by Chervil)
|
by PBachmann
C++ question about a code with strings
|
This code is supposed to split Num into 3-digit segments and assign those segments to Num2. #include<iostream> #include<string> using namespace std; ... |
Feb 25, 2016 at 9:02pm
[1 reply] : From ASCII table: Dec Chr 49 1 50 2 51 3 52 4 53 5 54 6 1... (by keskiverto)
|
by stealthboy
Help with some simple C++ questions
|
Hello, I'm currently reviewing for my first computer science exam and one of our study guides has some fill-in and true/false questions that I wanted to make su... |
Feb 25, 2016 at 8:04pm
[1 reply] : To access the value in memory pointed to by a pointer variable, you m... (by TarikNeaj)
|
I need to use a constant string to take a first and last name, how? |
Write your question here. I need to write a constant string function that takes a users first and last name all in one input. Then the user enters another name... |
Feb 25, 2016 at 7:30pm
[1 reply] : You could make it like this: string full_name ; cin>>full_name >>fu... (by jgg2002)
|
by Respect
Develop a program that uses a randomly generated number to select 1 of 3 functions to show the user
|
#include "stdafx.h" #include <iostream> int main(){ int a; a = (rand() % 3) + 1; std::cout << a; switch (a){ case 1:int x; x = 1; { std::cout << "F... |
Feb 25, 2016 at 7:06pm
[6 replies] Last: Thanks TarikNeaj for the wonderful knowledge! (by Psalazar2016)
|
by Bertdaddy718
Basic Employee Database for School Project
|
Hello guys, I have a basic program due today. This is the Text of the project. For some reason ,I keep getting an error code. The code is posted below the te... |
Feb 25, 2016 at 6:50pm
[8 replies] Last: For some reason folks, I think I"m very close....I tried making it to... (by Bertdaddy718)
|
by Yawzheek
RAND_MAX Help
|
Well, the internet isn't much of a help, since it doesn't really give any indication how to, or if it's even possible, and in a few cases it just assigned a var... |
Feb 25, 2016 at 6:35pm
[2 replies] Last: What does your line 15 does then, if you really are stumped? Oh. Oh... (by Yawzheek)
|
by rgxq7
Problems with a (relatively) simple program
|
I have recently decided to get properly into c++, and my main method of learning so far has been problem solving. My latest project is a would-be game of sor... |
Feb 25, 2016 at 6:11pm
[5 replies] Last: On your random: Since you need a range from 0-5 or 0-6 you'll need to ... (by jgg2002)
|
by Gondvanaz
Where to put \f?
|
This is that game called "Guess the magic number". I want to put \f (new page) in my code in order to prevent the next user who will try to find out the magic n... |
Feb 25, 2016 at 6:07pm
[2 replies] Last: And use the function right after the user inputs data (by jgg2002)
|
by Respect
Write a program which finds the factorial of a number entered by the user.
|
#include "stdafx.h" #include <iostream> int main(){ int x; int y; y = 1; std::cin >> x; for (y = 1; y < x; y++) x = x*y; std::cout << x; } I know x*... |
Feb 25, 2016 at 5:26pm
[2 replies] Last: #include<iostream> using namespace std; int main(){ int x; cin>>x;... (by jgg2002)
|
by Respect
Develop a program to convert currency X to currency Y and visa versa problem.
|
#include "stdafx.h" #include <iostream> #include <string> int main(){ int piasters; int pounds; std::cout << "Convert pounds to piasters or vice versa, do ... |
Feb 25, 2016 at 5:06pm
[4 replies] Last: Thanks so much! (by Respect)
|