Search:

Type: Posts; User: rodrigorules

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: My idea.

    by rodrigorules
    Replies
    39
    Views
    3,605

    One idea could be to solve certain programming...

    One idea could be to solve certain programming challenges.

    Such a site that could help you along is Sphere Online Judge (SPOJ) - Problems
  2. Replies
    13
    Views
    980

    Imanuel, you're right in thinking that it does...

    Imanuel, you're right in thinking that it does not free the memory from each of your nodes.

    If you want to make sure this happens on 'delete' or when your list goes out of scope, look into...
  3. Replies
    6
    Views
    1,039

    Just to clarify, when you typed: int*...

    Just to clarify, when you typed:


    int* leftTriAbscissa,rightTriAbscissa;


    You made 2 variables, one of them was a pointer, the other was a regular int.

    So your original code was the same...
  4. Replies
    3
    Views
    1,027

    Yep, your thinking is correct that it's a...

    Yep, your thinking is correct that it's a 'single' stack as well.
  5. Thread: acm

    by rodrigorules
    Replies
    3
    Views
    783

    Whenever an ACM contest concludes the judges post...

    Whenever an ACM contest concludes the judges post solutions on the contest website. All of these are easily found on google *if* you know the problem title you're interested in.
  6. Replies
    5
    Views
    1,341

    Ah, bad habit. You can do without it since we...

    Ah, bad habit. You can do without it since we know that the array will be a constant size of 26.
  7. It could be simply that the class set method...

    It could be simply that the class set method doesn't work. Try to use a debugging tool?
  8. Replies
    14
    Views
    10,912

    just_rookie, it looks like the logic you have in...

    just_rookie, it looks like the logic you have in your previous post's code is correct.

    What is the problem?
  9. Replies
    5
    Views
    1,341

    You want to 'map' each character in the alphabet...

    You want to 'map' each character in the alphabet to your own 'encoding'.

    1) Read in the first line in your file
    2) Iterate over each character in the line
    3) Store each character in an array...
  10. I think the responses to his question have gotten...

    I think the responses to his question have gotten far too complicated. (it's clear the original poster does not yet understand references &, etc etc, so I hope this explanation is much clearer) (Even...
  11. Don't choose a school because it has a game...

    Don't choose a school because it has a game programming course!
  12. Replies
    5
    Views
    2,280

    Is there such a function in C/C++ for resizing of...

    Is there such a function in C/C++ for resizing of arrays called 'resize'? Google doesn't help me find it, I want to guess it doesn't exist.
  13. Replies
    14
    Views
    10,912

    Great suggestion laserlight. just_rookie if...

    Great suggestion laserlight.

    just_rookie if you would like to 'roll your own', just iterate over the array and check if the current element is 'less than' the next element. If you receive true...
  14. Replies
    2
    Views
    1,085

    Algorithm::find on string

    Hi, I am trying to use the 'find' function from the STL algorithms library on 'string' by using iterators only
    (I am aware that string::find exists)

    I am having trouble getting this to...
  15. When c++ returns, is it the same as a copy?

    If I return a gigantic vector of integers from a function, am I better off just passing a reference to the function instead and having it filled that way? I'm wondering if returning a vector that...
  16. Yea, I tend to try to get in the habit of writing...

    Yea, I tend to try to get in the habit of writing like that though ... most of the only reason I program is to solve little programming puzzles

    THANKS!
  17. super basic question about boolean evaluation

    int var = 1;
    if(var == 1)
    {

    }

    if(var)
    {

    }
  18. make sure your complier linker settings include...

    make sure your complier linker settings include these libraries, not just in the code itself.
  19. look up the jpeg protocol i would just find a...

    look up the jpeg protocol

    i would just find a nice library to read a jpg.
  20. Replies
    13
    Views
    4,051

    if your using gcc add the -g flag so you can...

    if your using gcc add the -g flag so you can debug using GDB

    ex:



    g++ d_arr.cpp -g -o d_arr
    gdb d_arr
  21. Replies
    7
    Views
    1,279

    yep, im guessing thats not the complete code

    yep, im guessing thats not the complete code
  22. Replies
    7
    Views
    1,279

    #include #include #include...

    #include <iostream>
    #include <fstream>
    #include <string>
    #include <sstream>

    using namespace std;
    int main()
    {
    ifstream in("c.cpp");//file path
    if(!in.good())
  23. Replies
    9
    Views
    720

    when you write out strings " ... " , you cant...

    when you write out strings " ... " , you cant press [enter] in the middle of writing a string.

    put it all on 1 line
  24. Replies
    1
    Views
    1,354

    c++ STL algorithm with my own classes

    I've been having some trouble trying to use the STL algorithms on a set of my own struct, I've never had a problem using STL with primitive types ... do I need to overload comparison operators for...
  25. yea we understand what you have to do

    yea we understand what you have to do
Results 1 to 25 of 274
Page 1 of 11 1 2 3 4