Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/08/2024 in all areas

  1. 1 point
  2. 1 point
    I translate.... , el error pasa porque line.find(":") esta intentando acceder a line"/lineas en la que esta vacia ,cuando el archivo esta vacio , por eso ahi 0 lines"/lineas en el archivo Puedes intentatr esto tambien while(getline(inAccounts, line)) { codethatuseslinecontent(&line); } "While" funcionará hasta que getline no devuelva nada (cuando no queden líneas"lines"). Espero que haya servido...
  3. 1 point
    (sry I don't speak spanish) Error happens because line.find(":") is trying to access "line", which is empty when the file is empty, because there are 0 lines in the file. You can try this: while(getline(inAccounts, line)) { codethatuseslinecontent(&line); } "While" will work until getline doesn't return anything (when there are no lines left).
  • Newsletter

    Want to keep up to date with all our latest news and information?
    Sign Up
×
×
  • Create New...