223 questions
apples = 'Hello World!'text_file = open(Output.txt, w)text_file.write(message :, mystr)text_file.close()In the print function, print(message:, mystr) was separated by commas, but it didn't work in wri...
Header File Mystring.hclass CMyString{public:CMyString(void);~CMyString(void);private:char* m_pszdata; // memory storage stringintm_nlength; // string lengthpublic:int SetString(const char* pszparam);...
//Second.classf =fstE.getText().toString(); l = lstE.getText().toString();Intent i = new Intent(Second.this, T1_text.class);i.putExtra(lastName,l);i.putExtra(firstName,f);startActivity();//T1_text.cl...
Hello! If you enter a space when you receive the string (variable name word), you want to output true, false, depending on whether this string is blank or not. If there is a space in the String, why c...
I can get a text message for each array element, right?It can be easily implemented as a for statementI saw several examples of text messages When I receive the text in scanf, there are a few things t...
String input isIf aabbbccccddaa Not a2b3c4d2a2I want to print it out as a4b3c4d2 How should I make the code?
import requestsurl = 'any_address'data_payload = {'1', '1'}res = requests.post(url, data=data_payload)txt = res.textprint(res.text)With this source code, res is the object 'requests.models.Response' e...
#include <stdio.h>#include <string.h>int main(void){ char arr[101]; int i, j, n; char ch; int num, cnt=0, flag=0; scanf(%d, &num); for(i=0; i<num; i++) { scanf(%s, arr); if(strlen...
You do not enter it as a string, but as a character.But char a; scanf_s(%c, &a); printf(%c, a);If I do this, there is no error. char a, b; scanf_s(%c%c, &a, &b); printf(%c%c, a, b);This ...
If you output a string of length 3 using two alphabets ab, aaaaababaabbbaababbbabbbYou have to make it come out like this.A two-dimensional character array is dynamically assigned, and the Distr funct...
« | - 20 - | » |
© 2024 OneMinuteCode. All rights reserved.