Beginners - October 2015 (Page 50)

How to imply chances?
 
Hi, Can you help me in my game, like the program will randomly choose the Emperor by chance 80%, slave 10%, and citizen 10%. Here is my code, srand (ti...
[4 replies] Last: @MiiNiPaa Very good! (by Norm Gunderson)
by Chubby
Tree
 
Hello, I need help on create a three child for tree. My code is only create the left and right. It display somehow correct. Other problem is how can display...
[no replies]
by Dazzer
Q about static int
 
Could anyone explain to me why, each time GenerateID() is called, it doesn't re-initialize s_nID back to 0? Thanks! ..........D int GenerateID() { stat...
[3 replies] Last: Thanks firedraco, now i get it! (by Dazzer)
How to imply rounds?
 
Hi I'm coding a game and I want to add Rounds system but I don't know what is/are the syntax, can somebody help me like give me an example code?
[1 reply] : None of us understand what you mean by "rounds". Post some code and de... (by Radar)
by iamdl
How to fix this?
 
How to fix this? #include <conio.h> #include <stdio.h> int main() { char status int temp clrscr(); printf("road status is (type S when safe or any letter whe...
[4 replies] Last: ok thx ill read them all (by iamdl)
const questions
 
Hi everyone, short question- why does this implementation is illegal ? if it was just integers it would work.. int a=6,b=4; const int*p=&a; int *r=...
[3 replies] Last: thanks ! helped me a lot to understand (by Mor1994)
Help ! c++ even and odd
 
my prof give me this problem but i have no idea how to do it . im new to programming . sorry for my bad english :D . this is the problem : Create a progra...
[8 replies] Last: thank you :) (by qeraldxD)
Whats wrong with my bool?
 
close no help here
[2 replies] Last: You can't defined functions inside other functions, so you have to put... (by Peter87)
Clarify a couple of things in and example code
 
Hey guys! I'm a total beginner in C++ but I have a pretty strong background in ActionScript 3, Java and PHP, so I only need to clarify a couple of C++ things wh...
[2 replies] Last: Thank you very much :) After your second example it turned out a lot... (by caseyryan)
Help with errors
 
Write your question here. I am getting these errors Error 2 error LNK1120: 1 unresolved externals c:\users\ira\documents\visual studio 2013\Projects\ConsoleAp...
[2 replies] Last: Date d2(2, 12, 2010); Show definition of three-variable constructor ... (by MiiNiPaa)
by GFring
Coordinates problem with classes
 
Create a class named Coord Class has 4 private data items int xPoint; int yPoint; int zPoint; floa...
[1 reply] : You set the parentheses wrong: return sqrt(pow ( (float) ( getxPoi... (by coder777)
C++ Program with quadratic equation, for unreal and real solutions
 
I made a quadratic formula code that works - it accepts the numbers for A B and C, but it doesn't tell you when a solution is real, or unreal. How do I make it ...
[18 replies] Last: #include <iostream> #include <cmath> #include <iomanip> using namesp... (by closed account 48T7M4Gy)
Something Similar to LCS
 
Well this is my assignment: https://github.com/SytemProgramming2015FallatNTU/Announcement/wiki/Homework-1 Don't worry about the due date. I'm working on drawin...
[no replies]
Comparing two strings without functions that do it for you
 
I am definitely a rookie in all of this. My C++ teacher has instructed us to create a program where the user inputs two sentences. Those sentences are stored ...
[11 replies] Last: Thank you! This worked. (by Calpernicus)
Please help me construct this program
 
I'm writing a basic program to help me with DJing. I only took one class "Intro to Programming" about a year ago. What I have is numerous songs with different k...
[1 reply] : In the long run you should consider using arrays, vectors or the best ... (by closed account 48T7M4Gy)
c++
 
I am new in c++ so if anyone could rewrite ans for me then it would be helpful.please Write a program to display the Japanese Yen value of the balance of up ...
[3 replies] Last: Code picked up from the school cutting room floor? We'll probably neve... (by closed account 48T7M4Gy)
Lab Assignment
 
i need help with my code and i am so stuck and i don't where my errors, i seriously need help fixing it, it supposed to be a program that displays what your bal...
[11 replies] Last: Well done. There is no harm in trying. Good luck. (by closed account 48T7M4Gy)
I need some assistance
 
Write your question here. Hi I am new to programming and I am having some difficulty with my latest assignment. An international phone company has 3 different s...
[8 replies] Last: OK....Thanks again (by ryanmac75)
result of operator
 
please explain what is going here step by step #include <stdio.h> void main() { int a=2,b=1,c,d; c=a<b; d=(a>b) && (c<b); printf ("c=%d, d=%d\n", c,d);...
[no replies]
Need Help understand a few lines from an array code
 
Hi, i needed help understanding the following code. I needed help understanding the bolded line. Shouldnt the numberUsed be one less than the index value since ...
[no replies]
October 2015 Pages: 1... 4849505152... 57
  Archived months: [sep2015] [nov2015]

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