• Member Avatar
    collin_ola

    Edited C++ Map Iterator - Order of Iteration

    Hey guys, I have some code set up to iterate through a nested map. It current works as expected, iterating through all values in the first key, and then the …
  • Member Avatar
    collin_ola

    Created C++ Map Iterator - Order of Iteration

    Hey guys, I have some code set up to iterate through a nested map. It current works as expected, iterating through all values in the first key, and then the …
  • Member Avatar
    collin_ola

    Marked Solved Status for Using map iterator with vector nested into map

    Hey Guys, I'm pretty new to containers, but need to use them for a project I'm doing. I've figured out that I can use a map iterator to iterate through …
  • Member Avatar
    collin_ola

    Replied To a Post in Using map iterator with vector nested into map

    I've just realised I grave mistake I've made... Initially, I was intending to use a `vector<vector<double> >`, but I then realised that I actually only needed a `vector<double>`. I updated …
  • Member Avatar
    collin_ola

    Replied To a Post in Using map iterator with vector nested into map

    Oh okay. Thanks! So I attempted using your code above following your instructions. It runs, but inexplicably crashes. I replaced the `cout<<*col;` with a counter variable `cout<<i++;` just to see …
  • Member Avatar
    collin_ola

    Replied To a Post in Using map iterator with vector nested into map

    I wasn't aware of it, I just received an error message saying to remove the auto keyword, but I wasn't sure what to replace it with, so I thought I …
  • Member Avatar
    collin_ola

    Replied To a Post in Using map iterator with vector nested into map

    I'm using C++98, which doesn't allow me to use the `auto`. What could I use instead?
  • Member Avatar
    collin_ola

    Edited Using map iterator with vector nested into map

    Hey Guys, I'm pretty new to containers, but need to use them for a project I'm doing. I've figured out that I can use a map iterator to iterate through …
  • Member Avatar
    collin_ola

    Edited Using map iterator with vector nested into map

    Hey Guys, I'm pretty new to containers, but need to use them for a project I'm doing. I've figured out that I can use a map iterator to iterate through …
  • Member Avatar
    collin_ola

    Created Using map iterator with vector nested into map

    Hey Guys, I'm pretty new to containers, but need to use them for a project I'm doing. I've figured out that I can use a map iterator to iterate through …
  • Member Avatar
    collin_ola

    Edited "Your InputStream was neither an OLE2 stream, nor an OOXML stream" error

    Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have …
  • Member Avatar
    collin_ola

    Edited "Your InputStream was neither an OLE2 stream, nor an OOXML stream" error

    Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have …
  • Member Avatar
    collin_ola

    Edited "Your InputStream was neither an OLE2 stream, nor an OOXML stream" error

    Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have …
  • Member Avatar
    collin_ola

    Created "Your InputStream was neither an OLE2 stream, nor an OOXML stream" error

    Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have …
  • Member Avatar
    collin_ola

    Marked Solved Status for For loop not breaking as expected...

    Hey! Firstly, here's the code: for (Row row : sheetToSearch) { for (Cell cell : row) { if(cell.toString().equals("Oladimeji")){ System.out.println("Found Oladimeji!!"); break; } else { System.out.println("Oladimeji not found...."); } } } …
  • Member Avatar
    collin_ola

    Replied To a Post in For loop not breaking as expected...

    Solved my own problem...gonna leave the solution here in case it is needed by anyone! FOUND: for (Row row : sheetToSearch) { for (Cell cell : row) { if(cell.toString().equals("Oladimeji")){ System.out.println("Found …
  • Member Avatar
    collin_ola

    Created For loop not breaking as expected...

    Hey! Firstly, here's the code: for (Row row : sheetToSearch) { for (Cell cell : row) { if(cell.toString().equals("Oladimeji")){ System.out.println("Found Oladimeji!!"); break; } else { System.out.println("Oladimeji not found...."); } } } …
  • Member Avatar
    collin_ola

    Marked Solved Status for Using APACHE POI with Eclipse?

    Hey, I am trying to make use of the apache POI in my Java project in Eclipse. I previously tried using jxl but what I wanted to do didn't seem …
  • Member Avatar
    collin_ola

    Replied To a Post in Using APACHE POI with Eclipse?

    Ah. I was downloading the wrong files from the Apache website. I found the jar's in the binary download. Thanks! :)
  • Member Avatar
    collin_ola

    Created Using APACHE POI with Eclipse?

    Hey, I am trying to make use of the apache POI in my Java project in Eclipse. I previously tried using jxl but what I wanted to do didn't seem …
  • Member Avatar
    collin_ola

    Replied To a Post in C++ question

    If you need some help starting you could start by creating some variables in which the values of x, y and z will be stored. int x, y, z; //or …
  • Member Avatar
    collin_ola

    Marked Solved Status for Creating an excel file after checking it doesn't exist

    Hi! Firstly, here's the code: if(new File("ATM.xls").exists()){ System.out.println("File exists"); } else{ File excel = new File("ATM.xls"); } What I'm trying to do is check whether or not a file exists …
  • Member Avatar
    collin_ola

    Replied To a Post in Creating an excel file after checking it doesn't exist

    Worked like a dream Peter. Thanks a lot! Also, thanks for the further clarification, James.
  • Member Avatar
    collin_ola

    Replied To a Post in Creating an excel file after checking it doesn't exist

    Hi Peter, Thanks for replying. I should have probably been a little clearer. I already have that and it was all working well, before I added the IF statement to …
  • Member Avatar
    collin_ola

    Created Creating an excel file after checking it doesn't exist

    Hi! Firstly, here's the code: if(new File("ATM.xls").exists()){ System.out.println("File exists"); } else{ File excel = new File("ATM.xls"); } What I'm trying to do is check whether or not a file exists …

The End.