User profile: cire

User info
User name:cire
History
Joined:
Number of posts:5834
Latest posts:

Confusion with the auto type and other types
[code] for (int(&row)[4] : ia) // row is a reference to an array of 4 int. for (int co...

count the occurrence of letters in the string
You're doing a couple things wrong: First, get rid of the variable [tt]size[/tt] which serves no ...

Array help
[quote]Now IF the array was set to 5, I don't think that its possible but would there be any way to ...

2D Arrays
Who needs an array? [code]#include <iostream> #include <iomanip> int main() { for (unsigned i...

Knight's Tour + heuristics
[quote]I've come up with this code, but the knight goes off the 8x8 board after 6 moves, completes 6...