560 Posted Topics

Member Avatar for vinodhsml

[quote][icode]void main()[/icode][/quote] Whatever happened to "int main()" in the 80s anyway?

Member Avatar for reojavier
-1
133
Member Avatar for pseudorandom21

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]

Member Avatar for stevanity
0
141
Member Avatar for pseudorandom21

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.

Member Avatar for GrimJack
0
234
Member Avatar for pseudorandom21

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.

Member Avatar for ret801
0
164
Member Avatar for cwarn23

For projects on my own time, it is either the payoff or the awesomeness of the idea.

Member Avatar for jackmaverick1
0
124
Member Avatar for manugm_1987

Sorry but you must not have read much of the text on this website at all. Please read the rules before posting.

Member Avatar for Ketsuekiame
0
320
Member Avatar for cwarn23

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).

Member Avatar for Cross213
0
147
Member Avatar for Zssffssz
Member Avatar for pseudorandom21
0
103
Member Avatar for geekman92

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 …

Member Avatar for cybereality
0
2K
Member Avatar for vishwanath.m

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: [ ] [ ] …

Member Avatar for vishwanath.m
-1
129
Member Avatar for valestrom

You might look into software designed to make programs portable, who knows maybe one of them will work with it?

Member Avatar for pseudorandom21
0
169
Member Avatar for r4rozen
Member Avatar for pseudorandom21

[code] ArtificialPerson bob; ArtificialPerson clone(bob);//CLONING!!! [/code] Yes, a slightly funny and tasteful programming joke.

Member Avatar for Netcode
0
98
Member Avatar for XodoX

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( …

Member Avatar for EskayJoe
0
1K
Member Avatar for JOSheaIV

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.

Member Avatar for JOSheaIV
0
229
Member Avatar for pseudorandom21
Member Avatar for sergent

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.

Member Avatar for AliTheChamp
0
330
Member Avatar for WolfShield

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$ …

Member Avatar for Netcode
0
1K
Member Avatar for Xoteo

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 …

Member Avatar for pseudorandom21
0
101
Member Avatar for sunn shine

If you're using visual studio check the youtube link in my signature to learn to use VS debugging features.

Member Avatar for Taywin
0
297
Member Avatar for trinsleynewton

either way you're going to be restricted to discovering for yourself his mistruths unless you really know what he's thinking.

Member Avatar for GrimJack
0
164
Member Avatar for dospy

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.

Member Avatar for dospy
0
153
Member Avatar for zachf632

Half Life 2 gets my vote, for multiplayer HL2 and Counter Strike: Source Beta.

Member Avatar for AliTheChamp
0
149
Member Avatar for pseudorandom21

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 …

Member Avatar for Mohammed Ammar
0
134
Member Avatar for Kron

[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]

Member Avatar for limaulime
0
94
Member Avatar for sanuphilip

[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]

Member Avatar for pseudorandom21
0
35
Member Avatar for stereomatching

LOL but he's using them as the "reference" and "r-value-reference" operators.

Member Avatar for stereomatching
0
124
Member Avatar for TurkAlush

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]

Member Avatar for TurkAlush
0
91
Member Avatar for temmyb
Member Avatar for temmyb
0
211
Member Avatar for cwarn23
Member Avatar for ctjh900801

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.

Member Avatar for ctjh900801
0
335
Member Avatar for D.M.

(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]

Member Avatar for pseudorandom21
0
327
Member Avatar for ryl

[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 …

Member Avatar for ryl
0
137
Member Avatar for murnesty
Member Avatar for meli123
Member Avatar for NoUserNameHere

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.

Member Avatar for Taywin
0
93
Member Avatar for the_kitoper

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.

Member Avatar for pseudorandom21
0
70
Member Avatar for bennetk2

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.

Member Avatar for WaltP
0
215
Member Avatar for Zssffssz

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]

Member Avatar for pseudorandom21
0
110
Member Avatar for Zssffssz

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 …

Member Avatar for pseudorandom21
0
330
Member Avatar for pseudorandom21

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 …

Member Avatar for pseudorandom21
0
95
Member Avatar for eviandc

[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 …

Member Avatar for eviandc
0
1K
Member Avatar for Zssffssz

[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 …

Member Avatar for pseudorandom21
0
116
Member Avatar for cent91
Member Avatar for thines01
0
288
Member Avatar for Carrots

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]

Member Avatar for pseudorandom21
0
6K
Member Avatar for MooGeek

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...

Member Avatar for Netcode
2
156
Member Avatar for bhagawatshinde
Member Avatar for bhagawatshinde
0
107
Member Avatar for jayesh.rocks

[QUOTE=Narue;1602849]Show me yours and I'll show you mine.[/QUOTE] Totally worth it.

Member Avatar for MonsieurPointer
-5
154
Member Avatar for TurkAlush
Member Avatar for nick.crane
0
866
Member Avatar for MooGeek

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 …

Member Avatar for wenbnet
0
193

The End.