5,237 Posted Topics
Re: Are we supposed to guess which [URL="http://en.wikipedia.org/wiki/Widget_toolkit"]GUI toolkit[/URL] you're using to draw your "editbox" ? Presumably said editbox comes with a manual - what does it say? | |
Re: > how would I happen to utilize a System.out.printf statement to make three columns with the three headings. 1. Read the manual 2. Make an attempt (fail) 3. Re-read the manual, more carefully this time. 4. Make another attempt (fail) 5. Post small example on the forum showing your attempt … | |
Re: > char src_port[4]; This isn't long enough to store "1591\n\0" in the first instance of calling fgets(). It isn't even long enough to store "1591\0" | |
Re: Get a real compiler and stop living in the past! What's wrong with all you people who drag around some 20+ year old "security blanket" like it's the single most important thing in their lives! So you've got to learn some new stuff - well "boo hoo". IT is one … | |
Re: Oh good, another one of those pointless "can you do... without using the obvious... " exercises which some tutors seem to enjoy giving, but which have absolutely no use outside the classroom. Print the address of two elements of an array of them. | |
Re: Do you have adequate cooling? Games will stress the hardware, so it seems to me the card just runs into thermal shutdown after a while. Further, since you've had this a while, cooling could be further hampered by the build-up of dust around the fans and heatsinks. A better fan, … | |
Re: First, indent your code. [url]http://sourceforge.net/apps/mediawiki/cpwiki/index.php?title=Indentation[/url] Second, approach the problem in small steps. Step 1 would be to just read in the data, then print it straight back to the user. Until that works, messing with 'sort' for example will just produce garbage results. | |
Re: [URL="http://unixhelp.ed.ac.uk/CGI/man-cgi?echo"]echo -e[/URL] You're not printing a \n, you're printing a literal linefeed. If you had written echo "this is a\nmoron" you would still be in the same position as with all the \v's | |
Re: Create some kind of structured array for your songs (not in-line code) So [CODE]song1_notes dw #568, #455, #380, #361 song1_times dw 1, 1, 1, 2 ; 1 is sixteenth, 2 is short[/CODE] Your song playing loop steps through the table [CODE]PlayOneSong - input parameters would be pointers to a given … | |
Re: [url]http://cboard.cprogramming.com/c-programming/125705-help-qsort.html[/url] Why? [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] | |
Re: You seem to be opening and closing the file at every node. | |
Re: [url]http://www.daniweb.com/forums/announcement9-2.html[/url] | |
Re: [url]http://cboard.cprogramming.com/c-programming/125677-c-gets-function-implementation-help.html[/url] | |
| |
Re: [url]http://shop.ebay.com/?_from=R40&_trksid=p3907.m38.l1313&_nkw=Dell+Latitude+C510%2FC610&_sacat=See-All-Categories[/url] Make a quick 20 to 30 bucks selling a working charger and a laptop for spares/repair. The only thing worth trying is to carefully remove and reseat the RAM and the cable connections. | |
Re: Crazy idea, but how about [url]http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=3165[/url] downloading the manual and reading it? | |
Re: I think you're a dumb-assed sig-link spammer reposting pith from other parts of the internet just so you can have a signature link. Ohh, looky-see http://www.computing.net/answers/windows-nt/why-does-microsoft-still-support-nt/23208.html | |
Re: Press "F1" or [URL="http://msdn.microsoft.com/en-us/library/s5b150wd.aspx"]google[/URL] | |
Re: Answer these questions: Why did you take the course in the first place? Why are you still on the course? > linux (i don't know what is it , but im waiting u to tell me ) I'm waiting for you to use a search engine. | |
Re: So what have your excellent google search skills told you so far? Wait, what's that? you haven't used google at all? | |
Re: Well that really depends on your specific OS doesn't it? | |
Re: > But to be fair, I guess this group falls under "Internet Marketers making contacts". Ah, English irregular verbs, don't you just love 'em. "I'm an internet marketer" "You're a spammer" "He's being prosecuted under the computer mis-use act" | |
Re: [url]http://www.daniweb.com/forums/thread273756.html[/url] Switching languages won't aid your understanding of the recursive nature of the problem. | |
Re: > switch (option) { > int array[100], size, value; Your array and size go out of scope (and lose their values) every time you make a new choice. Move these to an outer scope, one which persists for as long as you need it to. | |
Re: Or - download the source code for bash - hack the code which handles \w in prompt strings - suggest to the maintainers this is a handy feature between no path and ridiculously long paths - upload (or just enjoy your local mods) | |
Re: Use the fact that [ICODE]array["@domain.com"]++[/ICODE] is valid syntax. | |
Re: > here's my question: [url]http://www.daniweb.com/forums/announcement8-2.html[/url] > tips how can i start?? [code] int main ( ) { return 0; } [/code] Then - prompt for an integer - write a loop which counts backwards - then... | |
Re: Set the maximum range to say 10000, then when it comes to displaying 0.0 to 999.9, simply multiply by 10. | |
Re: Rename each main to be [CODE]int kruskels_main( int argc, char *argv[] ); int prims_main( int argc, char *argv[] );[/CODE] The driver.cpp then becomes (with a bit of fluff for choices) [code] int main ( int argc, char *argv[] ) { return kruskels_main( argc, argv ); } [/code] | |
Re: Abysmal indentation! [url]http://sourceforge.net/apps/mediawiki/cpwiki/index.php?title=Indentation[/url] WTF are lines 94 to 130 trying to do? You have two choice == 2 To stop main() becoming 100's of lines long, each choice should be a separate function. [code] if ( choice == 1 ) { doChoice1(); } [/code] | |
Re: You can do [ICODE]a = b = abc();[/ICODE] Or change the code so that it reads [ICODE]a = abc( &b );[/ICODE] | |
Re: How about starting with diff $1 $2 > resultfile.csv | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] > i was putting the finishing touches on my project and there are some errors that came up So do a diff between the last known good version and the one you broke. When you're in less of a panic, investigate [url]http://git-scm.com/[/url] | |
Re: Read this [url]http://cboard.cprogramming.com/c-programming/88495-development-process.html[/url] Then get into the habit of writing code in small steps, and compiling often. > Error 1 fatal error C1075: end of file found before the left brace '{' at line 50 But your paste has only 45 lines!? So you've either posted some irrelevant code, or … | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] Even for a 1-poster, that "question" would suck. | |
Re: > if (sd1+sd2<sd3||sd2+sd3<sd1||sd1+sd3<sd2)[B][COLOR="Red"];[/COLOR][/B] Watch the birdie! | |
Re: > if ( lastLetter== "e" && !isVowel ) You need to actually call the isVowel function, with a parameter. > in isVowel... > { return true;} So what does this return otherwise - random garbage! | |
Re: Apart from throwing in a few () and {}, the syntax is similar enough for you to at least have an attempt yourself. | |
Re: > having trouble with the print and the main The only problem with print is that you don't have any code there! Besides, printing is easy compared to the code you've "written" so far. Give it a shot - don't just dump "it doesn't work" code on us, and expect … | |
Re: [url]http://www.cplusplus.com/reference/iostream/fstream/[/url] Modern C++ compilers do not have the .h on the end of standard library includes. | |
Re: > what is the significance of the "\" and ";" at the end of the command? What is the significance of the \ to your shell? Look up quoting rules. | |
Re: > Yup Right..Can you tell me how it goes? You already said that in post #1. Like Walt said, it's all about "use and adapt". | |
Re: Break it into steps. [code] char *run( const char * const str ) { char *result = malloc( strlen(str) + 1 ); if ( result != NULL ) { strcpy( result, str ); } return result; } [/code] It's better than this, which does not check for errors. [code] strcpy( … | |
Re: > numArr[MAXSTRLEN],asciiArr[MAXSTRLEN] long ints are typically 4 bytes, so this little lot takes a whopping 8MB of stack space. You're almost certainly blowing your stack limits with this code. > for (i = 0; i < CHARS; i++) Especially as this much smaller limit seems to be applicable for at … | |
Re: Like the error message says, you can only do xor on integers. | |
Re: [url]http://www.daniweb.com/forums/thread214661.html[/url] Or what about this? [url]http://www.daniweb.com/forums/thread215022.html[/url] | |
Re: Same thing, two YEARS AGO! [url]http://forums.macosxhints.com/showthread.php?t=86526[/url] | |
Re: The code you posted won't even compile. Look at the syntax colouring of your main - line 17 is missing a closing " |
The End.