Beginners - May 2013 (Page 12)

arrays addition
can anybody just sort it out,, that whats the source code to write the answer of arrays after addition.. in the below code i used 2 arrays as arguments by using...
May 26, 2013 at 2:30pm
[1 reply] : int addarray(int arg , int length){ int r=0; for (int i=0; i<length;... (by vlad from moscow)
Rand isnt random enough, please help!
Im trying to make a program that will randomly pick a number between 1 and 1million, but it just isnt random enough and I cannot get an output which even reache...
May 26, 2013 at 1:57pm
[10 replies] Last: > if you want something even more random look up: > http://www.cpluspl... (by JLBorges)
Working code, but it's one giant "main" function. Help breaking it up?
Alright, after much frustration I have a code that does what I want. The problem is that I'm not comfortable with functions and as a result I've got one big ugl...
May 26, 2013 at 1:45pm
[7 replies] Last: @andy @JL Thanks a lot for the extensive feedback. (by acemanhattan)
Array pointer arithmetics
Hello all, I have a question regarding array pointer arithmetics. If I execute the following code: char* l1 = new char ; char* l2 = new cha...
May 26, 2013 at 11:54am
[1 reply] : First of all the code has undefined behavior. It is not necessary that... (by vlad from moscow)
Why is object initialized this way?
Chap on classes. Why are objects initialized this way? "Height myHeight(Height(6,3));" This works just as well. "Height myHeight(6,3);" // Cl...
May 26, 2013 at 10:03am
[5 replies] Last: thx dude, you rock. (by Rechard3)
What's wrong with this coding?
Guys, do you know what's wrong with my coding??? it can't execute --" please help me find and fix the error #include<iostream> #include<iomanip> #incl...
May 26, 2013 at 9:52am
[2 replies] Last: so what must i do with line 71? change to strcpy? or use another code? (by marvin77)
by diablo
Dev c++ problem
Hi guys.I just did a program that converts arabic to romanic numbers in Borland c++ and it works fine.Although it may sound a noob question im asking for some h...
May 26, 2013 at 9:44am
[4 replies] Last: I'm not considering how to make the program work. But if you really wa... (by Chervil)
by myregm
'cout' : undeclared identifier
I've a problem with my visual studio. I use windows 7 64 bit and I installed microsoft visual studio 2010 on it. For all the programs that I write, I have a...
May 26, 2013 at 7:08am
[1 reply] : Whatever your learning c++ from is likely out of date. In modern c++ c... (by Lachlan Easton)
by Leon23
The "ate" mode!
Hey guys! I am confused about that guy called the "ate mode" in file handling. How do I use it? I mean, it didn't work the way I read it should. Also I want t...
May 26, 2013 at 5:50am
[5 replies] Last: Thanks! That pretty much explains everything! :) (by Leon23)
by jsch
loop help
Hi, I've trying to do this program: Write a C++ program that determines a letter grade for a student based on two test scores. For a numeric average x, the ...
May 26, 2013 at 5:45am
[3 replies] Last: I didn't know how to make the counters for the grades...thank you, som... (by jsch)
RPG coding help
I'm not sure what the meaning of Line 53: invalid operands of types 'int' and 'int()' to binary 'operator-' is... I'm a beginner and I'm just trying to ...
May 26, 2013 at 3:01am
[5 replies] Last: Thanks, you're awesome. Like I said I started today and just need to f... (by battleuser001)
Need help with next step
Ok so, the code I have below compiles, however I am not sure what I need to do to accomplish my next step. 1st question : As you can see I have tons of ints....
May 26, 2013 at 2:05am
[7 replies] Last: Here is the code, compiled and works just like before, but with the ne... (by Kalithian)
up and down are left and right
I made started a game using the tutorials from 3DBuzz, and all is fine- except that when I run it, up(w) moves me left, and down(s) moves me right. Please help!...
May 26, 2013 at 2:01am
[4 replies] Last: that fixed it thank you very much :D !!! (by CalvinCreator)
Bruce Schneier has a wrong function !!!
i got this source from a book of Bruce Schneier,Applied cryptography. it's a shift register pseudo random number generator. i read all of the function, i anal...
May 26, 2013 at 1:06am
[2 replies] Last: man, you're a genius. thanks. (by Rechard3)
by Andym
Help with functions
its been a while since I've posted here....been busy with other classes and such but I am back and need help with functions. While I understand the concept, ...
May 26, 2013 at 12:03am
[3 replies] Last: sorry, I forgot to let you know that i fixed it like you advised and i... (by Andym)
get and put
Why does the following result in the char entered followed by an 'a' and then a consecutive 'a' on a newline. Should it not just give one 'a' after the entered ...
May 25, 2013 at 11:27pm
[3 replies] Last: it works with this: int main ( ) { char ch; while (cin.get(ch) &... (by Ramzi89)
Compiling a program for my friends to run.
Write your question here. I'm learning C++ and have written a little game that runs fine on my PC but when I try and send a friend the .exe it says that they...
May 25, 2013 at 11:06pm
[2 replies] Last: Hi, You need to disable the CRT by going to : Project -> Properties... (by closed account G309216C)
Use of #undef?
What's the difference if I do this #define pi 3.14 #define pi 3.142 rather than this #define pi 3.14 #undef pi #define pi 3.142 ...
May 25, 2013 at 10:49pm
[1 reply] : In the case of a constant such as pi, it's better to use a const rat... (by Chervil)
adding new C++ code with a DLL in an exe?
Ok sorry for being so newby im trying to learn what i can in my spare time which is not a lot of time. ok so, i have a game server for a game (Knight Online) w...
May 25, 2013 at 10:31pm
[no replies]
by symbit
Learning to program before language?
I'm a budding programmer working on learning C++, but while doing that, I've been wondering about how I should go about learning programming, not just syntax. A...
May 25, 2013 at 10:11pm
[4 replies] Last: I'll be sure to check out both. Thanks! (by symbit)
May 2013 Pages: 1... 1011121314... 66
  Archived months: [apr2013] [jun2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.