Hi
Could anyone tell me how to test for a blank line. I have the following but it obviously doesnt work:
if(*rawLine != NULL)
{
/* do stuff */
}
where i have the declaration:
char *rawLine;
which points to a string.
I simply want to ignore blank lines.
so..i dont know how to test if two strings are equal. need something equivalent to ".equals()" in java, just in c.
this is the code:
char c[2];
do
{
//some code
scanf("%s", c);
if(c == "y")
{ cont = 1; } else { cont = 0; }
}
while(cont)
Thanks
Hi guys,
I am actually making a soccer game simulation, which will be animated in real-time almost. Can anyone point me to a book or website or something that could help me?
Thanks
I'm getting this message when trying to compile. This is what the code in question looks like:
import java.io.*;
public class User
{
String userName;
String userHand;
int handNumber;
String choice;
public User() throws IOException
{
BufferedReader theInput = new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.