Hirdetés
Új hozzászólás Aktív témák
-
#90088192
törölt tag
Hello

Elmétek kiapadhatatlan tudás forrását, szeretném ismételten megcsapolni

Lenne egy olyan problémám, hogy a tömb nevét szeretném változtatni attól függően milyen betűtípust akarok használni. Font neven fut, és ha változóval próbáltam helyettesíteni nem ment.
Gondolom van rá megoldás, csak nekem új
Előre is köszönöm
Ez lenne a példa részlet:
int write_char(int page_select, int y_offset, int charcater_code)
{ int x;
if(y_offset>=( Display_width/2) && y_offset <= Display_width - Font_width && charcater_code>=32 && charcater_code<=128) //Check which side of the screen need to be activated
{
goto_xy( page_select, y_offset);
for(x=( charcater_code - Font_offset ) * Font_width; x<(( charcater_code - Font_offset)* Font_width)+ Font_width; x++) //Decodes the character code and make sure the data is sent by 8 bits
{
send_data_screen( Font[x]); //Sends out the relevant section of the Array
}
} else if( y_offset<( Display_width/2) && y_offset>=0 && charcater_code>=32 && charcater_code<=128)
{
goto_xy( page_select, y_offset); //Selects pages of writing
for(x=( charcater_code - Font_offset)* Font_width; x<(( charcater_code - Font_offset) * Font_width)+ Font_width; x++) //Decodes the character code and make sure the data is sent by 8 bits
{ if( y_offset + (x-( charcater_code - Font_offset) * Font_width)!=( Display_width/2)) //Checks if the character has reached the border of the 2 sides of the screen
{
send_data_screen( Font[x]);
}
else
{ //If the Character is belong to the right side
goto_xy( page_select,( Display_width/2)); //Selects pages of writing
send_data_screen( Font[x]); //Sends out the relevant section of the Array
}
}
}
else
{
MEMBRANE_MUTE=1;
}
}
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Ha Darwinra hallgat az AI, nehéz lesz megállítani
- Apple MacBook
- AMD Ryzen 9 / 7 / 5 9***(X) "Zen 5" (AM5)
- Okos otthon - Home Assistant, openHAB és más nyílt rendszerek
- Kormányok / autós szimulátorok topikja
- Saros (PS5)
- Bluetooth hangszórók
- A fociról könnyedén, egy baráti társaságban
- Motorolaj, hajtóműolaj, hűtőfolyadék, adalékok és szűrők topikja
- sziku69: Szólánc.
- További aktív témák...
- HP EliteBook 850 G6 15,6" i7 -8665u, 16GB RAM, Radeon X550 2GB, 256GB SSD, jó akku, számla, 6 hó gar
- HP ProLiant DL360p Gen8 1U szerver (2x Xeon E5-2667 v2, 32GB RAM) + RACK SÍN!
- MSI RTX 3070 8GB GDDR6 VENTUS 3X OC Eladó!
- MSI RTX 4070 12GB GDDR6X VENTUS 2X OC - 1 év garancia - Eladó!
- GIGABYTE GTX 1660 SUPER 6GB GDDR6 GAMING OC Eladó!
- Mobiltelefon szerviz Apple & Android készülékek gyors javítása!
- HP Zbook 15u G3 - 15,6" FHD kijelző, i7 6500U, 16GB RAM, 256GB SSD, FirePro W4190M 2GB, számla
- HIBÁTLAN iPhone 15 Pro 128GB Natural Titanium -1 ÉV GARANCIA - Kártyafüggetlen, MS4671
- Bomba ár! Lenovo ThinkPad L490 - i5-8G I 16GB I 256SSD I 14" FHD Touch I HDMI I Cam I W11 I Gari!
- 276 - Lenovo Yoga Pro 9 (16IAH10) - Intel Core U9 285H, RTX 5070 (ELKELT)
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest



