5,676 Posted Topics

Member Avatar for alonewolf23

You've been told twice that your [iCODE]digits()[/iCODE] needs a parameter. [B]jonsca[/B] even provided you with the format of a function. Now, go back to your book, look at the section on [I]functions[/I] and read it. Look at the examples. Then try to make [iCODE]digits()[/iCODE] look like those examples. If it …

Member Avatar for jonsca
0
841
Member Avatar for 123Faisal

Please send me a copy of the book by the fastest route possible. Then I can look at the problem, laugh at how simple it is, then wonder if someone else helped you cheat while I waited.

Member Avatar for WaltP
-2
97
Member Avatar for saadahkh

Just because [B]ravenous[/B] miscounted does not make his suggestion wrong. Do as recommended.

Member Avatar for WaltP
0
516
Member Avatar for sanjanac++

If windows.h does not come with the compiler, downloading it won't help. You just can't use it.

Member Avatar for ravenous
0
95
Member Avatar for NickPatton

You need to stop thrashing about just trying things, and not understanding what you are using. Everything you need is in the [I]time.h[/I] header. Find an explanation of the functions and structures it contains (GOOGLE) and read it. Then you will be able to do this task with ease. It's …

Member Avatar for NickPatton
0
233
Member Avatar for linova

Use the character read from the file as an index into the array [B]The Dragon[/B] mentions, and increment that value. Then when done, look through that array using an index and if the element is > 0, output the index as a character. [B]The Dragon[/B] already gave you the code.

Member Avatar for WaltP
0
159
Member Avatar for Cup of Squirrel

