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

Search:

Type: Posts; User: Ubiquitous

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    11,748

    Re: Sorting help

    Your list is sorted it just doesn't look like it is because there is no spacing between numbers.



    System.out.print(b[i]);
    /* change above line so that
    * 9111213141516202123
    * it will have...
  2. Re: Can someone tell me why does my code not work?

    What is your code failing to do? I see you have created a FileWriter and PrintWriter but never used either to save into the file. Read up on how FileWriter and PrintWriter work since I am guessing...
  3. Replies
    3
    Views
    1,877

    Re: English to Pig Latin translator

    If I am looking at the code correctly then the issue is within your foreach loop.


    // The loop extracts each word from the text box to translate it into pig latin
    foreach...
  4. Re: Load user input into 10x4 rectangular array

    In your Calculate method there is not need to create and initialize the variable again. You simply have to do r++ which is the equivalent to doing r = r + 1 or r += 1 they all do the same thing. Also...
  5. Replies
    1
    Views
    564

    Re: Begginer with Methods

    Assign the returned value to a variables. Your method returns whatever the value for number1 is within the method but the main method does not know what to do with it because you are not storing it....
  6. Re: Load user input into 10x4 rectangular array

    2 Dimensional arrays are not much more complicated than single element arrays. You populate them in a similar manner. In your code I do not see any attempt at populating the array though. I see in on...
  7. Re: Load user input into 10x4 rectangular array

    In a class right now so have to make a brief response but to populate a multidimensional array you could create a nested loop.

    Example:


    static void Main(string[] args)
    {
    ...
  8. Replies
    2
    Views
    553

    Re: Displaying problem help

    When posting code use
    Post code inside here tags.

    The issue I notice is that you are creating variables at the class level then you are creating them again within methods. This means that the...
  9. Replies
    1
    Views
    540

    Re: java gui if statment help

    You keep getting wrong because you are not saving any of the input from the dialog box. You show the question and show the answers but no variable to store it in.



    String usrAnswer =...
  10. Replies
    10
    Views
    817

    Re: New C# Moderators

    Congrats to both of you! You both are very helpful and well deserving of being moderators :)
  11. Re: How to use a string in a foreach outside of it?

    It all depends on how you plan on using the code and how long you plan to store the variable for. rliq's code should have worked with the details you have posted you just need to initialize the...
  12. Replies
    6
    Views
    533

    Re: High card project

    Sorry for missing that I skimmed through the code and everything looked correct.

    From my understanding you have now resolved your issue but you do not need string player as that is really not...
  13. Re: Console Appl- Data file and Database update

    I'm sure people will tell you this is a help forum not a code request forum. So post what you have tried and people here will help you and guide you in the right direction.

    Also use


    //Put...
  14. Replies
    1
    Views
    1,000

    Re: Investment Calculator

    If I remember correctly the ^ only applies to the value it is after so lets say:
    4 + 2^2 = 4 + (2 * 2) = 8
    2 + 3^3 = 2 + (3 * 3 * 3) = 29

    In your formula it is doing (50 * (1 + 0.1)) ^ 12

    Try...
  15. Replies
    6
    Views
    533

    Re: High card project

    By not loading I am guessing you mean the window does not pop up showing you any of the UI? Have you tried simply creating a new project and importing the code into it? It seems like it is not a big...
  16. Replies
    17
    Views
    1,629

    Re: Writing a complex loop

    As stated by DataMiser your post are not clear one what you wish to accomplish. There are many different ways of accomplishing things and when it is not clear what your goal is people here can keep...
  17. Replies
    17
    Views
    1,629

    Re: Writing a complex loop

    I am not completely sure what you are trying to accomplish. Maybe you could post a better description of what exactly it is you are trying to accomplish and in what way. From what I can tell the...
  18. Replies
    1
    Views
    423

    Re: C sharp Program help

    I am a little confused about your code. In the main form I see you make a List<Student> and in PersistantData you create the same List<Student> but they are modified at different instances in your...
  19. Re: e.Item.SubItems[0].Text from a listview ItemCheckedEventArgs object

    From my understanding of listView is that the item counts as subitem[0] and for any sub items it starts a subitem[1]. I am sorry I am not able to explain this better but hopefully an example will...
  20. Re: Trying to read 2 text files and put into one

    You can compare while reading the second file. Also if your purpose is to write 1 new file containing all words from both files excluding writing the duplicates of a word you can accomplish it with 1...
  21. Replies
    1
    Views
    374

    Re: Help with loop

    It all depends on both list and how they are compared.

    For example
    (list1.Contains(wordFromList2)) == (list2.Contains(wordFromList1))
    but
    (!list1.Contains(wordFromList2)) !=...
  22. Replies
    5
    Views
    557

    Re: i have errors with tic tac toe game

    Well since I do not have as much experience as most of you guys whenever a simpler problem like this arises I try to jump on it and help out :)
  23. Replies
    5
    Views
    557

    Re: i have errors with tic tac toe game

    Looks like some formatting errors in timer1 code
    1st error


    else if (button3.Text == "X" && button6.Text == "X" && button9.Text == "X")
    {
    kazan = true;...
  24. Replies
    8
    Views
    1,101

    Re: Quick question about functions

    Hmm I see that works and I like this method better. It would allow a sort of index on the top containing all functions found in the file.

    What do experienced programmers usually do? Are both way...
  25. Replies
    8
    Views
    1,101

    [RESOLVED] Quick question about functions

    I apologize if its been asked before but my search didn't yield the answers I was looking for.

    I have been looking at C++ and I am just starting. I am coming from a C# background but even in that...
Results 1 to 25 of 71
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center