I need to add char to a char pointer. For example: I have a pointer of char named name, which receives "log", after the process, I want it to be "log1".
I tried to implement this, but it did not work.
bool trocarNome(c...
I have to put an integer, a real, a character and a sentence containing spaces up to 100 characters. I tried to make the solution but I can only type the numbers and the character and the string are not coming out.
#include<iostream>
#in...
I'm trying to check if a certain position in an array of chars actually contains some character.
I tried two ways:
char[] arr = new char[10];
if(arr[0] == null){
}
And also:
char[] arr = new char[10];
if(arr[0] == ''){
}
When typ...
I need to limit to a specific value that would be 511
char command[512];
I tried with
char command[512];
scanf("%511s",command);
if (StrToInt(command))>511)
printf("FIX ATK");
and this too
char command[512];
scanf("%511s", comma...
The question is:
1) Help the university to assemble the divisions of the programming lab. To do this, write an algorithm that reads the name of the student and say in which division he is respecting the rule below:
-children whose name begins...