5,237 Posted Topics

Member Avatar for meshari

> 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 …

Member Avatar for Salem
0
112
Member Avatar for damoose08
Member Avatar for oryesyes

[url]http://forums.devshed.com/perl-programming-6/regular-expression-to-get-multi-line-comment-615434.html[/url] Getting kinda bored with your approach.

Member Avatar for KevinADC
0
105
Member Avatar for CppFTW

> 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.

Member Avatar for CppFTW
0
146
Member Avatar for candidz

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"?

Member Avatar for Josh Connerty
0
153
Member Avatar for Aggresive_Mind

Ah, the frequently posted "homework disguised as a quiz" ploy huh? [url]http://cboard.cprogramming.com/c-programming/116393-do-my-homework.html[/url]

Member Avatar for Salem
0
138
Member Avatar for nain_tara
Member Avatar for ithelp
0
85
Member Avatar for ShaneM

[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 …

Member Avatar for ShaneM
0
164
Member Avatar for anydam

> Anybody knows? Yes. Do you know about argc and argv ? Do you know about wildcard expansion, say myprog file*

Member Avatar for jephthah
0
6K
Member Avatar for azjherben

[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]

Member Avatar for azjherben
0
127
Member Avatar for jephthah

> 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 …

Member Avatar for jephthah
1
149
Member Avatar for seemant_sun

> i meant to say, change it to if (color && 1) What's the difference between boolean and bitwise ?

Member Avatar for William Hemsworth
0
382
Member Avatar for SAFC
Member Avatar for seriousgeek

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.

Member Avatar for Stinomus
0
166
Member Avatar for nuliknol

http://clusty.com/search?query=Intel+i7+microprocessor+reference+manual&sourceid=Mozilla-search

Member Avatar for nuliknol
0
144
Member Avatar for patria987

> 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 …

Member Avatar for Salem
0
175
Member Avatar for kostasxx

Another one [url]http://cboard.cprogramming.com/c-programming/116374-help-me-find-better-algorithm-primes.html[/url]

Member Avatar for vs.vaidyanathan
0
200
Member Avatar for gumber

[url]http://clusty.com/search?query=linux+sound+recording+howto&sourceid=Mozilla-search[/url]

Member Avatar for JustinJose12002
0
229
Member Avatar for lecotti

> 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...

Member Avatar for BestJewSinceJC
0
107
Member Avatar for monkey_king

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 …

Member Avatar for fpmurphy
0
245
Member Avatar for SoulMazer

Use a while loop and the 'shift' method to process each argument in turn. Use [url]http://software.frodo.looijaard.name/getopt/[/url]

Member Avatar for SoulMazer
0
110
Member Avatar for ultrAslan

> 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.

Member Avatar for Ancient Dragon
0
72
Member Avatar for abhishek2301

Right before [ICODE]class TestA[/ICODE] put this line [ICODE]class TestB;[/ICODE]

Member Avatar for mirfan00
0
141
Member Avatar for Gewalop

> 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.

Member Avatar for mirfan00
0
148
Member Avatar for cppnewb

What an odd thing to say. Why on earth would you feel the need to say "virus free"?

Member Avatar for redisputed
0
108
Member Avatar for rukunaditya

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.

Member Avatar for Narue
0
171
Member Avatar for Salem

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 …

Member Avatar for Aia
1
291
Member Avatar for kylcrow

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.

Member Avatar for kylcrow
0
137
Member Avatar for mysong

> 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 …

Member Avatar for mysong
0
393
Member Avatar for vishy_85

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 …

Member Avatar for Stinomus
0
153
Member Avatar for cesar7160
Member Avatar for Buckers

> 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" …

Member Avatar for kenji
0
118
Member Avatar for Aia

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.

Member Avatar for GrimJack
0
167
Member Avatar for ganbree

[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 …

Member Avatar for ArkM
0
96
Member Avatar for pradeepmisra
Member Avatar for ithelp
Member Avatar for OffbeatPatriot

> 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 …

Member Avatar for Salem
0
351
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stinomus
0
98
Member Avatar for Daria Shmaria

> 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 …

Member Avatar for Daria Shmaria
0
404
Member Avatar for daniwebseenu

[B][url]http://clusty.com/search?query=file+transfer+vb.net&sourceid=Mozilla-search[/url][/B]

Member Avatar for Salem
0
94
Member Avatar for ravindransrm

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 …

Member Avatar for Salem
0
88
Member Avatar for cristane

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 …

Member Avatar for serkan sendur
0
186
Member Avatar for sdas7

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 …

Member Avatar for William Hemsworth
0
1K
Member Avatar for tonig_ccc
Member Avatar for siddhant3s
0
134
Member Avatar for neutralfox

[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 …

Member Avatar for JamesCherrill
0
154
Member Avatar for Talguy
Member Avatar for amateur2009

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]

Member Avatar for Salem
0
62
Member Avatar for henks

> public byte buffs[]; How many bytes? And does the function you're calling know this? Don't you need to allocate some space here?

Member Avatar for kvprajapati
0
135
Member Avatar for karthik.c

> //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 …

Member Avatar for karthik.c
0
2K
Member Avatar for polo_coins

[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?

Member Avatar for jephthah
-1
777

The End.