Beginners - October 2009 (Page 11)

Using the getopt_pp library
 
I've been trying to use the c++ version of "getopt" named "getopt_pp" in a homework assignment. After wrestling with my own code and searching the documentation...
[2 replies] Last: Thx for the reply, found a standalone header file called getopt_pp_sta... (by Nature1)
Asynchronous in C++? Running multiple functions simultaneously?
 
I'm making a game, and it'd be awfully useful to have multiple functions running simultaneously, but I don't see that this is an option in C++ (or any of the fe...
[5 replies] Last: Very true, and I actually managed a solution without multi-threading. ... (by Archaea)
additional cpp files
 
Really n00b question... I've seen programs with more than one cpp file. I use lots of h files, but never cpp files. What's the difference? Also, even more c...
[2 replies] Last: http://www.cplusplus.com/forum/unices/2313/page1.html#msg8761 I had a... (by Duthomhas)
eof bit (what is it?)
 
When using a file stream I test for .eof(); is the eof() bit data within the file or a bit that fstream adds to the stream to indicate the end? Basically beside...
[6 replies] Last: A holdover from CP/M is to mark the end of a text file with ^Z. DOS sy... (by Duthomhas)
Need A good C++ compiler
 
I need a C++ compiler, something similar to C++BuilderX I used to have it on my old computer, a Windows Xp, but it doesn't work on Vista Which I have now
[2 replies] Last: Thanks for the link (by mustachman)
Yet another QWERTYman(tm) problem (with fun and stuff!)
 
#include <fstream> #include <iostream> #include <limits> #include <string> #include <vector> using namespace std; class ydm_notes { int year; ...
[8 replies] Last: I tried your program, selected option 1, (New File), selected one Not... (by guestgulkan)
by JRevor
Virtual methods
 
I have a class called Celula, which has a virtual method called simbolo virtual char simbolo(void) const; I want to declare the body of the met...
[4 replies] Last: Thanks!! (by JRevor)
Making my own String class:
 
I am writing my own string class library, that contains basic functions of the string class, along with overloading the +,==,>,<,<< and >> operators. I have def...
[6 replies] Last: yeah i managed to fix the overloaded + operator MyString operato... (by xxhashxx)
Want programming practice problems
 
Think Like a Beginner to Become an Expert hi all, I am new to c++, and i want to expand my knowledge on c++. i want to ask that any respectable member...
[2 replies] Last: thanx Bazzy! (by Asad Abbas)
Function to search an array that returns a boolean
 
Background: Each array represents a mathematical set (in this case, a lottery ticket). The inSet function should see if the element passed to it is in the set (...
[3 replies] Last: The problem is that you're not breaking the loop once you find that th... (by helios)
by wtf
All I want to do is scanf and printf
 
but it aint working. I'm trying to change all the cins and couts from my program to scanfs and printfs to make the program size a little smaller. but i kee...
[16 replies] Last: Clarification: I was saying "no" the using %s without a number like %... (by firedraco)
array initialization problem
 
hi everyone! int num=6; int s ; the compiler says:'s'unknown size.why this way cannot work. thanks in advance.
[4 replies] Last: After i have a try ,i find the std::vector is very strong.(thanks also... (by huzhanchi)
Where's the exe? o_O
 
Huhu, I have created a small app but I am unable to find the EXE-file. Where are they located? compiler: VC 2008 OS: XP I guess it is in my documents\VC...
[4 replies] Last: Argh...found my mistake. You have to look in the debug folder in mydoc... (by Basinator)
Move mouse cursor on a multitouch screen
 
How can I move the cursor of the mouse on the point I touch in a multitouch screen?which library could I use? How does it work? The parameters in input are th...
[no replies]
by Vexlaz
Some trubble whit the sting class
 
Hello fellows. Im a novice programmer trying to learn c++ to help me in my work with robotics. Its comming along quite well but i ran in to problems with the ...
[2 replies] Last: Okey thanks:) i did think about that. But i thouht i would be bad prog... (by Vexlaz)
Inline failed
 
I'm working on a project, and I'm getting a pesky error: Inlining failed in call to 'Element::~Element()': call is unlikely and code size would grow The ...
[7 replies] Last: Yeah it is, but I was just testing ~Element() at that time. It really ... (by demosthenes2k8)
deleting a menu item
 
I have a set of menu items from which a user can select multiple items from. I want the user to be able to choose as many items as they wish but heres my questi...
[4 replies] Last: @andrew9514 Read this article: http://www.cplusplus.com/forum/article... (by Bazzy)
by Husker
User Input Problem
 
My program asks the user to enter an int of some range. If the user inputs an alpha character, my program blows up. If the user enters an alpha char I would l...
[1 reply] : This article explains how to solve your problem: http://www.cplusplus.... (by Bazzy)
My book says this shouldnt compile, but it does?
 
#include <iostream> int main(){ int i; std::cin>>i; int p ; for(int j=i-1;j>=0;j--){ p = j*2; std::cout<<p <<"\n"; ...
[15 replies] Last: Is non-standard. This is enough to be avoided (by Bazzy)
by Bv202
Virtual destructors
 
Hi, I understand that, when you delete a derived object, first the derived destructor, then the base destructor is called. But let's assume we have this: ...
[9 replies] Last: If a base class's destructor is virtual, the derived class destructor ... (by kbw)
October 2009 Pages: 1... 910111213... 25
  Archived months: [sep2009] [nov2009]

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