Jump to content

C Programming Help[Gr]


UnSponsored

Recommended Posts

Exw mia argacia sthn sxolh sto ma8hma ths C kai exw kolisei se ena shmeio.

8elw na mou dosete enan kodika o opoios 8a diavazei enan Username kai 8a  dimiourgei to password etsi wste na einai to antistrofo tou username

 

px:

Diavazw ena username ( px "UnSponsored")

etsi wste Username = "UnSponsored"

8elw sthn metavlith Password na apo8ikeftei to aintistrofo tou 

etsi wste Password = "derosnopSnU"

 

 

FFl36EF.png

 

thnx in advnace

Edited by UnSponsored
Link to comment
Share on other sites

This should do the trick:

#include <string.h> // for strlen()

// reverse the given null-terminated string in place
void inplace_reverse(char * str)
{
  if (str)
  {
    char * end = str + strlen(str) - 1;

    // swap the values in the two given variables
    // XXX: fails when a and b refer to same memory location
#   define XOR_SWAP(a,b) do\
    {\
      a ^= b;\
      b ^= a;\
      a ^= b;\
    } while (0)

    // walk inwards from both ends of the string, 
    // swapping until we get to the middle
    while (str < end)
    {
      XOR_SWAP(*str, *end);
      str++;
      end--;
    }
#   undef XOR_SWAP
  }
}
Link to comment
Share on other sites

can be done in a simplier way

 

this is a char array, so create a new array with strlen size and add chars to it iterating the first string backwards

 

ps: dont fuck up with the line feed if any or with the null character

 

theres a reverse function in string.h afaik no sure tho

Edited by xxdem
Link to comment
Share on other sites

thnx elfo,tha to tsekarw meta...twra exw ena alo provila

8elw na ftia3w enan pinaka 50x7 o opoios 8a periexei 50 accounts (grammes) kai 7 Stiles se (name,surname,year of borth,username,password .....ktlp....)kai ola afta 8a diavazontai apo on xrhsth.....

Egw mexri twra 3erw oti gia na apo8ikefsw ena onoma prepei na to valw sthn metavlith (f.e. name[16] ) pou sthn ousia einai 1x16 pinakas....

Ti pinaka prepei na ftia3w gia na apo8ikevw ola ta dedomena afta...

Afto pou eixa kanei htan na kanw enan pinaka 50(grames)x7(stiles)x16(xaraktires) alla mou eipan einai la8os kai den borw na to xrisimopoieisw akoma gt den to exoume didaxtei....

 

ps: eimai se polu newbie stadio

thnx in advance

Link to comment
Share on other sites

gelasa me to oti den apa3ioses kan na diavaseis afto pou egrapsa giati epsaxnes gia etimo kodika...

 

aftoi ftene pou sas dinoune kai ptixia

lol veveos to diavasa,den edosa simasia gt vrika alou provlima pio sumantiko...episis den katalava kan ti i8eles na peis prwton gt ta agglika m einai gtp kai defteron epidi eimai too newbie sthn C.....anyway nvm...

 

oso gia to telefteo post pou ekana gia tous pinakes vrika ti lush..

nvm ty pados.

Link to comment
Share on other sites

lol the preprocessor inside function

If you are talking about the code, i just googled shit, that was approved to be working. I don't mess with C shit. Not my area.

Link to comment
Share on other sites

void usernametopassword()
{
 len = strlen(username[p]);
 ptrinv = username[p] ; 
 k=len-1;
 for(j=0;j<len;j++)
 { 	
 password[p][k]= *ptrinv;
 	k--;
 	ptrinv++;	
 }
}

to ekana etsi kai doulepse,,,thnx gia to help.

You can lock it

Edited by UnSponsored
Link to comment
Share on other sites

  • 2 weeks later...
Guest
This topic is now closed to further replies.


  • Posts

    • OUR OFFICIAL WEBSITE / FORUM - MILLENNIUM-HOOK.NET CHEAT DESCRIPTION: Our cheat for Valorant is the best and safest solution for this game. The cheat supports all the most necessary functions such as aimbot. We also support esp, since our esp (visual) is not displayed in screenshots or videos, for example when streaming. Therefore, we cannot be detected by the Riot Vanguard anti-cheat. We offer you the best value for money cheats on the market for this game. SUPPORTED ANTI-CHEATS: (read more on official website) - Riot Vanguard AC: Undetected & Safe Our Valorant cheat has a limited number of slots to ensure greater product security! (Available slots check on official website) FEATURES: AIMBOT: - Bone (Head, Neck, Body, Arms, Stomach) - Customizable Smooth - Customizable Fov Size / Fov Circle - Anti Shake Aim - Aimkey - Auto Shot - RCS ESP: - ESP Players - Player Corpse - Player Box - Filled Box - Line ESP - Player Skeleton - Player Health - Distance ESP MISC: - Online config - No Recoil - Radar (A Separate Radar that shows locations of the enemies) REQUIREMENTS: - Included HWID Spoofer: Yes - Stream Bypass: Yes - Supported game modes: Windowed, Borderless - Supported CPU: Intel & AMD - Supported OS: Windows 10 (1903,1909,2004,20H2,21H1, 22H2), Windows 11 (All version). Supported OS change and are added periodically. More check on official website. SCREENSHOTS: - Check on official website.
    • Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hoodservices https://campsite.bio/utchihaamkt
    • WTS valakas-antharas-zaken-baium-qa on x1 l2 reborn. A better price will be made if u choose to purchace all of it. Middleman @PUFA   NOTE: dont even bother to pm me if u only want 1 epic.the minimum trade will be anth+valakas+baium or anth+valakas.or 1 dragon+baium.      
    • I'm trying to change some skills but I can't open the l2ini with the l2pe
  • Topics

×
×
  • Create New...