Beginners - February 2011 (Page 5)

Problems of template?
 
my OS is window xp sp3 compiler? : GCC 4.5(minGW) IDE : code blocks 10.05 I am using the library openCV2.2 below is my code template<typename T> void...
[2 replies] Last: Thanks a lot (by stereoMatching)
Passing an array to a function:
 
Hi, I've been trying for hours to find out the error in this program, it has something to do with passing the array to the function, here is the program: #i...
[4 replies] Last: It worked! I added square brackets to the prototype and it worked, but... (by boredToDeath)
Passying 2 int to a function then trying to use them to set a array
 
I am trying to call the following function as so: int displayTable(int x, int y) { int mTable ; cout << "\n\n_______________________________________...
[5 replies] Last: Oh good heavens, just use a 2d vector... Really I see absolutely no r... (by ultifinitus)
by schule
C++ program errors
 
Hello, I want to set up my program on linux. I compile it, but when I made it, give the following errors: index_set.h: In constructor ‘index_set<T, Cmp>...
[2 replies] Last: Hi Kultrva, I use versiyon of g++-3.4, gcc-3.4, cpp-3.4, libg2c0-3.... (by schule)
Unexpected output when summing reciprocals of squares
 
Hello everyone! I'm new to C++ and have a problem with exercise 3.6 from Scheinerman's C++ for mathematicians . The exercise asks me to write a programm that,...
[5 replies] Last: Okay, that's right. Thanks for pointing it out. I killed it and am lef... (by Faltoup)
am new to C++
 
please i wanna write a programme console application using borland turbo c++ that ask users for an angle entered in radians,the programme should then display t...
[11 replies] Last: no need std:: if you use #include <iostream.h> head file . That's b... (by filipe)
Multi-lingual, random output-Hello World program
 
Hello guys! absolute beginner here. trying to write a program that randomly displays one of these 6 phrases - English Hello world! ...
[7 replies] Last: Wouldn't a switch case be better. Or does the "instructor" want you to... (by king214)
keylogger problem
 
this is a program that i want to do, but the first problem is that it takes like 50% of my processor, how can i fix that ? #include <windows.h> #incl...
[1 reply] : Adding a Sleep(10) in your loop is one of many solutions (however, not... (by Athar)
Is this a pointer or a reference?
 
int x = 100; int xx; int *pointer; pointer = &x xx = *pointer; I am getting confused myself so im asking here to make it clear to myself. Is this a poi...
[3 replies] Last: Thank you for the input and i get it now i hope hahaha (by zone19871)
The term "(inclusive)"
 
Hi guys I'm busy with my very first assignment and I've stubled upon a trick qeustion. Please bear in mind that English is not my first language and that is ...
[3 replies] Last: Yes. (by Athar)
by nyy601
how to recieve a class object in a function?
 
Completely stumped on how to do this. It is a class project in which we must make witches and wizards battle at rock, paper, scissors. We are given the code f...
[1 reply] : Passing a custom class object to a function is exactly the same as pas... (by Bazzy)
SDL Linker Error
 
In Visual Studio 2010 Ultimate I'm getting the following, fatal error LNK1104: cannot open file 'SDL.lib' I don't understand why though. My additional inc...
[1 reply] : My additional include directories are: C:\Program Files\SDL\include ... (by programmer47)
by ogward
cannot instantiate abstract class
 
Hi! I've made these operator overloading functions before but for some reason it is complaining now... this is what I have. in header file. Present **...
[4 replies] Last: thanks a lot! I think I solved it with clone(). (by ogward)
Vertical Assignment of a 2D array
 
Hi, I have a 2D 3X4 matrix a ={{0,1,1,0},{1,0,1,0},{0,0,1,1}}; Visually, 0110 1010 0011 Is there a way to assign a vertical strip of a 2D array into ...
[1 reply] : Sorry. Stupid Question. :( (by aquafina)
Linked List
 
Hi, I'm new to c++. My program below uses a linked list to add / remove / display / query data of type string. Issue faced: There is no problem with th...
[3 replies] Last: whoops. didn't notice your list was sorted. you're right. roll_number... (by hamsterman)
Function not working properly?
 
Hello every1, i have been learning c++ by reading books, and i was confused when i came into this: #include <iostream> #include <stdio> using namespace st...
[8 replies] Last: @filipe is it because it doesn't limit check (or how it is supposed to... (by ferrovial)
Generating Random Number
 
I recieved this assignment for my beginner's c++ course and I am having trouble writing this program. Specifically, I am having trouble with the part that I hav...
[6 replies] Last: @Grey Wolf Got it. Thank you very much. @fun2code You must have m... (by alexanderswang)
Could I find this kind of iterator from boost?
 
example std::vector<size_t> data(10); std::iota(data.begin(), data.end(), 0);//assign value to data from 0~9 iteratorIneed it(data, data.begin(), 2), it_e...
[2 replies] Last: Thanks, I need this kind of iterator because the memory geometry of ... (by stereoMatching)
Trying to passing 2 parameters using 1 function call as the parameters
 
Hi, I am trying to call a function that needs two parameters. I know I can do something like this: add(num(),num()); Where add is a function that nee...
[2 replies] Last: Thanks! (by mlwhiteley)
Multidimensional Linked List
 
I am trying to make an old-school game, much like the original Zork. I need to generate a world and I have been told that a linked list may be the best way to g...
[2 replies] Last: Make a class called "room" or "space", and then make a vector of them.... (by rocketboy9000)
February 2011 Pages: 1... 34567... 43
  Archived months: [jan2011] [mar2011]

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