2,839 Posted Topics
Is there a way to stop a piece of text from getting parsed? With BBCode we used to have [noparse] tags? | |
Re: from MSDN: [code] #include <windows.h> void clrscr(void) { COORD coordScreen = { 0, 0 }; DWORD cCharsWritten; CONSOLE_SCREEN_BUFFER_INFO csbi; DWORD dwConSize; HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); GetConsoleScreenBufferInfo(hConsole, &csbi); dwConSize = csbi.dwSize.X * csbi.dwSize.Y; FillConsoleOutputCharacter(hConsole, TEXT(' '), dwConSize, coordScreen, &cCharsWritten); GetConsoleScreenBufferInfo(hConsole, &csbi); FillConsoleOutputAttribute(hConsole, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten); SetConsoleCursorPosition(hConsole, coordScreen); }[/code] Windows only … | |
Re: > my answer to "What kind of device is IPad?" was "Crappy". The real question should be: "[Will it blend?](http://www.youtube.com/watch?v=lAl28d6tbko)" | |
Re: WriteProcessMemory expects a `void*` as buffer, but you're using a std::string. So perhaps something like : const_cast<char*>(value.c_str()) (untested) But what on earth are you trying to do? | |
Re: In addition to what Phillamon already pointed out; this snippet is hooribly broken and very poorly formatted. You would be wise not to use it. Start by showing us what you have so far and we'll see how we can help. | |
Re: Maybe you can supply some addtional information. Why are you trying to do this? Are you perhaps thinking of making a game? | |
Re: Here's a bug that looks related http://public.kitware.com/Bug/view.php?id=12332 | |
Re: Or better yet, use something standard and not OS-specific like: std::cin.get(); | |
Re: I try to avoid eating smart people, especially at parties. :twisted: | |
Re: You probably need to add your library directories to your PATH variable in the enviroment-settings. Why do you want to this if I may ask? | |
Re: >It should be super super easy though to vote without rep. Just one click. It is. However giving rep is another story. It took me a few days to figure out that "vote and comment" is a button :-/ | |
Re: Maybe add the keyboard-shortcut as a mouseover on the buttons in the editor? | |
Re: > The NEW/Target Icon needs to jump to first unread post. The technique with the current setup is > a- click on the message title > b- click on the LAST page if necessary > c- try to remember what message was last seen and/or how long ago the thead … | |
Re: > OK, the formatting tutorial has been written!! Yay! If you're referring to : http://www.daniweb.com/community/syntax ; that page isn't rendering properly for me. Bold text looks like normal text, headings and sub-heading look like normal text and there's no syntax-highlighting at all? | |
Re: Why not just use the functions that C++ offers? | |
Re: > EDIT: Hmm Why does my code tags look like that :S Like what exactly? | |
Re: >but where did the Ignore list go >I suppose as a mod ... As a mod, your ignore-button now reads "perma-ban" ;) | |
Re: > I, personally, would create another function and pass both the pointer to the original string, a desired starting point and a desired length (just like the parameters of a substring function) and return a result that is the array of characters between the start value and the requested length. … | |
Re: You're using `new` with `free`, which is a no-no. New-delete or malloc-free. At first glance it also appears that your code is over complicated. Why are you creating so much temporary objects when you're just going to delete them 3 lines later? Swapping pointers will do just fine. | |
Re: It's been six years, so I don't think the OP is interested anymore. Also, your code contains huge memory-leaks. If you use `new` you should `delete` your memory afterwards. | |
Re: You could always add your name in the search? If I wanted to find my own snippet, I would use google.com with [icode]site:daniweb.com "wxwidgets" "C++" "Nick Evan"[/icode] and voila: it's the [URL="https://www.google.com/#hl=en&safe=off&output=search&sclient=psy-ab&q=site%3Adaniweb.com+%22wxwidgets%22+%22C%2B%2B%22+%22Nick+Evan%22&oq=site:daniweb.com+%22wxwidgets%22+%22C%2B%2B%22+%22Nick+Evan%22&aq=f&aqi=&aql=&gs_sm=3&gs_upl=564l16569l0l18409l52l44l3l0l0l0l197l2564l38.6l50l0&gs_l=hp.3...564l16569l0l18409l52l44l3l0l0l0l197l2564l38j6l50l0&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=9d96a46e28b6b4bc&biw=1280&bih=670"]first hit[/URL]. | |
Re: Use AD's advice for now; but new Daniweb will support the preservation of whitepaces. | |
Re: To be honest, I didn't test Ancient's example, so it might work very good (although I see a small syntax error in it ;) ). But I also see that you [ICODE]#include <string>[/ICODE], so you are aware that C++ has a few nice tricks up it sleeve that C didn't … | |
Re: Here's a slightly modded version to make things clearer: [code=cpp] #include<iostream> #include<string> using namespace std; void rev_str(string str,int n) { if (n != str.size()) { rev_str(str,++n); cout << "n=" << n << " str[n-1]=" << str[n - 1] << "\n"; } } int main() { string str="shankhs"; rev_str(str,0); cin.get(); return … | |
Re: try: [code] while (true) { image= cvQueryFrame(capture); cvShowImage("Window", image); }[/code] | |
Re: [code] std::cout << circles->total; [/code] ? | |
Re: This code won't work. The very first line is already wrong: [icode]#include<iostream.h>[/icode]. Any compiler from the last decade will tell you "include file not found". At that's just the first of many problems with standard-C++ in your code. | |
Re: In the meantime: Could you post the link to the thread you're trying to report? | |
Re: and/or [URL="http://www.cplusplus.com/reference/clibrary/cctype/isdigit/"]isdigit()[/URL] | |
Re: Wow.. This guy is really unbelievable. Normally we only get "help me cheat my asssigment" people. Now we have a "help me cheat my way through this entire class" person and that's a first if you ask me. | |
Re: [QUOTE=cwarn23;1702416]Could somebody please review my previous comment and perhaps put it forward as a part of the system?[/QUOTE] Have patience. We're quite busy at the moment. | |
Re: You have 30 minutes to edit your post. After that, the edit button disappears. | |
Re: [QUOTE=unk45;701127]yeah i cant use vectors cuz i never learnt how do it[/QUOTE] Why not [URL="http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c4027/"]learn [/URL]them now? | |
Re: Excellent post. Since we're receiving a lot of question about Big-O, I've decided to make this post a "sticky" in the CS-forum. So this means that all future replies to this thread [U]must be on-topic[/U]. Do not post your support question in this thread, but start a new thread for … | |
Re: ....and deleted the rest of the occurrences :) | |
Re: However you still use [icode]system("cls");[/icode] :icon_smile: | |
Re: Sounds great. Now lets hope it works equally well for C++, since I don't know any Java, but use Netbeans for C++ on Linux :) | |
Re: [QUOTE=cscgal]It means the web servers are out of sync. I'll reach out to blud.[/QUOTE] It's either that or the space-time continuum was distorted in the serverroom or AD's living room. | |
Re: Bill Gates money: [attach]22940[/attach] Michael Jordan: [attach]22938[/attach] I don't see any resemblance. | |
Re: I would tempted if it was in Britain. My work unfortunately doesn't allow me to fly half way across the world for a party :) | |
![]() | Re: >> I'm still logged in. Can't seem to log out I have the same problem on Ubuntu + FF. What OS and browser are you using? ![]() |
Re: However because I was in a good mood, I edited your post and removed your real name from it. But the rest of the post will stay as explained by Happygeek | |
![]() | |
Re: Among a lot of other problems this curly bracket on line 27 is misplaced. You should probably place it [I]after[/I] the statement, instead of in front of it. | |
Re: I thought the general idea with Apple was that it doesn't matter [I]what [/I]is does; as long as it looks damn good doing it ;) | |
![]() | |
Re: Here's a [URL="http://www.daniweb.com/techtalkforums/thread63827.html"]link [/URL]for you |
The End.