Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #25.0K
i have to write a program that checks a palindrome to see if it is in fact a palindrome but i get this warning warning C4800: 'char *' : forcing value to bool 'true' or 'false' (performance warning) and its not quite working any help would be great thanks. [code]#include … |
|
Im trying to take all prime numbers 1 to 100 and outputting them to a file but its not working here is my code so far. [code] #include <iostream> #include <fstream> using namespace std; bool isPrime(int numcheck); void write_prime(int prime, ofstream &outfile); int main() { ofstream primefile("prime.txt"); for (int ntc … |