General C++ Programming - December 2008 (Page 7)

by taklct
can array call by reference??
 
i written a function void add(char& id ,int a ,char &year ,int b,char &name ,int c ,char &pg ,int d) when i run the program ,the program said that d...
[2 replies] Last: void add( char (&id) ) would give you a reference to an array. ... (by jsmith)
c++ time values
 
Hi, I consider myself to be a beginner in c++, and really only know the basics, however I am looking for some help to with something quite complex. I und...
[3 replies] Last: You just have to add or subtract the number of seconds difference betw... (by jsmith)
by Ultima
Finding Path
 
Hi guys, Guys im new in cpp and I need help with a function. I have imported a maze.. into a double array :: map This is a sample map: *************** ...
[5 replies] Last: I wrote a script for this. This is what I did: - Make a copy of the... (by matrebatre)
How to get the path of the calling exe in a dll?
 
I am writing a DLL for a program I'm making, and I want to make sure other programs can't use the DLL. I was thinking, maybe I could calculate the MD5 checksum ...
[2 replies] Last: I am using this code right now: char modulename ; GetModuleFileNa... (by matrebatre)
Easy C++ Contest! (1,2)
 
Hey, everyone! For those those who don't know me(which is most of you), I am Matt White from the machinima production group, Nightmare Productions. I am also ...
[24 replies] Last: I wrote a program very similar to this a few weeks ago for my C++ clas... (by Hypersion)
by CNoob
Socket Programming -
 
Hey guys, yeh, im new to this site so im creating a (server) program which uses sockets to send/recv information from another pc. I use MS XP if that is nee...
[4 replies] Last: I found out that my code works fine on Windows XP, just not Vista >:@ ... (by CNoob)
drawing in the main window
 
Hello Everyone, I'm trying to make my own software in C++, but I want to have it's own custom look and feel GUI. I also want it to have a solid codebase that...
[3 replies] Last: No problem. But, no offense, I don't think you realize the gems I j... (by Duthomhas)
Visual Basic 2008 Conversion
 
I have several fairly large applications written in Visual Basic 2008 Express Edition. I have seen the light, and I am converting everything to Visual C++ Expre...
[1 reply] : ... You want to machine-translate (in the case of code, I could hav... (by helios)
by Corpus
Global overload of operator new and Singleton
 
Hi all I am trying to implement the Fixed Size Buffer Pattern (Douglass, "RT Design Patterns", ch. 6). Briefly, it is a matter of implementing a number of fi...
[2 replies] Last: Hi Seymore Thanks, Ill try this when I get around to it and post th... (by Corpus)
How can you change the background color of the output screen?
 
Does anyone know the answer to this? I've tried setbkcolor() but nothing's happening!
[3 replies] Last: I got it! Thanks for all the replies! (by ancalime)
by helios
Segmentation fault on new??
 
Are there any circumstances when a line like this could cause a segmentation fault? uchar *buffer=new uchar ; size is known to be >0. In fact, the debugger ...
[5 replies] Last: Not if the heap gets corrupted. "Detection" will occur either when a ... (by jsmith)
Using SetConsoleDisplayMode()
 
Heh I love my question asking. No matter what library I include I can't find what I need for this function. Included everything microsoft is asking for. Yet it ...
[2 replies] Last: If I understand the documentation correctly, this doesn't set the size... (by helios)
Function other than system("CLS")
 
Hay guys, just wondering what other functions are around apart from this one. I've had a look through http://msdn.microsoft.com/en-us/library/ms682073(VS.85).as...
[2 replies] Last: Haha, oh first example is a laugh. Cheers for that mate :D (by Mythios)
[SOLVED] Vector Deleting Error
 
Hey guys, I'm trying to delete an element of a vector with an iterator using the erase function. Here's the basics of my way of trying to delete it. In my st...
[12 replies] Last: Didn't change much but thought I'd update it's solved with this code a... (by Mythios)
Getting certian place from String
 
Hello, Lets say I have a string str1 = "abc"; I want another string that will get the second\third char from str1, "b" or "c". Is there any function that c...
[3 replies] Last: str::string::at() or str::string::operator . (by helios)
Vector iteration and I/O problems
 
Can someone please give me a tip as to were I am going wrong with my code as I am having problems with iterating through my vector of products. Also can you tel...
[6 replies] Last: My version is the more general version of an ostream operator, though ... (by jsmith)
by Knuhl
Tutorialized Game Developing..
 
Hi, this is my first time in this Forum so.. HI! First of all: sorry for my englisch, Im german and many words are out of the dicitonary ;) Me and my frie...
[8 replies] Last: Thanks for all the nice answers and sorry that im answering now. I ... (by Knuhl)
Creating a vector containing a pointer to class (1,2)
 
I am working on a problem with 2 classes known as product and order. The product class will hold the attributes of items in stock and the order class will hold ...
[29 replies] Last: Can you post the actual compile error and the declaration of product? ... (by jsmith)
input
 
hi people
[1 reply] : See, the problem is you can't know beforehand how long a line will be.... (by helios)
by jlug
how to selects an index with probability proportional to its weight.
 
Suppose there is a array of index and there is a respective wieght of each of them. How can i select the index with probability proportional to its weight?
[1 reply] : You will need the total weight stored somewhere first. Next, generate... (by mahlerfive)
December 2008 Pages: 1... 5678910
  Archived months: [nov2008] [jan2009]

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