Compilers [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] [url=http://www.cygwin.com/]cygwin[/url] Pick one.

Member Avatar for mslade
1
2K
Member Avatar for alone882

Keep a flag: [code] EnterKey = 0 if character = [ENTER_KEY} then EnterKey = EnterKey +1 [/code] You'll have to figure out what causes the flag [I]EnterKey[/I] to be reset to 0.

Member Avatar for jeff.reith
0
331
Member Avatar for luke1705
Member Avatar for abelingaw
Member Avatar for AndreRet
0
674
Member Avatar for zachman1094
Member Avatar for Ancient Dragon
0
4K
Member Avatar for ft3ssgeek

Open the .txt file for input Open the .html file for output Output the header Read the .txt file Write it to the output file Close both

Member Avatar for Ancient Dragon
0
136
Member Avatar for gregorynoob

It's called a depth-first search since you know the maximum number of moves. Start with the unsolved starting point 3 5 2 8 7 1 4 6 9 Then generate the first possibilities with upper-left 1) 832 751 469 saving this solution Then rotate again, 2) 782 351 469 and …

Member Avatar for frogboy77
0
168
Member Avatar for Benkyou
Member Avatar for WaltP
0
47
Member Avatar for Akill10

[QUOTE=Akill10;]sorry, you maybe didn't see my edit, but would you be able to answer my other question? Thanks alot.[/QUOTE] That's why you souldn't edit posts except to correct mistakes...

Member Avatar for Akill10
0
128
Member Avatar for exekiel101

[QUOTE=exekiel101;]how can i make it correct???[/QUOTE] By formatting the code so we can read and follow it. By running it and seeing what it does wrong. By looking at what it does wrong and finding the problem area. By adding [ICODE]cout[/ICODE] statements to see what variables are wrong at a …

Member Avatar for WaltP
0
119
Member Avatar for kyros

First off, your formatting makes your code difficult to read. [url=http://www.gidnetwork.com/b-38.html]See this[/url] for assistance. [QUOTE=kyros;]hello everyone my aim is to count different words from text file and write them to output file with the number of occurences.but my code didn't work,I don't know the mistake but I think my read …

Member Avatar for WaltP
0
228
Member Avatar for fab2

[QUOTE=fab2;]I do apologise if I am not using the CODE and the ICODE correctly. [/QUOTE] This is a new one. Apologizing for not using something correctly that wasn't even attempted. [B]Use Advance Editor[/B] would have told you immediately.

Member Avatar for fab2
0
115
Member Avatar for sankalp_999

That's because it's [I]conio.h[/I]. But keep it commented out. You shouldn't be using it anyway -- it's not a standard header and if you get used to using it, when you change compilers you'll have problems because all your [I]conio.h[/I] functions will no longer exist and you'll have to weed …

Member Avatar for sankalp_999
0
2K
Member Avatar for magaiver

I have no idea what your first code is doing. The loop makes no sense, neither does the output. As for command line parameters, [url=http://www.gidnetwork.com/b-45.html]see this[/url] And for your first post: Code tags -- fantastic! Thank you! Code -- fair attempt at formatting the code. [url=http://www.gidnetwork.com/b-38.html]Check this out[/url] for more …

Member Avatar for WaltP
0
171
Member Avatar for l1ttledb

Output the character before returning, see if it's being read properly. And [url=http://www.gidnetwork.com/b-60.html]see this[/url] about your [iCODE]scanf()[/iCODE] [QUOTE=l1ttledb;]edit: think its ok, how come i had to put [B]char[/B] graphic_choice( char x ),... [/QUOTE] Because you are defining the function as returning a character. [QUOTE=l1ttledb;]... i didn't have to put this …

Member Avatar for sree_ec
0
274
Member Avatar for Dizzzy

Are [QUOTE=Dizzzy;1123178]other webpages of huge sizes and txt file[s][/quote] binary files? I suspect not. [ICODE]strcat()[/ICODE] is only useful on text, not binary information. [B]nezachem[/B] is correct because an image is binary. You need a different way of processing non-text information.

Member Avatar for NicAx64
0
266
Member Avatar for TomaCukor

[QUOTE=TomaCukor;1428450]so now im trying to read integers from input untill input is eof or blank line(line was left empty and enter was hit) ... ive found some codes(getline ) but it only applies for char type ! and i dont want to go through the whole conversion thing(but if theres …

Member Avatar for WaltP
0
265
Member Avatar for Anupkumar
Member Avatar for HESSENY2000

[QUOTE=HESSENY2000;1427713]Hi, many thanks My friend mrteey2k for your efforts and code after i install all components as your design and run but i found some error same that : if you calculate that 2/11/2010 9:00am till 3/11/2010 4:50pm = 950 minutes (correct answer ) PLZ Be NOTe if we Calc …

Member Avatar for AndreRet
0
117
Member Avatar for DrMAF

If it's not part of your compiler, it won't work even if you do find it. Adding a header does no good without the associated code.

Member Avatar for DrMAF
0
4K
Member Avatar for phobos666

[QUOTE=phobos666;1428405]If I give the array size as 60 and if there are only 35 rows then for the rest of the array size junk value gets printed. Is there a way to find the no of rows while the program is reading the file for the first time?[/QUOTE] Are you …

Member Avatar for Narue
0
131
Member Avatar for Ancient Dragon

I think it could remain a stickie. as for "confusing the newbies" I doubt it. They obviously just ignore them for the most part. Can't get confused when you don't bother to look... :icon_confused:

Member Avatar for Ancient Dragon
0
142
Member Avatar for jagaur
Member Avatar for linova

All characters are also integer values. A=65, B=66, a=97, SPACE=32, etc. Do a search for ASCII CHART to see all the characters and their value. With that in mind, you can use the character (value) as an index into an array. Each character increments the array element associated with it. …

Member Avatar for WaltP
0
252
Member Avatar for shanki himanshu

Be honest -- When did he [I]dump[/I] it on you? When is it due?

Member Avatar for Kamatari
-8
134
Member Avatar for linova

[QUOTE=jackmaverick1;]what's in the header file that's called "conio.h"? [QUOTE=Dingbats;] for the int getch(void); (amongst others) [/QUOTE] [/QUOTE] The real question is why is the O/P using a non-standard C function from [I]conio.h[/I] in a C++ program when a simple [I]cin.get()[/I] will suffice?

Member Avatar for linova
0
204
Member Avatar for astala27

Start at the beginning of the string and look at each character. Every time you find a ( remember it's position in the string. When you find a ), evaluate the equation from the last ( to the just found ) Remove that equation replacing it with the answer just …

Member Avatar for arkoenig
0
2K
Member Avatar for manzoor

Why did you start a new thread on the same topic? Please continue with the original thread.

Member Avatar for floatingDivs
0
1K
Member Avatar for surajitsweet021

[QUOTE=salvador01;]hi! iam a newbie how can i get the 10th, 100th, 1000th place for example: the interger is 1235, the ones place is 5, the tenth place is 3, the hundreds place is 2, and the thousands place is 1, please help me[/QUOTE] Of course you're a [I]newbie[/I]. Only newbies …

Member Avatar for WaltP
0
153
Member Avatar for hunt4me619
Member Avatar for hunt4me619

So rather than trying to figure it out, you simply ask us to tell you? Maybe the task is to actually figure out how to find the answer.

Member Avatar for WaltP
0
31
Member Avatar for funky_sourabh

That depends on the compiler you are using. Would I be correct in assuming it's an old Borland compiler? 3.0 perhaps?

Member Avatar for WaltP
0
22
Member Avatar for dynamyt3

[QUOTE=arkoenig;1424798]This is not quite right: You need to restrict the swapping so that the destination position is always >= the source position. [code] int rowToSwap = a random valid row that is >= row int colToSwap = rowToSwap == row? a random valid row that is >= col : a …

Member Avatar for dynamyt3
0
1K
Member Avatar for Dave Sinkula

I'm sure the meaning can be found 1) in your book if you have one 2) in the tutorial you are using, if you are using one 3) from GOOGLE, which knows everything and can explain stuff better than we can.

Member Avatar for WaltP
10
8K
Member Avatar for jonsca

I've never had a problem with double posting as long as new useful information is posted, or quoted responses to multiple posts are being done. It's bumping that irritates me. I do miss the multiple-reply button. Many times I want to reply to more than one post in a thread …

Member Avatar for jonsca
0
242
Member Avatar for best_tanu
Member Avatar for دموعي
-6
100
Member Avatar for phobos666

[QUOTE=phobos666;]Hi, I need to open a file containing string values one below the other and display them. I'm able to open the file but there is some error while displaying them. Below is my code, kindly guide me to my mistake.[/QUOTE] Then you made [I]some error[/I] programming the code. Your …

Member Avatar for vinitmittal2008
0
214
Member Avatar for vbx_wx
Member Avatar for vbx_wx
0
105
Member Avatar for vedro-compota

[B]xiilin[/B] seems to be the only intelligent person posting in this thread! Use [iCODE]scanf()[/iCODE] as suggested.

Member Avatar for vedro-compota
0
248
Member Avatar for snipermann
Member Avatar for AmerJamil

[QUOTE=AmerJamil;1423077]Narue@ code is horrible lol. i knw u ll say to use <iostream> instead of iostream.h and conio.h is non standard header file..etc lol i knw everything but im using TURBO C++ version 3.0 it require these things[/QUOTE] [I]conio.h[/I] is not and [B]never has been[/B] required. If you know everything, …

Member Avatar for WaltP
-2
478
Member Avatar for malli123

Does [B]s[/B] contain the file name you want to open? If so, use it in your [iCODE]fopen()[/iCODE] statement.

Member Avatar for malli123
0
147
Member Avatar for arnas

[CODE]static int is_valid_dice_selection (char input []) { char input[i]; int length; length = strlen(input); for (i = 0; i < strlen(input)-1; i++) { } return 0; } [/code] This function is not needed if you're going to do all the checking in [ICODE]select_dice()[/ICODE]. [CODE] static void select_dice (int reroll_flags []) …

Member Avatar for WaltP
0
205
Member Avatar for needhelpe

[QUOTE=Ali Shah Ahmed;1128122]How can i print 123454321 (on input 5) in a single loop without any conditional statement...???[/QUOTE] Is this a joke?

Member Avatar for Nick Evan
0
4K

The End.