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

Search:

Type: Posts; User: XodoX

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    589

    Reading different types of input into array

    Let's say I have a list of words that are followed by a number.

    Word 1
    Word 2
    Word 3
    Word 4

    I need two arrays. One for the words and one for the numbers.
  2. Replies
    1
    Views
    740

    Linked list input question

    I'm not sure if this is correct. The input is stored in a variable and I used that variable for the linked list.
    I jsut need the input in the list and then I go from there. So no deleting needed....
  3. Replies
    4
    Views
    1,715

    Re: Linked List question

    No, never-mind about that. I need a list interface then for collections.sort. I'm teaching this myself and it's the linked list chapter, so I can't use anything else. I have some books and it needs...
  4. Replies
    4
    Views
    1,715

    Re: Linked List question

    Ok, Collections.sort sounds better. I want to do it using a linked list.

    Like this?



    I have several things in the nodes, though. How does it know what is what? It needs to sort the ISBN only.
  5. Replies
    4
    Views
    1,715

    Linked List question

    Ok, so this is a standard linked list. The output is shown at the bottom. How to I access the input and sort it by, let's say, ISBN number? So that it's going to display it.
    I have no idea how to do...
  6. Replies
    8
    Views
    1,711

    Re: Question about function

    Ok, didn't pay much attention to that part. Overlooked it. So, I can just do a loop here?
  7. Replies
    8
    Views
    1,711

    Re: Question about function

    No, I think it sufficient.. according the the problem in the book. I still don't know what's wrong with the second code. It's an intro to computer science book. I don't think I have to override it.
  8. Replies
    8
    Views
    1,711

    Re: Question about function

    Thanks! There's another piece of code, which I probably should have posted, too.



    I suppose you only need to check for the students ID because it's a unique number. So, I think your posted code...
  9. Replies
    8
    Views
    1,711

    Question about function

    I'm trying to practice a little, but the book dosen't give me the solution. There's still one function missing in this piece of code and I'm wondering hwo I complete it.



    public class Person
    {...
  10. Replies
    4
    Views
    1,592

    code errors - need some input.

    Hi.

    The following code snippets got some errors in there, Netbeans says. Can somebody tell me what, and why, so that I understand the errors, please?

    Database.Java

    The first "private person"...
  11. Replies
    1
    Views
    1,271

    Help with Visual Studio 2010 Ultimate

    I'm wanting to test the methods of the code with Visual Studio (visual assert). So, now I have created all the ,cpp files etc. and I don't know what to do now. It's supposed to create a "test file"...
  12. Replies
    5
    Views
    1,257

    Re: How to develop test cases?

    Thanks.

    Ok, so like I said, I'm using visual studio 2010. It's actually 3 files altogether.

    ElectionResults.cpp


    #include "ElectionResults.h"
    #include <iostream>
    #include <ostream>
  13. Replies
    5
    Views
    1,257

    How to develop test cases?

    I'm wanting to create a test case ( also called a test plan sometimes) for this code, but I don't know how. So that it will show "pass" when I run it with Netbeans, for instance. Can somebody tell me...
  14. Replies
    1
    Views
    1,571

    Re: Simple assembly code calculation

    Ok, I got it so far, but it dosen't compile. The last part "output of value" has an error somewhere. I already commented one line so it won't compile it, but then it just asks for the input the won't...
  15. Replies
    1
    Views
    1,571

    Simple assembly code calculation

    Hello,

    I'm trying to write a code that is gonna calculate this: f = (g+h) –(i+j). $s0, $t0,$t1, $t2,$t3 are associated to f, g, h, i, j respectively. So, it asks you to enter g,h,i and j and...
  16. Re: Time Complexity Analysis for Recursive Programs

    Nobody? I just gotta run it for several n values I think, and find a formula. I gotta do it for factorial and fibonacci. Maybe somebody knows how to.
  17. Time Complexity Analysis for Recursive Programs

    Working on a program that:

    - will count the number of operations of two common recursive functions.This operation count will be basically estimate time complexity T(n).

    - has to find the g(n)...
  18. Replies
    4
    Views
    712

    Re: bugs in code/ lexical analyzer

    Thanks/Danke. That works just fine. Sorry, like I said, I'm a newbie. I can change that other part too.


    I'm also struggling wit the code that is supposed to create the output file. Can somebody...
  19. Replies
    4
    Views
    712

    bugs in code/ lexical analyzer

    Newbie here, sorry. The compiler has a problem with the std::string line. I declared it twice. I did the two codes separately and have troubles putting them together. Hope somebody can help me. Not...
  20. Replies
    7
    Views
    935

    Re: call info from txt file

    It's a relatively simple program. So, it just calls that information from a txt file. It's supposed to be as "efficient as possibile". That's why I was wondering what I should use... classes, header...
  21. Replies
    7
    Views
    935

    call info from txt file

    I'm trying to create a program that lists all variables, function names and C++reserved words from an input source file ( txt ). I'm not sure how do do this. I've done that only once using a header...
  22. Replies
    2
    Views
    1,427

    GOOD book for assembly language programming

    I need a very GOOD book for assembly language. One that really explains it well. The book dosen't have to cover a lot... right now it's just the basics. I'd rather have 500 pages covering the basics...
  23. Replies
    7
    Views
    2,332

    Re: Best way to brush up on C++?

    Thanks. Never heard of that before. Probably a book?



    Thank you. You got this book?
  24. Replies
    7
    Views
    2,332

    Best way to brush up on C++?

    I need to brush up on C++ after the first 2 C++ classes. I want something that starts out with the basics, that way I can use it as a reference too, and then it should steadily advance. Like, it...
  25. Replies
    12
    Views
    1,290

    Re: Need help fixing this code - arrays

    You mean the first code in my first post? Are you saying it's basically what book asks for ? I'm confused now. It can't grow or shrink.
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured