Beginners - March 2012 (Page 37)

Unsure about Errors in OpenGL and classes
 
I am getting errors and I am unsure how too fix them,I have a circle class and a triangle class and the triangle one was working until I created the circle one ...
[3 replies] Last: thanks guys, just got it , i also accidentally had copied the triangle... (by RyanCook1993)
Confused: Need help with classes problem
 
Hello, I am quite confused on this program we are supposed to write using classes. The first part of the question is like this: 1) Write a method called c...
[1 reply] : Sidenote: You could provide a constructor so you can initialize a Wor... (by georgewashere)
by ACE123
How to create simple database?
 
Hey, I'm new to C++ programming and trying to create a program that stores 3 string inputs (s1,s2,s3), entered in keyboard. I made an excel csv file. The input ...
[2 replies] Last: Thanks so much, it now works exactly how I want. Thanks! (by ACE123)
Happy Birthday Code Problems
 
I am writing a program for my friend on his birthday, and in the beginning it looks like Glados (play portal-its a robot) overrides my code. Is there a way to...
[2 replies] Last: k thx (by trexmix)
Error with program
 
Hello all! So... I have wrote a function to respond in a certain way based on what part of the map the player is located (each represented by a number in a dyn...
[2 replies] Last: Ah that probably is the issue. locy - 1 and locy + 1 both have potenti... (by ResidentBiscuit)
by JetX9
input and print functions...
 
Okay. On this particular assignment, we have member functions defined as const. One of them is called print, and looks like this: void print(ostream &w) co...
[9 replies] Last: That...really doesn't help me in the least. Oh, sorry. I thought yo... (by Moschops)
Help me figure out a solution...
 
This isn't a homework assignment but I need some help. After banging my head against my desk for thirty minutes I THOUGHT I had a solution but I can't seem to g...
[2 replies] Last: blahhhhhhhhhhhhhhhhhh are you kidding me? Thanks for clarifying... I g... (by georgewashere)
by poda19
gcc assembly output
 
hi i am practicing reversing programs and i thought it would be helpful to view the assembly code of my own programs to learn about how they look in assembly. ...
[1 reply] : ok i got it it was the AT&T syntax i sould use -S -masm=intel to produ... (by poda19)
by krityx
Object not actually being modified by a class method
 
I have this constructor for my rational class: rational(int a,int b) { num=a; denom=b; simplify(); } simplify() is a private method within the same ...
[2 replies] Last: Oh yeah that was it.. gcd was -1 and it was dividing by -1 ... Thanks. (by krityx)
Doing calculations with functions
 
This is my assignment: Problem - Write a program that asks for the user’s height, weight, and age, and then computes clothing sizes according to the formulas...
[15 replies] Last: no problem, helping others is also a great way of learning, wasn't ent... (by Zephilinox)
data structure problem
 
Here is my basic code to understand the usage of data structure. The problem is when I run it, on the code line 32 it prints cout<<"fulname : "; and co...
[5 replies] Last: This is not an unusual problem. Can't we just create some functions t... (by cire)
by swp
splitting a number into separate digits
 
im writing a homework program, no im not asking for you to do it for me, but its converting a number of an arbitrary base into a decimal number. i know how to c...
[1 reply] : y = x % b assigns last digit of x in base b to y. y = x / b assigns a... (by hamsterman)
rand not applying correctly?
 
Hi I am trying to generate a random number between 1 - 100 using the example on this site. It works...sort of, except the number is never between my given range...
[19 replies] Last: ++i just adds one to i, \n simply means end the line, so that you don'... (by Zephilinox)
by atjm88
Got Error in Program
 
#include <opencv/highgui.h> #include <opencv/cv.h> #include <tchar.h> int _tmain(int argc, _TCHAR* argv ) { blobs = CBlobResult( img, NULL, 10 0, NULL ); //s...
[3 replies] Last: A library won't help. You need to create them. Here is how you would c... (by Moschops)
by Ch1156
Dinosaur battle text game help please
 
Hi, im making a text game where you battle a dinosaur in an arena, but i'm a bit stumped as to how to make the dinosaur randomly choose attactk and use them aga...
[4 replies] Last: #include <iostream> #include <string> #include <ctime> #include <std... (by Zephilinox)
optimization of this algorithm?
 
void teest(int *prm1, int prm2) { int m, n, tmp, flg; for(m=prm2-1; m>0; --m) { flg = 0; n=0; while(n<m) { if ( prm1 ...
[1 reply] : Please don't double post: http://www.cplusplus.com/forum/general/64659... (by MrHutch)
Fetching how long a function runs
 
I have a function that is running quite slowly right now and I am looking to speed it up. The first part of this though is finding out exactly how long it takes...
[4 replies] Last: You should use a profiler http://www.cs.utah.edu/dept/old/texinfo/as/g... (by ne555)
fatal error LNK1169
 
Hi I am receiving this error when i compile the program: fatal error LNK1169: one or more multiply defined symbols found Any idea about what cause it and h...
[13 replies] Last: It worked. tnx Moschops for identifying the problem and tnx clanmjc fo... (by crawler)
assignment
 
for(int k=0; k < 6; k++) { int x,y; inLocn.open("locn1.dat"); inLocn >> x; cout << x; ...
[6 replies] Last: So read it all in in one go rather than bit by bit as the for loop ite... (by njkroeze)
While Statement using a counter entering grades and output avg
 
The problem is is that when I compile the program it is allowing me to enter as many grades as I want and that is what I want but what I need to be able to do i...
[3 replies] Last: I'd suggest not to place the green check mark if your issue isn't solv... (by coder777)
March 2012 Pages: 1... 3536373839... 71
  Archived months: [feb2012] [apr2012]

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