General C++ Programming - August 2010 (Page 9)

by jzone3
Open program on different computer
 
Why am I not able to open a .exec on a different mac? I even tried sending the other computer the whole folder with the project. Is the solution using an inst...
[3 replies] Last: i said mac because the program I made was an .exec not .exe what are ... (by jzone3)
by piotr5
can a compiler figure out the correct type?
 
will the program work as expected on all compilers when I write something similar to: template<typename T> struct A { typedef T::C My; CString ToString()...
[6 replies] Last: Previously I wrote: [quote=guestgulkan]By the way the two functions c... (by guestgulkan)
byte-swapping - is this efficient?
 
I'm looking to implement host-to-network byte swapping (and vice-versa) which can be used seamlessly for any types. Does anything already exist? Is this f...
[8 replies] Last: Are you sure the builtin swap is actually used? My tests show that it ... (by Athar)
Chatbot AI
 
I want to make something like a chat bot, one that learns from user input, becoming smarter overtime(possibly stupider, depending on the user.) Ive been read...
[3 replies] Last: Here is one to begin with http://en.wikipedia.org/wiki/Boolean_algebr... (by EverBeginner)
by eye51
Passing vector to Constructor by Reference
 
Hi, I want to pass vector to constructor by reference. This is mainly meant for very large size data. My question here is: In YourClass constructor, refere...
[5 replies] Last: Hi J Smith, Thanks for your reply. Your suggestion solved my prob... (by eye51)
by adam42
Unusall decleartion
 
I have been given somd source code of a program and I am trying to understand how the program works I have got a stucture defined as typedef struct { ...
[5 replies] Last: Thanks. I think I understand it now (by adam42)
by onako
RAM memory consumpion
 
I'm implementing an application that should decide whether to move computations to external memory, depending on RAM memory consumption. Is there a C++ functio...
[1 reply] : C++ does not provide anything like that. If anything does, consult yo... (by jsmith)
Networking with SFML
 
Hi! I have been looking into the SFML libs for a while and im currently learning TCP IP connect but im stuck at this error: Run-Time Check Failure #2 - Stack...
[3 replies] Last: Anyone? (by Melander)
Picking up objects in games
 
I'm attempting to develop a game, through the use of game maker (i'm not allowed to use any other platforms). My idea is that the player gets a number of differ...
[5 replies] Last: any time. (by Seraphimsan)
a sort function
 
hi im new here Im searching for a function that a letter can place at end of the word in the program you must firts read the word(school) and a number(3) th...
[2 replies] Last: Hi, What you're doing is the first step of block sorting (i.e., w... (by rwan)
How to create background timer?
 
Hello, I am writing an application in C++ where in need to perform a sequence of operations based on timers. Its like i want to create timers for say 10 object...
[1 reply] : http://www.cplusplus.com/reference/clibrary/ctime/time/ you can als... (by wenqiang)
Making Real password
 
hi, Any body please let me know are there any ways to take the password in '******'(asterisk key) is it possible please let me know soon. This is for my col...
[3 replies] Last: Your problem is you're adding the backspace character, '\b', to the pa... (by xabnu)
how to find mode from a vector of ints
 
Hi everyone! I have been using this site for a bit now and I can't do any studying without it. I am just finishing a C++ course so I am somewhat versed in C...
[15 replies] Last: No problem! Thanks for the post onto the mp3 project lol it seems a LO... (by jackson)
Classes
 
I was wondering if you could create an object( class Object{} )with out declaring it( Object declaration; ). Thanks In Advance
[2 replies] Last: ...Yes? void *object=malloc(n); There you go: n bytes to work with... (by helios)
by shenh
What is the meaning of such an constructor?
 
I have a sample template class, but do not understand one line within it. template<typename T> class Array { public: Array(unsigned arraySize): ...
[3 replies] Last: Thanks R0mai, and Kyon for your excellent example. I understand now. (by shenh)
#include <string> ??????
 
What does #include <string> do??????
[1 reply] : Google is your friend. http://www.cplusplus.com/forum/general/4202/... (by DaSpirit)
How do I use a template in a class NOT the main() method?
 
I'm trying to use the blitz++ matrix library in my code (http://www.oonumerics.org/blitz/) but am getting frustrated with how to use the blitz templates in my c...
[5 replies] Last: I probably not making myself clear, but I have found the answer. this ... (by CodeBugs)
a queue of references
 
Assuming I have a stl Queue like this MyClass queue<MyClass&> I used queue<MyClass*> before, and I am wondering whether it is possible to use queue<MyCl...
[1 reply] : you can't store references, references are just a way of passing data ... (by quirkyusername)
by Gianks
Safe Dynamic Library Execution and unload
 
Hi all, i've to make an introduction of what i am doing before start making questions. The goal of my work is to create an application quite like an IDE, fo...
[4 replies] Last: Hello Gianks, No, it is not unless to look through all the code com... (by EverBeginner)
Escape sequences
 
I'm currently writing an instant messaging program and I need a way to specify what kind of data is being sent. I decided to use escape sequences: \c - Command...
[6 replies] Last: That doesn't work, though. How can the program know what characters ar... (by chrisname)
August 2010 Pages: 1... 7891011... 20
  Archived months: [jul2010] [sep2010]

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