5,676 Posted Topics

Member Avatar for Falkoner1

[QUOTE=Nishinoran;672310]The google search you posted did not have anything related to programming. [/quote] It actually did answer the question [B]AD[/B] thought you asked. Which was more than I could do because to me your question doesn't make sense. What does the [icode]system()[/icode] command have to do with the size of …

Member Avatar for Falkoner1
0
175
Member Avatar for MattEvans

[QUOTE=Radical Edward;671785][QUOTE=MattEvans;671715]- How does endian-ness work? If two bytes A and B are written ( in that order ) into a file using put, then read on a machine with reversed endian-ness, do the bytes come out in a different order ( i.e. B, A ), or do they come …

Member Avatar for MattEvans
0
192
Member Avatar for bincy ashok

Since comments cannot be nested, a stack really is not necessary. A simple flag would suffice. Although a stack would be really helpful if you are looking for braces/parens/etc, things that [I]can[/I] be nested.

Member Avatar for WaltP
0
99
Member Avatar for wussa

[QUOTE=iamthwee;668029]What is the point of the end return? etc etc.[/QUOTE] To return from the function, probably. :icon_rolleyes: Just because [I]you[/I] don't want to be explicit doesn't mean others shouldn't be. And what [I]etc etc[/I]? I don't see that anywhere in the code. [B]xitrum69[/B], you should really have braces around your …

Member Avatar for paragt
0
164
Member Avatar for mhil_joy

Lives in Philippines -- "be more [I]pacific[/I]"! Ha Ha, that's funny!!!:)

Member Avatar for WaltP
0
56
Member Avatar for mancode1007

Such a mass of bad suggestions! [B]Arkm[/B]'s 1st post is a good suggestion for the read, but alas, the suggestion for using [url=http://www.gidnetwork.com/b-58.html]feof()[/url] is fraught with peril, and his [url=http://www.gidnetwork.com/b-38.html]formatting[/url] is atrocious (please click the links). And his second post is just wrong. [B]Salem[/B] then reiterates the easiest and most …

Member Avatar for jephthah
0
2K
Member Avatar for Cosa

IMAO, a restructure of the data file should be done. Don't rely on a number to tell you that you're done with the tracks. I know many songs that start with a number: [I]76 Trombones 8675309[/I] for example. Add to each line a type value that tells you what the …

Member Avatar for Cosa
0
122
Member Avatar for THAPELO

[QUOTE=gregorynoob;669912][QUOTE=williamhemsworth;669917]hmmmm but why would we expect anything else but integers between 1 and 100?[/QUOTE] Thats not really the point ^_^ But its always good practice to make sure that there are no warnings what so ever.[/QUOTE] [B]williamhemsworth[/B] is correct. And in addition, haven't you ever heard of [I]extra credit[/I], or …

Member Avatar for Narf!!!
0
104
Member Avatar for thatoneguyx

Compilers in no particular order [url=http://www.codeblocks.org/downloads.shtml]Code::Blocks[/url] [url=http://msdn.microsoft.com/vstudio/express/visualc/]MSVC++ Express[/url] [url=http://www.openwatcom.org/ftp/]Open Watcom C++/Fortran[/url] [url=http://www.bloodshed.net]Bloodshed DevC[/url] [url=http://cc.codegear.com/Free/turbocpp]Turbo C++ Explorer 2006[/url] [url=http://www.borland.com/downloads/download_cbuilder.html]Borland 5.5[/url]

Member Avatar for ArkM
0
122
Member Avatar for masterjiraya

And few are willing to try to understand 167 lines of uncommented code not knowing what they are looking for. Try some explanation and detail so we don't have to waste our time. And if [B]iamthwee[/B] is right about point 1 (too bad he didn't link to proof)...

Member Avatar for WaltP
0
130
Member Avatar for manzoor

[B]Jencas[/B] is correct. You might want to set a flag to stay in the loop (set to TRUE before entering the loop). Then in the loop set up a nested [I]IF[/I]: [code] IF the coordinates are good { IF the location is EMPTY { set the flag to FALSE so …

Member Avatar for WaltP
0
124
Member Avatar for pipisumthin

1) Copy the file 2) close the files 3) Open both files for read 4) read each file byte by byte and make sure both bytes are identical. If not, bad copy. 5) if you hit EOF at the same time, the files are identical 6) close the files 7) …

Member Avatar for WaltP
0
257
Member Avatar for me_roy

WOW! 4 pieces of code to choose from! Which one works best? Which to choose to turn in as the assignment answer? C'mon guys, we're here to [I]help[/I], not do everyone's assignments for them!

Member Avatar for WaltP
0
435
Member Avatar for techie2008
Member Avatar for flaco

