Posts by victorbarceloslacerda • 66 points
4 posts
-
0
votes1
answer80
viewsA: Coding conventions in C++
I don’t think it has any strictly defined standard for C++, but as pointed out by Maniero in comment to his question, the standard library tends to follow snake_case, and even if there are, several…
c++answered victorbarceloslacerda 66 -
0
votes1
answer55
viewsA: How to create a multidimensional array in c++?
It might be helpful if you had a three-dimensional matrix, the first index being precisely a kind of historical indicator, while the other two indexes would be the rows and columns. This way you…
-
0
votes1
answer15
viewsA: Error while trying to run fwrite in PHP
You are using read mode in function fopen() instead of the writing mode (instead of 'r' should wear 'w'). Check the access modes to a file in the official PHP documentation…
phpanswered victorbarceloslacerda 66 -
2
votes2
answers364
viewsA: How to calculate the number of times a word appears within a sentence
Repetitions of a Word To achieve the number of repetitions you can search the base string for another target string, and that’s exactly what the function strstr() library string.h faz (vide strstr,…