Monday, July 27, 2009

Tell me whats wrong with the following program in c++?

this program accepts the number of countries and the accepts the countries name,capital and population then asks for countryname/population which will give the particulars of the country


struct has been used plz tell me the mistake.


i tried debugging 4 a long time but nothing turns up tom





i can't put the program here


itz very big


plz answer this question and i will email u the question if u r ready





thanks


tom

Tell me whats wrong with the following program in c++?
Dear friend


The answer has been sent to your maild.
Reply:hi tom this is nikunj vijayvargiya from indore , india


the prg might might not wokr properly under this conditions


1. if you have not taken country name as cahr or if taken u might not have given the propeer char size to the variable name


2. there may some mistake in properly using the varibles


3.there may be mistake in using struct variables and a few more mail me your prg %26amp; i will surely fix your prob and mail u the correct sol as soon as poible
Reply:mail the program to mvijayanelect@yahoo.co.in
Reply:whitout question no answer can be given
Reply:send me the prog. i shall correct it
Reply:But, why do you want to use structs for this?





I think it is better to use





IF.. ELSE IF ( if data is less ) or


Switch case ( if data is more ) or else


you can also use functions which is more simpler than structs.
Reply:Go to the website





www.codeguru.com





u'll get the answer
Reply:Go here


http://www.dreamincode.net/home/


http://www.dreamincode.net/home/


and post your code (it will be accepted there even if very big)


///


No comments:

Post a Comment