Note that there are some explanatory texts on larger screens.

plurals
  1. UScosimo193
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI don't do it that way either; possibly because of coming into C++ later in life and being brought up on sensible languages like Pascal and Ada where comparison is = and assignment is := :-) It can be a useful technique for avoiding such an easy mistake, but it doesn't aid readability due to the sense being reversed compared to how you would describe it in natural language (well, English). E.g. you would never say "if 30 is Fred" etc....
      singulars
    2. CO@Sithregal It's probably worth trying to avoid mixing fgets and scanf. If you change the newline check to: if (filename[strlen(filename)-1] == '\n') {filename[strlen(filename)-1] = '\0';} it seems to work for me but you're also writing the last, empty line to the file. You probably would be better using a do...while loop rather than a while one, it's a very underused structure in my experience :-)
      singulars
    3. CO@Kerrek SB, see http://www.cplusplus.com/reference/iostream/; I believe you normally wouldn't need istream or ostream to be directly included as they're both covered by iostream. I don't know what the problem is here as this works fine with Eclipse and MinGW. I'm guessing it's a configuration issue. Can you get the command line used for the compilation and try it from a Command Prompt?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload