Beginners - March 2010 (Page 10)

attaching a random number to an array
 
so here's the deal in my class assignment I'm supposed to generate a random number and use it to open a file in an array from my input file... but I don't reall...
[no replies]
Why did I get this output?
 
So I was experimenting with the "for" loop stuff, seeing what all would give me error messages and stuff. Well here is the code I had: #include <iostream> ...
[1 reply] : if, for, while, etc statements all run the instruction or code block w... (by Disch)
Need some info!
 
Hi, I'm actually a young boy (14 years old) who thought this might be a fun thing to learn. It's a but difficult for me, but I'm getting the hang of it. I ha...
[10 replies] Last: Sad day for all (by OnymousIllusion)
by KezRst
Simple Program
 
I made this program to duplicate an error I'm receiving. When I run the program I receive: Snake.obj : error LNK2019: unresolved external symbol __imp___...
[1 reply] : Hey Aaron. First I'll say that I'm no expert (you probably know more t... (by sammy34)
int main() why does this work with float?
 
#include "header.h" float mult ( float x, float y, float z ); int main() { float x; float y; float z; cout << "input three n...
[11 replies] Last: Dacaster13 didn't interperate the question the same way I did. I saw i... (by Computergeek01)
by scokah
class variable trouble
 
I am having some trouble on a project and its probably something simple but I cant figure it out. It is my first time working with classes and I've been messing...
[1 reply] : I figured it out and its really stupid. Its was a problem in my main f... (by scokah)
Is it possible to inline assembly language inside c++ program?
 
I know its possible with c but I am aware that there are minor differences between c and c++ even though c++ is considered a superset of c for the most part
[2 replies] Last: The standard syntax is asm("mov eax, 0"); (by Bazzy)
by bomben
fork and counters
 
Hi all, I tried to use fork() in a test program. The idea was to assign a different task at each process (a simple multiplication). In the end, I would...
[2 replies] Last: Thanks for the explanation and the code snippet! That worked! Many ... (by bomben)
Clearscreen flicker...
 
Im trying to make a roguelike game, and everytime you move it needs to clear the screen then reprint it, but I didnt use system(cls), I used this as a function:...
[5 replies] Last: No. http://en.wikipedia.org/wiki/Screen_tearing By updating only th... (by Duthomhas)
Question about 'using namespace'.
 
Should I use 'using namespace'? The reason I am asking is because I'm using multiple libraries with each having their own namespaces. It seems as things grow ...
[14 replies] Last: My two cents: You should always feel a bit bad when using "using" - th... (by imi)
by Wolf
Use of pointers
 
hi everybody!! I'm trying to make use of pointers in this code but it didn't work! i followed a similar working codes. I have an array of 50 cells and i p...
[1 reply] : I have no problem running your program. The only thing I see is that y... (by Duda)
comparing 2 objects withing a class
 
In my CS class, I have to make a class Rectangle2D and this is one of the required functions: A function contains(Rectangle2D &r) that returns TRUE if rectangle...
[1 reply] : Nevermind, haha. I figured it out:) in my header file I forgot an &. ... (by BradyT88)
gravity
 
I'm trying to compute the gravitational force of two objects. I can get it to compile but can't get the program to display the result of the Constant or the ex...
[5 replies] Last: thanks,I didn't realize I did that the program is working great now. (by xxlt3xx)
by ToniAz
return more than one value in a function
 
Hello everyone, I know that a c++ function could return only one value, well what if i need to return more than one value?? Eg. A function that scales the...
[4 replies] Last: http://www.cplusplus.com/forum/beginner/18489/ :-] (by Duthomhas)
Can anyone lend a hand for a C++ assignment about hotels?
 
I am extremely confused and frustrated. I hate waking up to the thought that i will never be able to even start a C++ assignment. I signed up for this class and...
[no replies]
by Tomdon
Passing strings through C++
 
Using these rules below, I must make a program that takes to inputs of time on a 24 hour clock. Depending on whether time1 is higher or lower than time2, say t...
[no replies]
a problem with my coding
 
So I am just starting to learn C++ and I was asked to make the following program The program is suppose to reads in letter grades for a class of any size and...
[2 replies] Last: lol I feel stupid now, I knew it was something simple as declaring the... (by paulliwali)
1 dimensional array of 1000 pseudo-random integers
 
hi guys pls help me with this question; --------------------------------------------------- Write a C++ program that uses a 1 dimensional array of 1000 pseudo...
[10 replies] Last: im not sure bcoz it does return 50 as most common number all the time ... (by blaze745)
String in a Structure
 
I have a structure defined in a header file like this struct design { string name; int sheetsInStock; int envelopesInStock; int notepadsInStoc...
[3 replies] Last: You probably used std::string name instead of string name. (by Duda)
Cannot get my fractal to work.
 
#include <windows.h> const int CLIENT_SIZE_X = 400; const int CLIENT_SIZE_Y = 400; const int SELECTION_TOO_SMALL = 4; struct DRect { double left, top, r...
[3 replies] Last: it works fine for me in vc 2008 express. and no it isn't a win32 conso... (by chimera)
March 2010 Pages: 1... 89101112... 34
  Archived months: [feb2010] [apr2010]

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