921 Posted Topics

Member Avatar for jobseeker97
Member Avatar for Arcaiz
0
144
Member Avatar for AutoC

Heap Memory: [URL="http://www.cplusplus.com/doc/tutorial/dynamic/"][link][/URL] Stack Memory: [URL="http://www.cplusplus.com/doc/tutorial/arrays/"][link][/URL]

Member Avatar for chunalt787
0
102
Member Avatar for sweetsympathy17

Great, after three threads of being told to post the code, you don't use code-tags :icon_confused: Please, read the rules too.

Member Avatar for Ancient Dragon
-4
96
Member Avatar for bobrien314
Member Avatar for William Hemsworth
0
81
Member Avatar for mrinal.s2008

[QUOTE=mrinal.s2008]Does it mean that fstream does not include iostream, or is it specific to g++ compiler.[/QUOTE]One windows header file usually includes 10/15 others, you can never be sure if it's included until you check. Besides, there's no harm in putting [B]#include<iostream>[/B] again, that's what header guards are for. [QUOTE=mrinal.s2008]g++ did …

Member Avatar for William Hemsworth
1
321
Member Avatar for sweetsympathy17

[QUOTE=sweetsympathy17;1005467]o[B]H[/B]! thanks ma[B]N[/B]! that really help[B]S[/B]!!! :D!![/QUOTE] Capital letters go at the start of a sentence, not the end. :icon_lol:

Member Avatar for William Hemsworth
-1
74
Member Avatar for adi.shoukat

AD even wrote a snippet to do something similar. [URL="http://www.daniweb.com/code/snippet216996.html"][link][/URL]

Member Avatar for William Hemsworth
0
98
Member Avatar for shahab.burki

[QUOTE]You could use a union for this purpose[/QUOTE]Using a union like that wouldn't technically be making it an ASCII string, ASCII represents text, and there [B]asc[/B] is just pointing to some bytes of another data type. [QUOTE]Don't use itoa[/QUOTE]It's doubtful that any decent compiler wouldn't have this included, so I …

Member Avatar for manutm
0
575
Member Avatar for RossSCann

You have to sign your application with a trusted certificate. [URL="http://msdn.microsoft.com/en-us/library/ms247066(VS.80).aspx"][link][/URL]

Member Avatar for RossSCann
-1
125
Member Avatar for ssb
Member Avatar for geoffy0404

