Hi,
Can anyone explain why is this error?
http://i50.tinypic.com/2m67c75.png
Printable View
Hi,
Can anyone explain why is this error?
http://i50.tinypic.com/2m67c75.png
you can write
C:/users/MilosS/Desktop/seba/playboy
don't use "\" always use "/" it will work
thx
aha, now it works. Thanx.
:thumb:
Attachment 30773Attachment 30775
I get this 2 warnings when i run Eclipse. Why are they popping up and what can i do to fix it?
try this is official website
http://wiki.eclipse.org/EGit/User_Guide
you will get complete guide here simply follow the steps.. hope it will work.
thx
This is not quite true. In the case of a windows file path using '/' instead of '\' will work in other situations you may well need to use '\'.Quote:
C:/users/MilosS/Desktop/seba/playboy
don't use "\" always use "/" it will work
The problem is as follows: in Java the "\" char is used to escape other characters to provide special meaning ie \t gives a tab char, \n a newline etc. So if you want to put an actual "\" in a string you have a to add a "\" to the front of it to tell the compiler to embed a "\" rather than treat it as an escape sequence. So your string would need to be: "C:\\users\\MilosS\\Desktop\\seba\\playboy".
Can someone explain to me why this won't compile?Code:for (int i = 0; i <= c_path_name.length-1; i++) {
if(c_path_name[i] == '\') {
c_path_name[i] = '/';
}
}
And what should I change in this code so it would compile.
keang posted the answer already (see post #8)
solved that problem with '\\'