Beginners - October 2010 (Page 12)

by abcxyz
using graphics in linux-ubuntu c++
 
i cant even find its header file anywhere?!? i've used it in turbo c++..header file being graphics.h....n have written many programs using it too.. i just wan...
[5 replies] Last: thanks (by abcxyz)
A simple problem of openCV(mul function)
 
Mat_<double> const affine = (Mat_<double>(2, 2) << 0.5, 1, 0, 2); Mat_<double> coordinate = (Ma...
[no replies]
Validating my date string & exit process
 
/* * book.cpp * *Simple program for storing array of book titles and published dates * * Created on: Oct 9, 2010 * Author: Alpha */ #inclu...
[7 replies] Last: You only instantiate one object of type book ( publishedTitle ). The... (by filipe)
by spycow
Why is my program only reading last line of file?
 
I'm brand new to this and I don't know why my program (posted below) only reads the last line of data from the input file. Our assignment is to write this prog...
[7 replies] Last: Duoas, It'll help once I get that far. I'm in something like C++ f... (by spycow)
Why should i use this? (1,2)
 
Hello everyone! I wrote the following code where i have two functions which do the same thing but in an different way. Take a look: #include<iostream> using na...
[24 replies] Last: :O I hadn't checked the link for so long (bookmarked of course :) ) an... (by MottMan)
pointer assistance
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[no replies]
by wtf
Call of overloaded function(int, int) is ambiguous.
 
I don't understand why I am getting this error. It was working fine until I overloaded it, by adding a new function with a third parameter. now the functi...
[4 replies] Last: And you're going to end up with ambiguous calls no matter what if you ... (by jsmith)
by eri24
Starting a program
 
I feel like i'm falling behind my comp sci class. I need help starting a program for hwk. here's the link http://www2.cs.uh.edu/~acl/cs1410/prog6.pdf Any help ...
[16 replies] Last: AlphaBravo helped me so i say good job!! (by closed account SEbXoG1T)
Project
 
Hey guy's. So listen I tried my best to get help with this. I didnt have any other option, but to go to the professionals. I have a project due in 2 weeks wher...
[1 reply] : // I'm a total beginner at C++, but I wonder if this is a memory-relat... (by Nohbdy)
by wtf
Is this valid?
 
class declaredtype{sometime data;}; template <class thing> typedef declaredtype<thing> a_name<thing> ???
[2 replies] Last: cool.. (by wtf)
Copy object and paste using mouse
 
Hello, I have no experience in C++, i have coded a bit in vb.net, w/e back to business. I need help with a little project, i want to code a dll file that mak...
[no replies]
Bumpkins of Bumpus
 
The Bumpkins of Bumpus (Borrowed from ACM programming team 2002) project name for this assignment: bumpkin The people of Bumpus (Bumpkins) are a fun, happy, pea...
[3 replies] Last: I know right. This is what I have now with corrections, but it is n... (by Latanyar)
pointers
 
NodePtr temp = new Node; temp -> data = item; temp -> next = head; head = temp; can anyone enlighten what it means for the above? thanks.
[5 replies] Last: oh, okays, thanks~ (by nanochan1)
by Oriol
** in declaration of a function
 
Does anyone know what it means when in one declaration we have ** in front of a variable? is a pointer for a two dimension array? void amoeba(float **p, floa...
[3 replies] Last: Thanks :) (by xander333)
getting undefined reference error
 
I've been trying to figure out this error on my own but can't seem to get it anywhere. My header : #ifndef POINT2D_H #define POINT2D_H class point2d {...
[2 replies] Last: Haha thanks very much, completely missed. Got it working thanks to you... (by Kraze101)
immediate exit while loop
 
I have to write this program with a sentinel controlled loop, with 'q' as the sentinel. The issue I am having, is that when I enter 'q' I need it to exit the l...
[4 replies] Last: " 3) Write a sentinel controlled while loop based on a character valu... (by dethblight)
Why does this not work?
 
Hi everyone, in the code below i have a conditional operator that when m is less than n should populate min with m and increment mCount. However it seems to pop...
[1 reply] : int main() { int m = 5, n = 10, min = 0; int mCount =... (by firix)
Searching for elements in a generic list
 
I'm trying to figure out how to perform a search when using templates. I'm writing my own version of <List> Normally I would use something like this el...
[2 replies] Last: That works! Thanks! (by mistysch)
Error calling a member function using a passed vector of class pointers
 
So I'm passing a vector of class pointers to a function, but I'm getting an error. This may be an obvious error to experienced programmers... In my main fu...
[2 replies] Last: HELIOS!!! YOU'RE AWESOME! I KNEW it was a simple thing. THat mak... (by ItchyElbow)
by karlo
overloaded grid/matrix class for large objects
 
I'm trying to design a class for a 2-dimensional grid: template< class T> class Grid { private: unsigned int sizeX; unsigned int sizeY; T* d...
[2 replies] Last: Oh yes, what a simple mistake. Thank you! (by karlo)
October 2010 Pages: 1... 1011121314... 42
  Archived months: [sep2010] [nov2010]

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