Every one of your if-statements is wrong. The syntax is supposed to be: [CODE]if ( <condition> ) { <code> }[/CODE]Yours is:[CODE]if ( <condition> ); { // Get rid of that semi-colon <code> }[/CODE]Also, lines 39, 42, 55, and 58 need some serious rewriting, and please, indent your code correctly.

Member Avatar for geoffy0404
-1
85
Member Avatar for nated

You clearly didn't search hard.[CODE]str.c_str() // returns a constant pointer to its characters[/CODE]

Member Avatar for nated
-1
131
Member Avatar for Juliebadeya

What's your problem? and use code tags the next time you post code, or I promise wont reply.

Member Avatar for William Hemsworth
-1
1K
Member Avatar for b1t.flash0r

Will this do?[CODE]#define _WIN32_WINNT 0x0500 #include <windows.h> #include <iostream> int main() { ShowWindow( GetConsoleWindow(), SW_HIDE ); std::cin.ignore(); }[/CODE]

Member Avatar for William Hemsworth
-1
162
Member Avatar for alvalany

You're better off just doing these things manually, trust me. It's 100x more work to make this bot than it is to just do it yourself.

Member Avatar for SpaceTiger
-1
290
Member Avatar for tkud

Since when are books free? Also, [URL="http://www.daniweb.com/forums/thread70096.html"][link][/URL]

Member Avatar for kvprajapati
-2
86
Member Avatar for tomtetlaw

Damage? I doubt it. The physical memory would quickly run out, and then your pc would automatically free all the memory you allocated when you restart the pc or somehow close it.

Member Avatar for VernonDozier
0
146
Member Avatar for loolyn

Painting Vista controls can be unpredictable because of the Aero theme. If you disable the Aero theme, you will probably find that your code works, however if you want it to work either way, you can try drawing it manually by using the [B]WM_ERASEBKGND[/B] handler. I once did an entire …

Member Avatar for William Hemsworth
1
92
Member Avatar for andoris

This is a dangerous topic to post a question about, we can't just trust you wont use this for any illegal purposes, therefore you probably wont get the replies you're expecting. Either way, if you're going to write a keylogger, you may as well save the poor user some CPU …

Member Avatar for William Hemsworth
0
116
Member Avatar for hmortensen

Perhaps try the official Allegro forum? Here, only a small percentage of people know about it, there everybody does. [URL="http://www.allegro.cc/forums/"][link][/URL]

Member Avatar for William Hemsworth
0
128
Member Avatar for ident
Member Avatar for serkan sendur

You'll be back! :) I don't understand why you're leaving after having a post deleted. If you post normally and make sure they don't break any rules, you'll be fine. If you don't come back, then Cya.

Member Avatar for jasimp
-2
372
Member Avatar for Ancient Dragon

They're coming up everywhere, I've seen many questions marked as code snippets in the C++ forum, and just spotted [URL="http://www.daniweb.com/code/snippet221260.html"]this[/URL] one. It's definitely causing a lot of confusion.

Member Avatar for Dave Sinkula
0
352
Member Avatar for Cool Guy

Get a hobby. Play a sport, learn a language, make some friends, try anything new and generally accept opportunities that come to you :P [URL="http://www.youtube.com/watch?v=uRv4CoXQoAQ"][link][/URL] and watch that film :D

Member Avatar for red_gal_2005
0
156
Member Avatar for evilguyme

Very simple using the Windows API, here's an example:[CODE=CPLUSPLUS]COLORREF GetMousePixel() { HDC hdc = GetDC( NULL ); POINT mp; // Mouse point GetCursorPos( &mp ); COLORREF pixel = GetPixel( hdc, mp.x, mp.y ); return pixel; }[/CODE]

Member Avatar for William Hemsworth
0
142
Member Avatar for coolice

[QUOTE=Enigmo;996454]Hello. Please, say, how can I obtain a contact's Birthdate? The standart export from Addres Book does not export it. If I'm writing a code, there is a property PR_BIRTHDATE. How do I convert it to the text string and write anywhere, like Edit3.Text = lpProp->Value.(something here) ?; Besides, why …

Member Avatar for William Hemsworth
0
241
Member Avatar for serkan sendur

Haha :D anyway, I don't have a problem with it at all, couldn't you allow the user to choose whether he/she wants to show up as a visitor on somebody's page? I personally found it interesting to see who had visited my page, so I liked it.

Member Avatar for Nick Evan
-1
175
Member Avatar for vignesh_ramji

Please remember to use code tags, there's a big button which says (Code) in the reply box now, so there's really no excuse for missing it other than a lack of effort. Now some points about your code, your teacher shouldn't be making you use Turbo C++, it's outdated, and …

Member Avatar for vignesh_ramji
0
188
Member Avatar for markrezak

Sigh. How many times will it take before you realise nobody cares unless you use code-tags? How hard can it possibly be for you? Select your code, and click code. Third time's a charm, I hope.

Member Avatar for William Hemsworth
0
178
Member Avatar for markrezak

You didn't use code-tags, even though there's a big button saying code. Put more effort into making your question presentable, and I'll take a look at the code for you.

Member Avatar for markrezak
0
188
Member Avatar for kaninelupus

I would probably miss my mp3 player more, I spent a long time customizing it to be exactly how i want :) My phone I would miss, but I could still use the phone I won from a crane machine (still can't believe I finally managed it).

Member Avatar for crimgirl
-2
280
Member Avatar for AnGuRuSO

[QUOTE]void main()[/QUOTE]Just a little heads up, dont use [B]void main[/B], use [B]int main[/B], and you'll save yourself a lot of trouble :)

Member Avatar for NathanOliver
0
118
Member Avatar for jefanot

Due to your bad formatting, you can't even tell that it's entering an infinite loop on line 10. Here's your corrected code. [CODE]#include <iostream> #include <string> using namespace std; int main() { string dude; bool repeatit=true; while (repeatit == true) { cout << "Are you happy?\n"; cin >> dude; if …

Member Avatar for William Hemsworth
0
119
Member Avatar for voidnull

With a hex editor? You're really going to have to be more specific if you want a good reply.

Member Avatar for mostermand
0
349
Member Avatar for sjcomp

Perhaps make a function that compares the similarity between two words. Compare each word length, how many of the same characters match up, how many are in the right order, and so on. The function could start off like this:[CODE]/* Returna a value between 0 and 100 * 0 = …

Member Avatar for mrnutty
0
111
Member Avatar for saurabhsaki

You've come to the wrong place if you want free solutions to homework (and the wrong forum altogether). If you want a place to start, buy a book on C/C++.

Member Avatar for William Hemsworth
0
144
Member Avatar for cbvignesh
Member Avatar for dweebsonduty
0
152
Member Avatar for mz_rigel

When calling a function, you don't have to but the type it returns before it. For example, change line 23 to: [code]calcAverage(score1, score2, score3);[/code] Hope this helps.

Member Avatar for KonkaNok
0
121
Member Avatar for sknake

When changing my avatar, 70/80% of the time it gives me the same error. After refreshing a few times and trying again, it works. Get's quite irritating (hense my no avatar :P)

Member Avatar for Dani
0
169
Member Avatar for ddanbe
Member Avatar for scrypt3r

[QUOTE]Why? For once, tell us why you think this code is wrong instead of leaving a piece of sh*t comment and then run and hide when you get a reply. [/QUOTE]Just not worth it anymore. People have already complained about him by asking for a ban, but he isn't "breaking" …

Member Avatar for William Hemsworth
0
166
Member Avatar for BlackPhoenix

On Visual Studio, you do this: 1. To the right green "run" button, set the compile state to "Release" 2. Go to the menu "Project -> (project name) properties" 3. Under "Configuration Properties -> C/C++ -> Code Generation", set "Runtime library" to "Multi-threaded (/MT)" This is what I found to …

Member Avatar for BlackPhoenix
0
104
Member Avatar for tomtetlaw

I'll use whatever makes the best searches (still google imo), I don't like all this anti-windows rubbish.

Member Avatar for kaninelupus
0
607
Member Avatar for kaninelupus
Member Avatar for namasteall2000

Keep to one forum, please. [URL="http://www.daniweb.com/forums/thread222584.html"][link][/URL]

Member Avatar for William Hemsworth
-1
201
Member Avatar for lahiruchandima

[QUOTE]Stop this spamming with fake question/answer and complete noob and wrong code (original code from MSDN has been posted 15 years ago !) Read the Petzold to learn Windows programming. [/QUOTE]Oh, shut up. He provided a good link, you didn't.

Member Avatar for lahiruchandima
0
393
Member Avatar for William Hemsworth

Just watched this on TV under an hour ago. [url]http://www.youtube.com/watch?v=cHZ2mQczkcg[/url] It was amazing. We switched to the channel the lottery was on, and both were live. He managed to predict the results perfectly. I don't think he used any illusions, but I will be very interested to see how he …

Member Avatar for William Hemsworth
0
59
Member Avatar for Thomasedicel

Ugh, where to begin. 1. Don't use turbo C++, it's ancient. Go for a more modern compiler. 2. Don't use conio.h, it's not standard. 3. We aren't going to do your homework for you.

Member Avatar for mrnutty
-1
127
Member Avatar for Tom Gunn
Member Avatar for atch

It means it's an unsigned integer, to match the type of [B]value[/B]. Found from the web: [I]u8 unsigned byte (8 bits) u16 unsigned word (16 bits) u32 unsigned 32-bit value u64 unsigned 64-bit value s8 signed byte (8 bits) s16 signed word (16 bits) s32 signed 32-bit value s64 signed …

Member Avatar for Dave Sinkula
0
159

The End.