No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm having a really werid issue with overloading the insertion operator (<<). Here's my code snippet: class instream { void operator<< (instream&, char[]); }; Visual Studio keeps telling me I have "too many arguments for binary operator <<". I don't see the problem here. Is there something obvious I'm missing? |
|
Howdy, y'all! I'm trying to make a simple little game, but redrawing the game board is a lot stower than I'd like. Any suggestions to optimize my code? I'm using a Console program because I'm still a novice and am not ready to tackle a real GUI yet. Here is … |
|
Re:
Hi there, As the title says, I'm having an issue passing an array of structures to a function.The structure reads and tokenises information from a text file. I then need to do things with that data using several different functions. Here's my code: #include <stdio.h> #include <stdlib.h> #include <string.h> typedef … |