Posts by rand • 43 points
4 posts
-
-1
votes1
answer99
viewsQ: How to store arrays in vectors in C?
I need to create a vector that stores matrices and print these matrices. What would be the correct way to do the assignment and print the matrices through the vet? int main() { int *vet; int **mat;…
-
2
votes2
answers242
viewsQ: Function in C that deletes a given string
I need to create a function that deletes in s1 the first occurrence of s2. char *StrlDelStr(char *s1,char *s2) Example: char *s = "O rato roeu a rolha da garrafa"; StrlDelStr(s, "xy"); -> "O rato…
-
0
votes1
answer176
viewsQ: Function to invert strings in C
Inserts the orig string at the beginning of the dest string, returning dest. char *strins(char *dest, char *orig) My code is as follows:: char *strins(char *dest, char *orig) { return…
-
0
votes1
answer239
viewsQ: String size in PL/SQL
CREATE OR REPLACE FUNCTION TamanhoString(texto char(100)) RETURN NUMBER IS tamanho NUMBER; BEGIN tamanho := LENGTH(texto); RETURN tamanho; END TamanhoString; I need to create a function that…