[QUOTE=Junyah;303219]But I found when I'm not looking .. I meet the nicest women.[/QUOTE] This is also what I've found... To paraphrase [B]pty[/B], look at it from a different perspective. You've had 23 girlfriends. That's more than most so you've got something good going for you. Are you still friendly with …

Member Avatar for steven woodman
0
674
Member Avatar for iansane

Or you could just say [ICODE]system("notepad file.ext");[/ICODE] instead of passing arguments to a function that does nothing more than that anyway. Or if you want the command in a string, just use: [CODE=cpp] string command = "notepad file.ext "; ... system(command.c_str()); [/CODE]

Member Avatar for iansane
0
296
Member Avatar for arun_lisieux

You don't need an array at all. Your idea [QUOTE=arun_lisieux;666239] 1) Get the no as input along with the no of digits 2) Separate the digits by collecting remainders of division by 10. 3) Use the digits, perform the function S(X). [/QUOTE] is close. All you need for #1 is …

Member Avatar for arun_lisieux
0
211
Member Avatar for ciencia

Did you miss reading all of the information posted all over this site about CODE tags, like 1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when you registered 2) in the text at the top of this forum 3) in the announcement at the top of this forum titled …

Member Avatar for William Hemsworth
0
125
Member Avatar for osirus0830

A slightly more direct explanation: [code=Cpp] temp = word[i]; // Save the 1st letter word[i] = word[j]; // put the 2nd letter where the 1st was word[j] = temp; // put the 1st letter where the 2nd was [/code] And please learn to [url=http://www.gidnetwork.com/b-38.html]format your code[/url]. It's much easier for …

Member Avatar for gregorynoob
0
185
Member Avatar for Cosa

First thing I noticed when you opened the save file was [CODE] ins.open(savefile, ios::in);[/CODE] What does [I]ios::in[/I] mean? [the question is a hint]

Member Avatar for Lerner
0
142
Member Avatar for sting_010

Another lazy attempt at getting help -- with no Code Tags. Why didnt you read any of the requested information posted all over this site about CODE tags, like 1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when you registered 2) in the text at the top of this …

Member Avatar for Salem
0
200
Member Avatar for the reaper

