stream tag

23 questions


1 answers
59 views
0
Why can't Iostream::eof be used in the loop?

I heard that writing iostream::eof in a conditional sentence is a bad ideaI usually write while(cin>>n) together and check EOF.But why can't I write iostream::eof myself and check it?From C scan...

2 years ago

1 answers
138 views
0
The actual return value of the Python input() function enters strangely.

txt=[Ghost vegetable\n, i\'m Groot\n]Suppose you enter line=input() #Ghost vegetables\n.if(line==txt[0]): print(This string is the same sentence.)I thought that if you type in input(), the görme\n, it...

2 years ago

2 answers
126 views
0
strlen and string

I wonder why David921 read from the file through the strlen function has a length of 9.When reading the same David921 length through gets, the length is 8 so I wonder why this difference occurs.


1 answers
114 views
0
After initializing the c language string, I wrote down the tap in more detail when I input/output the rest of the file.

int main(void){int c, i;//Implement as a link list FILE *cities, *members, *reser;// departure city, member list, reservation list char ID[20];char PW[20];char *ID_B;char *PW_B; char *NEW_ID; char *NE...

2 years ago

1 answers
102 views
0
How do I change InputStream to String?

I want to convert the java.io.InputStream object to String. If InputStream contains textual data, I think we can change it to StringWhat do I do? p.s. Please let me know the simplest way to do it in t...


1 answers
71 views
0
I want to print out the entire 'double' when I print out the cout

If I run the source code below,It says 3.14159265358979 instead of 3.14159Instead of rounding off the decimal point,What should I do to get the full price?int main(){ double d = 3.14159265358979; cout...


1 answers
63 views
0
Can you convert the String object of Java into InputStream and save it?

String exampleString = example;If I have a code like this, how do I put it in InputStream??


1 answers
127 views
0
How to replace InputStream with BufferedReader

I wrote InputStream to read text line by line from Android Asset Folder.If I use Buffered Reader, I can use readLine(), so I want to change InputStream to Buffered ReaderWhat should I do?InputStream i...


1 answers
125 views
0
Can I change InputStream to Byte array?

Can I change InputStream to Byte array?

2 years ago

2 answers
138 views
0
I have a question for JAVA.

package Ex;import java.io.*;public class fre { public static void main(String[] args) throws IOException { FileInputStream fi = null; InputStreamReader in = null;// fi = newFileInputStream (fileEx.t...

« - 2 - »

© 2024 OneMinuteCode. All rights reserved.