Posts by Daniel Antunes Pinto • 135 points
4 posts
-
1
votes1
answer107
viewsA: Route Translation with Cakephp
If the pages are static, you will have to create one by one. To simplify the process you can do the following: Controller public function contact() { ... $this->render('contact');…
-
1
votes3
answers165
viewsA: Rotate text and replace first link
Use the following code: $links = array(); $text = "Hahahha que legal esse site, consegui responder todas minhas perguntas lá /" $regexp =…
-
0
votes2
answers249
viewsA: Problems with vectors and structs
A brief explanation of what was happening, improving @ricardokiki’s response. The variable a is a vector and when passing &a as argument of the function you were passing a pointer pointer, as…
-
0
votes3
answers1021
viewsA: Iterated inline functions
When you use inline, the compiler chooses to copy the body of the function and replace it in the call instead of using the function itself. As @Lucas Virgili commented, by using the -02 option you…
c++answered Daniel Antunes Pinto 135