Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I want to define a new variable called : character , with type of character
How can i do that without errors? (despite they have the same name)
I tried this on paper : variable character: character, but i am not sure if its correct or not
Thanks.
It depends on your programming language. Like in java you use-
char character = 'A';
And in c-
char character;
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
In shell scripting Suppose I have a file name called aaa_djdidm_cjcjcj_20220602.txt
I only want the name except the date.
Expected result - aaa_djdidm_cjcjcj
If you want to remove the part after the last _:
NAME="aaa_djdidm_cjcjcj_20220602.txt"
NEW_NAME=${NAME%_*}
The % operator is useful do remove the motif (here _*) of a named parameter (here NAME)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
The community is reviewing whether to reopen this question as of 2 years ago.
Improve this question
Is it possible to take a [...]string{} and then loop over each string to create a new variable where the variable name is the string?
I can do this using interpolation with some other languages, but I'm kind of a golang newbie.
Nope. Go provides no way to dynamically create variables.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have an input file where I have values like "Bengaluru","New,Delhi","New,York" and I want to read this data as Bengaluru,New Delhi,New York : commas inside the double quotes should not be evaluated as a separator : "New,Delhi" is evaluated as "New Delhi" and not separated in two items ("New" and "Delhi")
In Informatica you can specify the text qualifier as double quotes in source definition. That would give you the expected values.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want for a variable to be 'name' for example. If I use read(x) and for that variable to be char it will only load the first letter. So if i type 'name' it would be only the first letter.
the word you refer to is actually called string, so you can declare a variable and read string in it:
var
msg:string[10];
begin
readln(msg);
writeln(msg);
end.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Is it possible to pass parameter to a method like this:
variable = my_method(:parameter)
No quotes, no nothing.Just -> :parameter .
Yes, you can pass a symbol to a method. Example:
puts('hello')
or
puts(:hello)