And [url=http://www.gidnetwork.com/b-59.html]this series[/url] will explain why you should generally avoid [icode]scanf()[/icode]

Member Avatar for WaltP
0
260
Member Avatar for mjoshi
Member Avatar for Aia
0
417
Member Avatar for Abakiz

[QUOTE=Abakiz;663322]My problem is that ...[/QUOTE] ... you can't be bothered to read any of the requested information posted all over this site about CODE tags, like 1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when you registered 2) in the text at the top of this forum 3) in …

Member Avatar for WaltP
0
85
Member Avatar for Dave Sinkula
Member Avatar for WaltP
0
123
Member Avatar for DanDaMan

[QUOTE=Aia;659121][QUOTE=DanDaMan;659112]Now I'm really confused. When I don't include system("PAUSE"); then the console screen just pops up and instantly disappears. [/QUOTE] [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1042856625&id=1043284385"]Look here[/URL][/QUOTE] Or, to keep it on site, [url=http://www.gidnetwork.com/b-61.html]look here[/url]. :icon_wink:

Member Avatar for DanDaMan
0
160
Member Avatar for gispe

Second problem is you are forgetting that the RETURN you type in is also a character that gets put into the buffer. Therefore, in this code: [code=cplusplus] cout << " Empezar?? " << "\n"; // TO START cout << " 1 - SI" << "\n"; cout << " 0 - …

Member Avatar for vmanes
0
95
Member Avatar for shankhs

[QUOTE=Tilir;658760]Implicit type casts works (as usual in C) in strange inpredictable manner.[/QUOTE] Since [I]inpredictable[/I] is not a word, I assume you mean [I]unpredictable[/I]. The problem with this statement is that casts are [I]completely[/I] predictable. Can you give us an example that is strange and unpredictable?

Member Avatar for Prabakar
0
154
Member Avatar for bpacheco1227

[QUOTE=bpacheco1227;659138]I think I fixed everything now the program end abruptly after the second menu. I've tried a number of things, couldn't get it , I'm not giving up just looking for a slap in the face and a pointer in the right direction. How do you guys stay sane with …

Member Avatar for mitrmkar
0
200
Member Avatar for swaira umar

sms 2 me tht u hv a prblm. snc we no u so well, we sgst cndl mkg. its mch ezr thn cptr

Member Avatar for vmanes
0
127
Member Avatar for JANINE
Member Avatar for maydhyam
0
1K
Member Avatar for cmatos15

[QUOTE=cmatos15;656365]So here's what I have so far, I know it's not correct but I think im on the right path, can someone let me know whats wrong...[/QUOTE] Actually, it's [B]your[/B] job to tell us what's wrong, not let us try to figure out what the program is doing and what …

Member Avatar for cmatos15
0
2K
Member Avatar for tapaditap

Where are you having the problem? What does the program do wrong? What makes it wrong? What should it do instead? When asking for help it's necessary to [I]explain[/I] the problem, not just toss 3 ambiguous sentences together without punctuation making it hard to decipher your meaning.

Member Avatar for ArkM
0
110
Member Avatar for rob_xx17

[QUOTE=ArkM;655787]Don't waste the time, you live in C World now: [code=c] ++array[indexNum]; [/code][/QUOTE] I've always preferred the post-inc format [iCODE]array[indexNum]++;[/iCODE] for some reason. It's programmer's choice since they both ultimately do the same thing. And just for completeness, you can also do [iCODE]array[indexNum ] += 1;[/iCODE] Not extremely useful for …

Member Avatar for ArkM
0
116
Member Avatar for still_learning

For starters, you typed right over the instructions on using code tags to make the code readable, and obviously didn't read the post titled "Read Me: Read This Before Posting"... The recursive function must: when called, 1) output a specified number of *s and SPACEs. 2) test if the value …

Member Avatar for Pikachumanson
0
468
Member Avatar for mengmarc

Since we don't know what the desired output is nor what the program is supposed to do, what can we tell you?

Member Avatar for Narue
0
277
Member Avatar for The Dude

Argent's "Liar" done by Three Dog Night I've actually got a couple that go the other way. Springsteen's "Blinded By the Light" is rotten, but Manfred Mann made a great cover of it.

Member Avatar for The Dude
0
173
Member Avatar for galaxies

[code] Open .txt file Start a loop: read each line into a string if the line starts with "id=" take the rest of the string and do what you need with it End loop [/code]

Member Avatar for fidodidoss
0
144
Member Avatar for shriagni

You need two loops, not 1. For all digits before the decimal, you need to multiply the total by 10 then add the value. Byt the way use a [I]while[/I] loop. When you get to the decimal you need to start a new loop to deal with the characters after.

Member Avatar for Prabakar
0
279
Member Avatar for J_M44053
Member Avatar for xtremeham
0
216
Member Avatar for paolomontero

The program you're writing will work on [B][I]ANY[/I][/B] C compiler, even [I]piece of crap[/I] compilers, which Turbo C is not one of. It pisses me off every time someone denegrates good compilers just because they are older. If they do exactly what the user needs, it's fine. It just can't …

Member Avatar for paolomontero
0
228
Member Avatar for champnim

[QUOTE=champnim;624325]I have a string of the form "abcd\"1234\"efgh". I want to extract 1234 from this string. How should I do this?[/QUOTE] That depends on if you need to 1) find [I]1234[/I] in the string and extract it 2) find the two "s and extract what's between them 3) extract the …

Member Avatar for WaltP
0
282
Member Avatar for sfurlow2

It removes up to INT_MAX characters from the input buffer, basically clearing the buffer.

Member Avatar for Nick Evan
0
115
Member Avatar for Jboy05

[B]Jboy05[/B], it's rude to post continuously just to bump your thread. The people here have lives outside the forum and 9 of the 14 posts here are yours. Patience!!! Next, ignore everything [B]zhelih[/B] said. Stacks are not needed at all. Do you know how to use a [ICODE]while[/ICODE] loop? Do …

Member Avatar for tesuji
0
270
Member Avatar for tejapedada

It would be best to let us know what O/S and compiler you are using so we don't have to guess, as [B]jephthah[/B] was forced to do. They all have different ways to accomplish the task.

Member Avatar for WaltP
0
113
Member Avatar for OboroNinja

[QUOTE=OboroNinja;45736]I wanna share with my friends but they dun have QBasic on thier comp. Ill put my programs on a floppy disc an give it to em but i cant figure out how to make them able to run without the actual QBasic program. It gets so frustrating! :evil:[/QUOTE] There …

Member Avatar for JRB6478@ATT.NET
0
248
Member Avatar for ~bleach~

You also need to [url=http://www.gidnetwork.com/b-38.html]format your code[/url] so we can read it.

Member Avatar for Duoas
0
135
Member Avatar for handytxg

You cannot compare character strings in this manner. You need to use one of the string functions. You probably want [icode]if ( strcmp(argv[1], "e") == 0 )[/icode]

Member Avatar for handytxg
0
96
Member Avatar for towhidd
Member Avatar for WaltP
0
283
Member Avatar for Ancient Dragon

[QUOTE=jbennet;611223]yeah, to be fair, zips have been common since windows 3.1[/QUOTE] Long before that, even. So what would you suggest, [B]Midi[/B] so 100% of the people can use the files? Instead of only 99%... :icon_rolleyes:

Member Avatar for sarehu
0
234

The End.