happy new year all, maybe i am asking this question because i have been away from programming for a couple of weeks.
I am designing a program that needs to read in commands from the user, this is...
Type: Posts; User: luigi40
happy new year all, maybe i am asking this question because i have been away from programming for a couple of weeks.
I am designing a program that needs to read in commands from the user, this is...
yes thats what i was thinking, i have hardcoded the input because the question is ambiguous as where the input is coming from and so i followed an example in the chapter on the same topic.
...
another question from my book, i would like to know if you think my answer is correct please
question: use a single subscripted array to solve the following problem: A company pays its salespeople...
yes i agree the reason i asked was that the question in the Deitel book says
i thought it would be a pain to have to write an algorithm just to append the F suffix to each element. i guess i...
how do i create a floating point array, the only way i have been able to compile a float type array is using the 'F' suffix however that would be rather tedious for a 100 element array which is what...
const string verse = "On the {0} day of Christmas\nmy true love gave to me:";
worked ok in my 2003 dot net ide version
yes you are right and with some logical thinking and a bit of paper here is the second version using less string literals
using System;
namespace Ex6_17._2
{
class Class1
thank you pianorain
as soon as i saw the carol i could see the pattern of text. and voila!
for(int loop=0; loop<stringArray.Length; loop++)
{
Console.WriteLine(stringArray[loop]);
question 6.17 Deitel & Deitel...
the twelve days of christmas song. Write an application that uses repitition and if structures to print the song "the twelve days of christmas". After spending a...
thanks for replies people
:)
reading a value in with Console.ReadLine i noticed there are two different methods i can use from the FCL
n=Convert.ToInt32(Console.ReadLine());
n=Int32.Parse(Console.ReadLine());
yes your right pianorain
i think i was sitting in front of the pc too long without a break. my mind was going numb.
this is what i came up with after 2 minutes
private void...
question from book =
use the next method from an object of type Random to produce 2 positive one digit integers. It should display a question in the status bar, such as: How much is 6 times 7?
...
EXCELLENT POST (excuse my shouting, i thought in this case it was appropriate)
thanks pianorain :)
this code below has been copied and annotated from the C++ section,
using System;
class Test
{
this is what i came up with...
using System;
namespace Ex5_8
{
hi dwks
cant make sense of the if statement, it wint complie for me. had to make it if(z == 3)
as z is an integer how can you have NOT z?
i will play with the code anyway, anyone else...
dwks
i think i read the [STAThread] is something to do with the dot net environment about threading, you can take it out and it doesnt seem to make any difference. thanks for your algorithm, the...
this is the code i came up with, however, i dont think this is what Deitel are looking for, is this 'clever' use of nested loops?
using System;
namespace Ex5_8
{
class Class1
30 views and still nothing, guess im on my own
the book says: write a program that displays the following patterns seperately, one below the other. use for loops to generate the patterns. All stars should be printed by a single statement of the...
i have reduced the code as follows for the octal conversion
using System;
class Test
{
the following exercise is from a book im learning from...
Write two programs that each a table of the binary, octal, and hexadecimal equivalents of the decimal numbers in the range of 1-256
a)...
hmmmm sounds like "bill gates's" world domination attempt .. again
luigi
so if i distribute the mscore.dll with the application will it work?