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
0xc2D7d1a127D0448d826d86D1b304e9a3178837cC |
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
--- Modern Application Design | |
--- Why it's worth the extra effort to understand Catalyst over simpler frameworks like Mojolicious or Dancer |
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
#!/usr/bin/perl | |
#Write a program, codepoints2char.pl, that can take a list of decimal (not hexadecimal) numbers | |
#and print the Unicode character. Assume UTF-8. Try running it with the following: | |
#perl codepoint2char.pl 3232 95 3232. | |
use strict; | |
use warnings; | |
use diagnostics; |
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
use strict; | |
use warnings; | |
use Data::Dumper; | |
my $numbers = []; | |
#repetam PANA CAND (de unde si while) avem 6 elemente in $numbers | |
while (scalar @$numbers < 6){ |
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
// Using pointers to exchange values | |
#include <stdio.h> | |
void exchange_values( int * const pint1, int * const pint2) | |
{ | |
int temp; | |
temp = *pint1; | |
*pint1 = *pint2; |
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
/* Make a function substring() to extract a | |
portion of a charcter string. | |
subtring("character", 4, 3, result) | |
extract 3 charters begining from charter 4, and put the | |
result in array result*/ | |
#include <stdio.h> | |
#include <string.h> | |
const char* substring( char string[], int start_at, int length, char result[] ) |
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
/* The countWords() function from program 9.7 and 9.8 | |
incorectly counts a word that contains an aphostrophy | |
as two words. Modify this funcion to corectly handel | |
this situation. Also, extend the founction to count a | |
sequnce of positive or negative numbers, including | |
embeded comma as a single word */ | |
// Function to determine if a chracter is alphabetic | |
#include <stdio.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
/* Write a function called clocKeeper() that | |
takes as it argument date_and_time structure as | |
defined in this chapter.The function shuld call | |
the timeUpdate() and if it reaches midnight, the | |
function shuld call the dateUpdate() to switch over | |
to the next day.Have the function to return the updated | |
date_and_time structure*/ | |
#include <stdio.h> | |
#include <stdbool.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
/* Write that calculates an avereage of an | |
array of an array of 10 floating points values*/ | |
#include <stdio.h> | |
#include <stdbool.h> | |
int main(void) | |
{ | |
float array[10], array_elements_sum = 0, array_elements_avreage = 0, array_elements_temp ; | |
int i; |
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
/* Write a program that acts as a simple calculator.The program shuld | |
alow the user to input data in form number operator number. | |
The following operators shuld pe recognized: +, -, *, /, S, E, . | |
The S operator tells the program to set the acumulator to the typed in | |
number. The E operator tells the program that execution is to end. | |
The artmethic operatioons are performed on the contenst of the acumulator with the number | |
that was keyed in accting as a smaple operand | |
program output | |
10S set Acumulator to 10 |
NewerOlder