Beginners - November 2010 (Page 5)

by lare26
undefined reference error
 
I am getting a brand spankin' new error when I compile my code. Can someone clue me in, please? [outputC:\MinGW32\lib\libmingw32.a(tlssup.o):tlssup.c|| undefin...
[4 replies] Last: I screwed up my toolchains, somehow. Thanks for responding, though Ble... (by lare26)
Memory issue
 
I've recently been playing around with Allegro and I managed to make a very simple 2d game. It's a grid game which loads up a 5 by 5 grid of images. The placeme...
[1 reply] : I've just added destroy_bitmap(buffer) on line 28. It seems to have so... (by porl123)
passing arguments by reference
 
I'm currently writing a code that returns the area and perimeter of a triangle. It gets user inputted side lengths and calculates from there. When I try to comp...
[4 replies] Last: have a look: #include<iostream> #include<cmath> #include <conio.... (by chipp)
logical size of a character array
 
I'm studying for loops now and I'm trying to incorporate a bodiless for loop that will give me the logical size of a character array. The array's physical size ...
[4 replies] Last: #include<iostream.h> main() { char string = "I am browni3... (by Browni3141)
Left positioned?
 
Dear Guys, I'm reading the C++ Data Structures book by Nell Dale and there is an expression like "left positioned". I copied some of the text. I tried to loo...
[2 replies] Last: What it means is that each time you try to read from the file again it... (by Duthomhas)
need a code for this problem!!!!!urgently!!!!
 
I need help with an assignment that is due on monday and i dont know how to solve it!!!!! question is: One program should perform all the tasks given in the f...
[11 replies] Last: hi again, show us what you have got so far, so we can see what need... (by shredded)
changing positions using arrays
 
What i am trying to do is first store a number of values in a 2D array with a constant of only 3 columns. The first column represents x values, the s...
[no replies]
by Rave
program not holding assigned value, sets it to null
 
Hello, The program compiles, but its not doing what it suppose to. The program creates a tree and connects to the root, but when it exists out, after creating i...
[3 replies] Last: Help please. (by Rave)
gsl random number casting error
 
Hi, I am trying to use gsl libraries for simulation variance gamma process. I am getting this error (error: invalid operands of types ‘gsl_rng*’ and ‘d...
[no replies]
does not name a type
 
i have seen this problem in multiple places but never a solution as all solutions seem to infer a compiler error. I have a header that includes all other fil...
[2 replies] Last: none of them include player.h both only include the super class they i... (by wash me socks)
What is the point of Private?
 
I've been learning C++ for some weeks now, and I have already developed a relatively complex program (an Arkanoid clone in SFML!! still in alpha version, though...
[3 replies] Last: I may be wrong on this, but it is my understanding that c++ was design... (by wtf)
testing user input before storing
 
so lets say i ask a user for input, "type in a number". how do i test it so if it is an integer, i assign it to one variable, then if it is a different type, i...
[7 replies] Last: rational<int> c1; int c1; cin >> x; for(int i = 0; i < x.le... (by gametack)
by lare26
template should work
 
I created my very first template. I had the first 2 parts by themselves and they worked fine. I added a third and now the first doesn't work. What am I doing wr...
[2 replies] Last: Dude.... i feel like such a moron. At least I would if I hadn't been u... (by lare26)
Printing chars in char array individually with spaces
 
I'm trying to write a function that prints out each character of a char array one by one. Here's what I currently have: void tprint(char sSay , int time) ...
[2 replies] Last: c<strlen(sSay) works like a charm. Thank you very much! :)... (by garlandman)
by firix
istream and ostream operators of Vector
 
Hi I could not write istream and ostream operators of Vector How should I write. struct floatt{ float f ; floatt() { for (int k = 0; k < 4; k+...
[11 replies] Last: thanks... (by firix)
changing positions using arrays
 
Hello, i am very desperate for help on this because it seems that i've tried everything yet cannot get this working even though i don't see any flaws in my logi...
[no replies]
Pass by reference (Function within function)
 
Let's say I have this function that I use to change some values in an instance of the class employer. I pass the instance by reference. Q1) Is it possible to ...
[2 replies] Last: Thanks for the answer I was hoping for. (by kkostas)
OpenGL - Changing from immediate mode to vertex buffer objects
 
I am using OpenGl and SDL and I have reached the point in my life where I find out that immediate mode is deprecated.I have tried reading some tutorials but the...
[no replies]
by mur123
double to int
 
Hi All, I need to get a value into an int variable from a double variable, and I keep getting errors. The line I'm using is: intValue1=dblValue1+dblValue2; ...
[3 replies] Last: You can convert like this double y = 3.1222; int x = int y;//this w... (by LittleQuick)
Class Relationship
 
What does it mean when the class is declared in this form, and the data members thereof?: class A : private B { //... //... //... };
[1 reply] : http://www.cplusplus.com/doc/tutorial/inheritance/ scroll down to 'in... (by hamsterman)
November 2010 Pages: 1... 34567... 42
  Archived months: [oct2010] [dec2010]

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