560 Posted Topics
Re: [quote][icode]void main()[/icode][/quote] Whatever happened to "int main()" in the 80s anyway? | |
What is the equivalent of the "setw" stream manipulator for C++ in Java? I've been messing with the java.util.formatter class, but haven't figured this out yet? [url]http://www.cplusplus.com/reference/iostream/manipulators/setw/[/url] | |
You can watch the CNN/Western Republican debate live on CNN.com right now. I just find these events so hilarious, Perry just looked like an idiot and it looks like he's wearing makeup too. | |
Windows API Can the KEYBDINPUT structure in the INPUT structure be used to send a mouse click? I know there is a different structure for the mouse but I would like to use the KEYBDINPUT structure if possible. | |
Re: For projects on my own time, it is either the payoff or the awesomeness of the idea. | |
Re: Sorry but you must not have read much of the text on this website at all. Please read the rules before posting. | |
Re: Many applications crash if you throw too much input at them fast enough. Lol Windows (I had that happen on firefox one time, and other apps). | |
Re: [code] std::string buffer; std::getline(std::cin,buffer); [/code] | |
![]() | Re: The Windows API has SendInput, and you need to send the hardware scan code of the key you wish to press for games to detect it (I know this from experience). I have a small example in C++ here, I'm assuming you can Pinvoke it with no trouble. [code] #include … |
Re: you check the least significant bit to determine if it's even or odd, because it's 2^0 = 1. thus you can shift the bits the proper direction and determine if the bit is set or not. in case bits were never described this way to you: [ ] [ ] … | |
Re: You might look into software designed to make programs portable, who knows maybe one of them will work with it? | |
Re: Don't dictionaries usually call them "di's"? | |
[code] ArtificialPerson bob; ArtificialPerson clone(bob);//CLONING!!! [/code] Yes, a slightly funny and tasteful programming joke. | |
Re: Well if you're completely new to C++ I strongly suggest reading up on the "ifstream" class. [url]http://cplusplus.com/reference/iostream/ifstream/[/url] Then you can easily do something like: [code] #include <iostream> #include <string> #include <fstream> using namespace std; int main() { const char *fileName = "C:/myFile.txt"; ifstream inFile(fileName);//Automatically opens the file. string inputLine; while( … | |
Re: If it's any help I usually tend to use the WebBrowser control for these things, and use the "DocumentCompleted" event handler to work with the read the "Document" property of the WebBrowser. | |
Re: Lame! I just watched something on the news about the iPhone versions, and I was just thinking "if steve jobs is watching this he would be happy". It seemed to be very Apple-oriented. | |
Re: Well since I got in a little late I'll spare no other's ego any expense. C++ still has the same drawbacks it's always had since I've been programming, and it's very nature implies that it doesn't have a built-in Microsoft Word file format interpreter that gets updated every time M$ … | |
Re: I [b]highly[/b] recommend Microsoft Visual Studio Express, which is free. [url]http://www.microsoft.com/express[/url] Now-a-days with uber-high-level languages like C# and VB that include a "forms designer" you don't have to code the main window and buttons, etc. yourself, they are called "controls" and VS will allow you to drag-and-drop them using the … | |
Re: If you're using visual studio check the youtube link in my signature to learn to use VS debugging features. | |
Re: either way you're going to be restricted to discovering for yourself his mistruths unless you really know what he's thinking. | |
Re: OK I too have felt the pain associated with building and installing boost libraries and I found an installer! I think of it very highly, [url]http://www.boostpro.com/download/[/url] If you need help setting up a project to use the boost libraries once it's installed please let us know. | |
Re: Half Life 2 gets my vote, for multiplayer HL2 and Counter Strike: Source Beta. | |
I have a number of plain text strings that I need to allow a user of my program to change, what is the usual/best way of doing something like this? I was considering using C# properties for them all (and a "edit properties page") but I'm not sure that's the … | |
Re: [url]http://www.cplusplus.com/reference/clibrary/cctype/[/url] Those are character functions. Also, I would suggest including the domain of the problem (the alphabet you intend to work with) in the program rather than relying on the character set. example: [icode]std::string alphabet = "abcdefghijklmnopqrstuvwxyz0123456789";[/icode] | |
Re: [url]http://www.cplusplus.com/reference/clibrary/cstdlib/system/[/url] [icode]system("dir");[/icode] Alternatively you can use the Windows API. [url]http://msdn.microsoft.com/en-us/library/ee663300(v=VS.85).aspx[/url] | |
Re: LOL but he's using them as the "reference" and "r-value-reference" operators. | |
Re: There are tons of specialization areas for programmers, you could look into artificial intelligence, or automation to name a couple. I don't feel this list is complete, [url]http://www.bibl.u-szeged.hu/afik/compw.html[/url] | |
Re: I don't know what you're asking, could you be a little more clear? | |
Re: Like the crappy video I made? (Link is in my sig.) | |
Re: There is an example of setting a windows hook in my skydrive (the link in my signature). Otherwise, I read your whole post and still don't know what you are wanting. | |
Re: (like this thread needs another comment, lol) Best idea? Try them all yourself! [url]http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express[/url] [url]http://mingw.org/[/url] [url]http://software.intel.com/en-us/articles/intel-compilers/[/url] | |
Re: [icode] totnum[20]/x;[/icode] That line accesses an element of the array that doesn't exist, it's one past the end of the array because the array is size 20 and indices start at 0. Also, when you use the subscript operator "[ ]" on the array, you're accessing only one element. You'll … | |
Re: hehe the Visual Studio debugger was made for this sort of thing also, link to youtube video is in my signature if you can stand my horrible voice I show you how to start using it. | |
Re: Well you could check to see if there is a way built-in to let you do that, otherwise it just may not be possible. | |
Re: See the youtube vid link in my sig. if you're using Visual Studio. Also, that arrange function is quite large and I recommend breaking it down into smaller pieces where prudent. | |
Re: The switch is a primitive form of "if/else" structure, are you trying to use an fstream declared in a case label in another case label? Here's how I normally use my switch's [code] switch( condition ) { case ONE: { break; } case TWO: { break; } } [/code] | |
Re: Unfortunately if that's part of a compiler's standard library simply copying it for use with your compiler very likely won't work as expected. I'm sure if you use google you can find some interesting ways to do what you want, there are also probably C++ libraries that aid in this … | |
Hi I have a struct in my form, and I need to pass a reference/handle to it to a separate class, which is ok with the simple "ref" keyword. Now, how do I store this ref to a struct in the class (as a member variable)? Is this possible? I … | |
Re: [quote] I wrote a function that finds the lowest numeric grade score of the pointer array of struct, puts it in the first (0) index position, and then puts the numeric value that was in the first (0) index position in the index position that was formerly occupied by the … | |
Re: [QUOTE=Zssffssz;1656651]Ok heres what I want to do: I want to put a file in a console application (during compileation\codeing not running) and when it runs it saves the file in the same place it was run from. Like moving a movie as an exe to hide it while it is … | |
Re: Don't use "void main()" bub. [url]http://users.aber.ac.uk/auj/voidmain.shtml[/url] | |
Re: Might be worth noting the Micorosft example uses MAKEINTRESOURCE instead of casting to a char pointer. [quote] PlaySound( MAKEINTRESOURCE(IDR_WAVE1), GetModuleHandle(NULL), SND_RESOURCE); [/quote] | |
Re: Actually I have a more practical idea for the perfect computer desk, I just need to build it lol. If I build it, they will buy it... | |
Re: [QUOTE=Narue;1602849]Show me yours and I'll show you mine.[/QUOTE] Totally worth it. ![]() | |
Re: Likely on your system there is also a Windows Media Player class. | |
Re: Hmm.. How about.. "Vampire Hunter D" it's alright for a cartoon. Or maybe... "Scarface" wait... "District 9" ? It's good, trust meh. There's also another one about a guy who hires some woman to help him find parts for his sex robot in a futuristic wasteland. I forgot the name … |
The End.