This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Sample_Model_Observer | |
| { | |
| protected $colToAdd = 'colname'; | |
| /** | |
| * @param Varien_Event_Observer $observer | |
| */ | |
| public function urapidflow_profile_action( $observer ) | |
| { | |
| $action = $observer->getData( 'action' ); | |
| $profile = $observer->getData( 'profile' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * File: main.c | |
| * Author: pp | |
| * | |
| * Created on June 27, 2013, 5:29 PM | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/unistd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main() | |
| { | |
| // която чете числа до срещане на 0 и намира колко пъти поредното въведено число е по голямо от предходното | |
| // ВХ: 20,15,7,10,13,4,19,0 -> изх.3 | |
| int curr = 0, prev = 0, br=0; | |
| printf("vyvedete chislo: "); | |
| scanf("%d", &curr); | |
| while (curr != 0){ | |
| if (curr > prev && prev != 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main() | |
| { | |
| // 4ete 4isla do sre6tane na 0 i namira max 4islo, koeto ne se deli na 3. | |
| int n, max = -1000; | |
| do { | |
| printf("vyvedete chislo: "); | |
| scanf("%d", &n); | |
| if (n % 3 != 0 && n > max) { |
NewerOlder