Search:

Type: Posts; User: luigi40

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,314

    a how to question

    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...
  2. Replies
    3
    Views
    2,886

    yes thats what i was thinking, i have hardcoded...

    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.


    ...
  3. Replies
    3
    Views
    2,886

    array of counters

    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...
  4. Replies
    2
    Views
    5,967

    reply

    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...
  5. Replies
    2
    Views
    5,967

    floating point array

    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...
  6. Thread: stuck again

    by luigi40
    Replies
    6
    Views
    2,809

    const string verse = "On the {0} day of...

    const string verse = "On the {0} day of Christmas\nmy true love gave to me:";

    worked ok in my 2003 dot net ide version
  7. Thread: stuck again

    by luigi40
    Replies
    6
    Views
    2,809

    yes your right

    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
  8. Thread: stuck again

    by luigi40
    Replies
    6
    Views
    2,809

    done

    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]);
  9. Thread: stuck again

    by luigi40
    Replies
    6
    Views
    2,809

    stuck again

    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...
  10. Replies
    3
    Views
    3,804

    thanks for replies people :)

    thanks for replies people

    :)
  11. Replies
    3
    Views
    3,804

    difference between Convert & Int32

    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());
  12. Replies
    3
    Views
    3,945

    thank you

    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...
  13. Replies
    3
    Views
    3,945

    another exercise question

    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?
    ...
  14. Replies
    5
    Views
    1,900

    EXCELLENT POST (excuse my shouting, i thought in...

    EXCELLENT POST (excuse my shouting, i thought in this case it was appropriate)

    thanks pianorain :)
  15. Replies
    5
    Views
    1,900

    designing algorithms

    this code below has been copied and annotated from the C++ section,



    using System;


    class Test
    {
  16. Thread: excercise

    by luigi40
    Replies
    9
    Views
    3,303

    thanks dwks

    this is what i came up with...




    using System;

    namespace Ex5_8
    {
  17. Thread: excercise

    by luigi40
    Replies
    9
    Views
    3,303

    reply

    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...
  18. Thread: excercise

    by luigi40
    Replies
    9
    Views
    3,303

    dwks i think i read the [STAThread] is something...

    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...
  19. Thread: excercise

    by luigi40
    Replies
    9
    Views
    3,303

    my answer to execise 5.8

    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
  20. Thread: excercise

    by luigi40
    Replies
    9
    Views
    3,303

    30 views and still nothing, guess im on my own

    30 views and still nothing, guess im on my own
  21. Thread: excercise

    by luigi40
    Replies
    9
    Views
    3,303

    excercise

    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...
  22. Thread: book exercise

    by luigi40
    Replies
    1
    Views
    3,368

    more efficient code

    i have reduced the code as follows for the octal conversion



    using System;


    class Test
    {
  23. Thread: book exercise

    by luigi40
    Replies
    1
    Views
    3,368

    book exercise

    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)...
  24. Replies
    11
    Views
    1,958

    hmmm

    hmmmm sounds like "bill gates's" world domination attempt .. again

    luigi
  25. Replies
    11
    Views
    1,958

    so if i distribute the mscore.dll with the...

    so if i distribute the mscore.dll with the application will it work?
Results 1 to 25 of 61
Page 1 of 3 1 2 3