2,839 Posted Topics
Re: I can't read this code. Remove the extra whitelines and repost it. | |
Re: [quote]Or to give me another idea like how to get info from /proc/cpuinfo[/quote] Sure: [icode]system("more /proc/cpuinfo > /tmp/file");[/icode] Now just open the file /tmp/file and read the data that you want. Or you could use a named pipe with one end in your C-program and "more /proc/cpuinfo" in the other. … | |
Re: [QUOTE=Elihu5991;]P.S .. Check your private messages.[/QUOTE] Asking for help through PM's is against our [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]: [quote] # Do not ask anyone (member or moderator) for help by email or PM[/quote] | |
Re: >> First, sorry for posting this here, but I couldn't find a VBScript forum on Daniweb (which I find surprising) I was also surprised. I could've sworn we had a forum for this in the past. I've started a thread about it in the behind-the-scene forums, so I'll get back … | |
Re: Don't know the fastest, but you could start [URL="http://www.open-std.org/jtc1/sc22/wg21/docs/standards"]here[/URL] | |
Re: >>I will ask the moderators to move this over to the .Net forum Moved. | |
Re: You could use [URL="http://www.computerhope.com/attribhl.htm"]attrib[/URL] | |
Re: [QUOTE=Fbody;]Returning an int from main() is what is required by the standard. The normal return from main() to indicate no errors occured is zero (0). Thus, the absolute minimum standards-compliant program is:[CODE]int main() { return 0; }[/CODE][/QUOTE] Actually, the minimum standard-complaint C++ program is: [code] int main() { }[/code] Because … | |
Re: I think I speak for all of us, when I say: What on earth are you talking about? [edit] >>Huh??? Brilliant minds apparently think alike :icon_razz: | |
Re: [QUOTE=AndreRet;]Kellymomm - I don't think you have posted on the actual post you wanted.... This is an entirely different subject???[/QUOTE] (s)he was a spammer. They copy some interesting sounding text from somewhere, paste it here and add a link to their own website. This is highly against DW-rules (keep it … | |
Re: >> please post java-related question in the java forum Moved. | |
Re: How about using [URL="http://www.google.nl/search?hl=nl&q=java+media+framework+download&btnG=Google+zoeken&meta="]google[/URL]? By clicking the second link you would find [URL="http://java.sun.com/javase/technologies/desktop/media/jmf/"]this[/URL] | |
Re: >>But it's against the rules to have multiple accounts No it isn't. It's against the rules to have an multiple accounts to circumvent a ban. Besides, I [I]know[/I] you have multiple accounts, so if you're saying that it's against the rules to have multiple accounts, I should ban you right … | |
Re: 1. find out where the file 'PocoFoundation.lib' is on your pc 2. Go to project->....properties->Configuration properties->linker->general 3. In the field "Additional library directories" type the path you found at 1. | |
Re: [URL="http://www.daniweb.com/forums/post1332761.html#post1332761"]Crosspost[/URL]. Closed | |
Re: [URL="http://www.daniweb.com/forums/post1332761.html#post1332761"]Crosspost[/URL]. Closed | |
Re: We also have an option to leave expiring redirect? Perhaps we could leave a redirect that's only active for 2-3 days? But that's up to Dani/Davey to decide. | |
Re: [B]>>Do you read the DaniWeb news stories?[/B] Almost never.. [B]>If not ... what about them doesn't interest you?[/B] I'm not an overall Geek. I actually have hobbies and interests that aren't related to anything IT'ish. I just program C++ and play an occasional game, I don't really care for using … | |
Re: [QUOTE=NicAx64;1331684]hi, I know this thread is very old,I came here to dig the thread, and I want to acknowledge all that link is now not working. Please be kind enough to update that link again .[/QUOTE] Behold: The amazing powers of "Google" -> [URL="http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=jwsmtp&aq=f&aqi=g1&aql=&oq=&gs_rfai=&pbx=1&fp=66c068866a123d01"]Click[/URL]. :icon_wink: | |
Re: If your using windows, you could try this demo: [code] #include <iostream> #include <windows.h> int main() { HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE); for (unsigned i = FOREGROUND_BLUE; i != COMMON_LVB_LEADING_BYTE; ++i) { SetConsoleTextAttribute(console, i); std::cout << "Pretty colors! "; } }[/code] | |
Re: >> [icode] for(unsigned short i = n_elements - 1; [COLOR="Red"]i >= 0[/COLOR]; i--)[/icode] What you're saying here is : "As long as i is greater than [U]or the same as 0[/U], decrement i." So when I is 0 this statement will still be true and "i" will be decremented. Because … | |
Re: Nope. Chances are that I learn something from Narue if the topic is on algorithms and from AD if the topic is Win32. So I open these thread more often than thread named "I need x in Turbo C++ asaP!" with last poster "newbie_no_clue_@_all". And besides: nobody is perfect, so … | |
Re: Hello, [quote]please kindly help with how he got it all done.[/quote] What's your question? I've looked at your [URL="http://www.daniweb.com/techtalkforums/search1862636.html"]other posts[/URL], but don't understand what your saying. | |
Re: [URL="http://www.daniweb.com/forums/thread310575.html"]closed[/URL] | |
| |
Re: [QUOTE=kes166;]Can't you just get rid of all the if statements, and use [code] cin >> sp[index - 1].name >> endl; //etc ... [/code] And then the same concept for the viewSpeaker?[/QUOTE] What would happen if index <= 1 ? | |
Re: @prvnkmr449: I've seen a few posts from you now and I get the idea that you don't know that you're writing non-standard code. The program above will run perfectly fine on TurboC, but on any other compiler from the last five-ten years it won't compile. It's time to update to … | |
Re: [QUOTE=cscgal;]I readded the rule "Do not post articles that you have already published on another website" that seemed to have gone away amongst the rule redesign.[/QUOTE] It got kinda covered by : # Do ensure you own the intellectual property rights to everything that you post # Do not post … | |
Re: download my attachment and store it in [B]c:\[/B] then run this: [CODE=cplusplus]int main() { system("mspaint c:\\mm.jpg"); return 0; }[/CODE] (only works on windows) Your welcome!:-/ | |
Re: It's just a new type of post like "code snippet" or "news story". So, no, it isn't spam :) | |
Re: [CODE]New_members_chased_away_this_month ++; [/CODE] | |
Re: On a side note; you could use std::bitset to do the conversion relatively easy: [code] #include <iostream> #include <bitset> int main() { unsigned long in = 1234567; std::bitset<32> out(in); std::string out_str = out.to_string(); std::cout << out_str; }[/code] | |
Re: I have never heard of it, but if they ask $70 for a tutorial my answer would be: [U]No[/U]. Just start with [URL="http://nehe.gamedev.net/lesson.asp?index=01"]Nehe[/URL], it's free and very good. | |
Re: Flamewar prevention: closed. @chandaboy: [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Read the rules[/URL], then you would have known: [quote] Do not hijack old threads by posting a new question as a reply to an old one Do not write in all uppercase or use "leet", "txt" or "chatroom" speak [/quote] | |
Re: Just overload the function? [code] void function(char a) { std::cout << "with char"; } void function(char a, char b) { std::cout << "with 2 chars"; } void function(std::string a) { std::cout << "with string"; } void function() { std::cout << "with no arguments"; } void function(int a, int b, int … | |
Re: [QUOTE=jbennet] No mobile device development on that version whatsoever, you need the professional 2005 ( [/QUOTE] True, but you can download the PRO version from microsoft.com, it's a 90-day trial and works great. I use it to with C/C++/VB.net mobile projects. | |
Re: Homework? If yes: show us what you've done. Is this a training for 2d-arrays? Because I can think up a few much more 'C++ ways' to solve this problem.. | |
Re: C++ is not a program it's a language. Your question is similar to "Where can I download the English?" Unfortunately we don't live in the Matrix where we can download knowledge directly into our brains. | |
Re: [B]>> google[/B] Since when is google a forum? Anyway: I started out on gidforums then came here. I have an account on a variety of fora, but my DW-account is the only one that has more then ~50 posts. | |
Re: Perhaps you could add an option to the UserCP to turn the entire menu off? | |
Re: ABP is blocking: ##.ad_leaderboard ##.ad_text [url]http://img1.cdn.adjuggler.com/banners/ajtg.js[/url] [url]http://pagead2.googlesyndication.com/pagead/show_ads.js[/url] [url]http://www.daniweb.com/forums/clientscript/scripts/adsense_postbit.php?channel=0252963766[/url] on this page | |
![]() | Re: You could try right-clicking the executable, then select properties. Go to the compatibility-tab and select 'windows 95'. This may or may not work, I never used Turbo in WinXP. [quote=Narue;358141]You know, you could just say that you're being forced to use that compiler instead of being a jerk about it.[/quote] … |
Re: >> I have already done part2a and 2b Prove it. We only give homework if you show some effort yourself! | |
Re: [QUOTE=juliajosh;1168869]how to blink output using turbo c++ 4.5[/QUOTE] How about you actually [I]read [/I]the replies in this thread? | |
Re: What on earth are you trying to accomplish with this "code"? | |
Re: I give out that link on a semi-regular basis and this is the first time that I hear that it's only accessible to Mods... :( So apperantly something has changed, because back in the days when I still was a "normal humans" (thanks AD..) I could read the announcements. Maybe … | |
Re: >> but it was displayed as only three months old Actually it said: "This thread is MORE than 3 months old..." | |
Re: [quote]But before I do, I need to know if it is a wise approach to use Ubuntu to compile for a Linux server. I know Ubuntu is based on Linux, but is that sufficient to justify this approach to the problem?[/quote] You don't compile with Ubuntu, you compile with a … |
The End.