5,237 Posted Topics
Re: > Because I don't know how to write assembly code. And then what? After "we're" done writing it, "you" still won't know how to write assembly code. > Make a data file named "datafile.txt" with 100 integers, each on a separate line and each between 0 and 160. Break it … | |
Re: [url]http://forums.devshed.com/perl-programming-6/regular-expression-to-get-multi-line-comment-615434.html[/url] Getting kinda bored with your approach. | |
Re: > ifstream input("C://Users//Me//Desktop//a.txt"); ONE forward / or TWO backward \\ > while(true) With a break statement at the end? That's just trivial inline code, just delete all the control structure which you're not using. | |
Re: Less than 30 days ago, you couldn't program you way out of a paper bag. [url]http://www.daniweb.com/forums/thread190241.html[/url] Now you want to turn "pro"? | |
Re: Ah, the frequently posted "homework disguised as a quiz" ploy huh? [url]http://cboard.cprogramming.com/c-programming/116393-do-my-homework.html[/url] | |
Re: There you go [url]http://www.nondot.org/sabre/os/articles[/url] | |
Re: [ICODE]gcc -E file.c > file.i[/ICODE] Arrange for the offending file to be compiled like that. What you'll see in the .i file is your source code AFTER the pre-processor has done it's work. For one thing, it will be much longer because all the include files will be expanded. Another … | |
Re: > Anybody knows? Yes. Do you know about argc and argv ? Do you know about wildcard expansion, say myprog file* | |
Re: [url]http://cboard.cprogramming.com/cplusplus-programming/116373-why-does-keep-frezzing-up-when-i-run.html[/url] Because [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] and the implied subtext of [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: > suppose there were another planet similar to earth in composition, temperature, and atmosphere. The atmosphere of primordial earth was not one you could live in. There was no free oxygen, and a bunch of other stuff which would not help either. Nor does life have to restrict itself to … | |
Re: > i meant to say, change it to if (color && 1) What's the difference between boolean and bitwise ? | |
Re: Writing English, rather than cryptic kiddie speak would be a bonus. [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] By bonus, I of course mean necessity. | |
Re: http://clusty.com/search?query=Intel+i7+microprocessor+reference+manual&sourceid=Mozilla-search | |
Re: > Can anyone help me write the program to find the magic numbers in c/c++?? Sure, but you need to decide whether it's C OR C++ (not a random mix of both), and you need to put in some actual effort yourself. There are some unfounded rumours that there are … | |
Re: Another one [url]http://cboard.cprogramming.com/c-programming/116374-help-me-find-better-algorithm-primes.html[/url] | |
Re: [url]http://clusty.com/search?query=linux+sound+recording+howto&sourceid=Mozilla-search[/url] | |
Re: > scanf("%s", &file_name); You don't need an & here > input_file = fopen(file_name, "w"); An input file with a mode of "w" - surely not... | |
Re: Because malloc returns memory which is filled with garbage, then you try and "read" that memory (using strlen) to find a \0 Besides which, it's also a memory leak. Delete lines 6 and 7, and just go with [ICODE]char *str1 = "test_of_string\n";[/ICODE] > so when I'm strduping, will my new … | |
Re: Use a while loop and the 'shift' method to process each argument in turn. Use [url]http://software.frodo.looijaard.name/getopt/[/url] | |
Re: > CSE 221 Lab 7 Weren't you paying any attention in Labs 1 thru 6 ? Perhaps you missed the forum rules on your dash to post your homework. | |
Re: Right before [ICODE]class TestA[/ICODE] put this line [ICODE]class TestB;[/ICODE] | |
Re: > what did I do wrong You didn't compile it before handing it in. Look carefully around line 12 See how the syntax "colouring" has gone all wacky? That's because your code is broke. | |
Re: What an odd thing to say. Why on earth would you feel the need to say "virus free"? | |
Re: Because it's a frequent teaser question which some tutors think are useful in some way. Like for example printing without using a ; or making the program print it's source code or some other dumb trick. | |
Or Psychopath? [attach]10078[/attach] Lots more here. [url]http://www.telegraph.co.uk/travel/picturegalleries/5278200/Sign-language-week-48.html[/url] Made me laugh, in the midst of despair with all the greedy trough feeding SCUM [url]http://www.telegraph.co.uk/news/newstopics/mps-expenses/5298065/MPs-expenses-Four-ministers-who-milked-the-system.html[/url] [url]http://www.telegraph.co.uk/news/newstopics/mps-expenses/5292959/MPs-expenses-Ten-extraordinary-claims.html[/url] And so on ad nauseum. These fuckers should be spending all their energies on running the country (instead, just ruining it), not running around finding all … | |
Re: Well 50 is the decimal value of the ASCII character '2' If you still want a '2', then try a char array and not an int array. Chars are just small ints, but the magic of seeing '2' rather than 50 only works if you store them in char variables. | |
Re: > we must use Miracle c for this course. Drop the course. The teacher is AN IDIOT. You will learn nothing of any value at all from that doofus. That compiler is probably the worst one of any kind, and certainly THE WORST one which has the gall to ask … | |
Re: With any particular text file? Or very large text files? Use a debugger to tell you which line the abort comes from, and try to infer some reasons for getting into that state. Because you don't check your new array actually succeeded. Besides, reading the WHOLE file into memory in … | |
Re: Are you running as root? | |
Re: > i'm interested in computer programming and software development. Mmmm-kay... > help me out! Is being interested in those thing a problem? Are you tired of being called a geek? Are you fed up of being free tech support for an extended family? Do you secretly want a more "manly" … | |
Re: When they're not wasting it, they've got their snouts in the trough [url]http://www.telegraph.co.uk/news/newstopics/mps-expenses/[/url] Quick Quiz: Find a politician who left office poorer than when they entered office. | |
Re: [url]http://www.sgi.com/tech/stl/Vector.html[/url] Read the footnotes. > I cant think of any means to get around this, what should I do? - Allocate enough space to begin with. - Choose a different design which doesn't rely on preserving references for such an extended period of time. > the code I'm working with … | |
Re: Find the manual for an ARM C compiler. Look up "calling conventions" | |
Re: Are they also hiring monkeys and paying peanuts? | |
Re: > printf("%ls\n", getWChars(string((const char*)file_name.mb_str(wxConvUTF8))).c_str()); > success = ilLoadImage((const char*)file_name.mb_str(wxConvUTF8)); Some suggestions: Use a separate char array to store the final result of your conversions before calling iLoadImage. You can actually see what the final result is in your debug. It also makes sure that what you print in the debug … | |
Re: class MyApp ... goes in MyApp.h Along with any necessary includes to make MyApp.h a standalone include (that is, anyone who includes it doesn't have to go fishing to find pre-requisite includes) bool MyApp::OnInit ... goes in MyApp.cpp This includes MyApp.h Ditto for the others. In your example, MyApp.cpp would … | |
Re: > Any suggestions you have on how to find what's causing the exception would be greatly appreciated. Use a debugger. It will catch the exception, and then show you the line of code that TRIGGERED the exception. From there, you look back through the code to mentally construct how it … | |
Re: [B][url]http://clusty.com/search?query=file+transfer+vb.net&sourceid=Mozilla-search[/url][/B] | |
Re: Well before you do, you'd better check whether the tractor feed which drives the paper through the printer is before or after the print head. If it's after, then you might not be able to go far enough back without dropping traction. The other alternative is to go forward one … | |
Re: Wusses! You were all to ready to exploit the cheap overseas labour so long as the economic pendulum was swinging in your direction. Now that it's turned, you want to get off the ride? This should be a challenge and an opportunity, not run away and hide. Yeah, run and … | |
Re: Well did you check the send() result and recv() result each time? If you assume that the buffer is always sent and received "as is", then you've done it wrong, and the result will be different. All other things being correct, TCP doesn't care about your data stream, it's just … | |
Re: How nice - [url]http://www.remote-exploit.org/codes_hotspotter.html[/url] | |
Re: [url]http://www.iana.org/assignments/port-numbers[/url] You definitely need to avoid anything with a published port number. As for picking ports which are unused, it's a crap shoot. I would suggest that you make the listening ports configurable. If your s/w takes off and everyone wants to use it, then getting an assigned IANA port … | |
Re: Why not try both, and see what the difference is. | |
Re: Show us how you're reading the file at the moment, and then we can help you fix it. Don't forget to read these before posting code [url]http://www.daniweb.com/forums/announcement8-3.html[/url] [url]http://www.daniweb.com/forums/thread78223.html[/url] | |
Re: > public byte buffs[]; How many bytes? And does the function you're calling know this? Don't you need to allocate some space here? | |
Re: > //im gettin error in this line You're also getting an error in the line before. Namely if(strcmp(structPtr[COLOR="Red"][B].Msisdn[/B][/COLOR],field)==0) structPtr is void*, so there the NO .something or ->aThing you can do with a void* pointer. If you're going to use void*, then at least past the correct type into the … | |
Re: [url]http://www.daniweb.com/forums/announcement125-2.html[/url] 30+ posts, and you still don't know this? > I must make it for may classwork but it's too heavy for me Did you try, or just give up? |
The End.