921 Posted Topics
Re: Search the web, we're not here for these sort of one-answered homework questions. | |
Re: Heap Memory: [URL="http://www.cplusplus.com/doc/tutorial/dynamic/"][link][/URL] Stack Memory: [URL="http://www.cplusplus.com/doc/tutorial/arrays/"][link][/URL] | |
Re: Great, after three threads of being told to post the code, you don't use code-tags :icon_confused: Please, read the rules too. | |
Re: Check the code snippets here, there's loads on this topic. | |
Re: [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 … | |
Re: [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: | |
Re: AD even wrote a snippet to do something similar. [URL="http://www.daniweb.com/code/snippet216996.html"][link][/URL] | |
Re: [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 … ![]() | |
Re: You have to sign your application with a trusted certificate. [URL="http://msdn.microsoft.com/en-us/library/ms247066(VS.80).aspx"][link][/URL] | |
Re: 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. | |
Re: You clearly didn't search hard.[CODE]str.c_str() // returns a constant pointer to its characters[/CODE] | |
Re: What's your problem? and use code tags the next time you post code, or I promise wont reply. | |
Re: Will this do?[CODE]#define _WIN32_WINNT 0x0500 #include <windows.h> #include <iostream> int main() { ShowWindow( GetConsoleWindow(), SW_HIDE ); std::cin.ignore(); }[/CODE] | |
Re: 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. | |
Re: Since when are books free? Also, [URL="http://www.daniweb.com/forums/thread70096.html"][link][/URL] | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: Most probably some customly made ActiveX controls. | |
Re: 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. | |
Re: 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. | |
Re: 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 | |
Re: 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] | |
Re: [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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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). | |
Re: [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 :) | |
Re: 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 … | |
Re: With a hex editor? You're really going to have to be more specific if you want a good reply. | |
Re: 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 = … | |
Re: 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++. | |
Re: Try running an anti-virus while in safe mode, and see if it detects anything. | |
Re: 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. | |
Re: 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) | |
Re: [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" … | |
Re: 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 … | |
Re: I'll use whatever makes the best searches (still google imo), I don't like all this anti-windows rubbish. | |
Re: Keep to one forum, please. [URL="http://www.daniweb.com/forums/thread222584.html"][link][/URL] | |
Re: [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. | |
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 … | |
Re: 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. | |
Re: Nice well programmed snippet. | |
Re: 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 … |
The End.