CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 357mag

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: Play for Ozzy (my program is not working correctly)

    I found out that you don't want to use == to compare strings in Java. You need to use .equals method or the .compare method.
  2. Re: Play for Ozzy (my program is not working correctly)

    I tested to see what was contained in the personsGuitar variable after that line executed and indeed LesPaul was in that variable. I also tested to see what was in the personsHairStyle variable...
  3. Play for Ozzy (my program is not working correctly)

    I have this cool program that uses a logical operator to join two conditions in an if statement. Basically for a person to get a job playing for Ozzy Osbourne you have to play a LesPaul and you have...
  4. Replies
    2
    Views
    893

    Re: I don't know what is wrong with my program

    I could not see any thing that says how to post code. I suspected it would be [code] [/] but it looks like that didn't work. I'm using Java 20 its I think the latest version with Eclipse.
  5. Replies
    2
    Views
    893

    I don't know what is wrong with my program

    I got this program using nested ifs and it compiles fine but gives me the wrong outcome. The way it is now, when I run the code and the first question shows "Enter the number of years you have been...
  6. Replies
    3
    Views
    4,952

    Re: How would I implement this into my program?

    Nothing will be random. I will decide ahead of time which is question one, question two, question three and so on. It will not be web based. No. This is for fun. It will be a standalone application....
  7. Replies
    3
    Views
    4,952

    How would I implement this into my program?

    Most of my programming over the years has been console apps. The kind you see in books. But now I want to start writing some Windows based programs. I wish to write a Psychology Test intended for fun...
  8. Re: My program works good but there are two things I don't understand yet

    I fixed it. You have to use the OR operator. Not the AND operator.
  9. Re: My program works good but there are two things I don't understand yet

    Even if I write the while loop like you suggested my program still only outputs the bit places that represent the actual divisions that were needed. If I enter the integer 58 my program should output...
  10. Re: My program works good but there are two things I don't understand yet

    Okay I initialized my array to all zeros first and ran the code again. But the program still does not output all eight bit places. If I enter in the integer 4 my program outputs 100. Where is the...
  11. Re: My program works good but there are two things I don't understand yet

    How do I use these code tags so my code looks correct? Okay now.
  12. My program works good but there are two things I don't understand yet

    I'm working with a program that converts an integer to it's binary equivalent. My program works fine. Now to get into some details: If I enter the integer 148 my program will output 10010100 which is...
  13. Replies
    1
    Views
    7,999

    What to download in order to program C#?

    What do you need to download in order to program in C#? If I don't want to use Visual Studio, but let's say something like Zeus or TextPad, what do I need to download?
  14. Re: Question about using a Textfield from JavaFX instead of Swing

    Anyone?
  15. Question about using a Textfield from JavaFX instead of Swing

    Okay let's say I do not want to use the console to get user input. I could import Swing and use JTextField and get the user to input a number in that GUI component. My question is can I write code so...
  16. Replies
    2
    Views
    916

    Did rules for naming your files change?

    Years ago when I was writing C++ code I remember you could not name a source file with spaces between the words. For example this was not allowed:

    Hot Pancakes

    You had to do this:
    ...
  17. How to set up QuickSharp to run your program in a separate window?

    I've discovered this neat, little IDE called QuickSharp that would be great for me, but all I need to figure out is how to configure it so it will run my program in an external window. I know it is...
  18. Can I tell Eclipse to run my Java program in a external DOS Window?

    Was wondering if there is a way to tell Eclipse to execute my Java program but not show the output in the internal console window but rather show the output in an external DOS window.

    I would...
  19. Re: Trying to understand the error in this code example

    Oh, I figured it out. In order to make the code produce the correct result I needed to reset variable x back to 10 before I wrote the second prefix expression.

    Runs good now.
  20. [RESOLVED] Trying to understand the error in this code example

    This code snippet shows the difference between the postfix and prefix versions of the increment operator. I got it out of a Schildt book. I realize many don't like the guy but I do like his style and...
  21. A little confused about creating a project in Visual Studio 2013

    Tonight I started using Visual Studio 2013 as I have never used this IDE before but it's the way to go for sure so...

    The option of creating an Empty Project is no longer there. I can either...
  22. Replies
    4
    Views
    755

    Re: Trying to get NotePad++ to work with C++

    That I have not tried.
  23. Replies
    4
    Views
    755

    Re: Trying to get NotePad++ to work with C++

    No. I tried that too and I still get errors. Things like No such file or directory. No input files. The specified file was not found. Something is wrong in my environment configuration and I don't...
  24. Replies
    4
    Views
    755

    Trying to get NotePad++ to work with C++

    I am using Notepad++ with C++ and I have a short program that prompts the user to enter an integer. After he enters his number, the program should output the number that he just entered. But for...
  25. I'm trying to get the decimal point to show with one digit of precision

    Okay I have an int variable and a double variable. The int is set to 10. The double is set to 10.0. To my surprise when I went to view the output both said 10. There was no .0 to the right on the...
Results 1 to 25 of 37
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured