12 lines
1.3 KiB
Markdown
12 lines
1.3 KiB
Markdown
Použitý AI modely: Google Gemini a ChatGPT (individualne)
|
|
|
|
Prompty:
|
|
1. ,,I have this line of code for calculating two numbers and I am getting bogus 6 digit numbers when trying to calculate them (i debugged the numbers individually with multiple printf() statements)" *skopirujem mu moj kod na citanie
|
|
2. ,,Can I declare multiple char[] arrays at once in a single statement like this? char num1Temp[10], num2Temp[10], resultTemp[10];"
|
|
3. ,,What characters does the ispunct() function return"
|
|
4. ,,given that ispunct() function returns these values, does the same return logic apply to the rest of 'is...' functions in the ctype library"?
|
|
5. ,,Could you give me a float equivalent of the atoi() function?"
|
|
6. ,, Could you tell me why does my sscanf() function read this incorrectly?" *prilepim mu kod*
|
|
7. ,,Can you explain how does the formatting argument work in sscanf() and can i restrict it to only read letters and only some certain symbols"
|
|
6. ,,Why does strtof() return an invalid float number like this?" *poslem mu screenshot vystupu na ktory som si dal vytlacit vystup strtof() funkcie*
|
|
7. ,,Could you explain to me this error please?" *poslem mu screenshot erroru, kde som nespravne castoval, resp. passoval do strtof() funkcie smerník a nechcel sa mi program prelozit*, |