Yea damn so %c also includes numbers, somehow I wasnt aware of it /facepalm.
And BTW, also einDeutscher (aGerman) :P. Danke für die schnelle Antwort (thanks for the quick reply).
Type: Posts; User: crusher152
Yea damn so %c also includes numbers, somehow I wasnt aware of it /facepalm.
And BTW, also einDeutscher (aGerman) :P. Danke für die schnelle Antwort (thanks for the quick reply).
Hi,
so creating a menu with the choices of 1-5 (integers) and saving the result into "scanfResult" worked very nicely so Ive tried to implement the same logic to characters but somehow it doesnt...
Ups not sure why I wrote "backspace", thanks alot for the explanation and your time.
Hi need your help again ...
#include <stdio.h>
#include <string.h>
typedef struct
{
char phone[30];
Ive reinstalled everything and now it works, I dont know what the issue was but again thanks alot !.
I thought I have to replace my "strcpy ..." code with the "people..." code but still it wont print out anything in the end. If it works for you then maybe my IDE or compiler is faulty ? I just get...
But you then didnt specify ".name" and ".phone", doesnt work for me. Cant you just write down the snippet of code and show it ? That would be so much easier and quicker because somehow I dont get it...
Thanks for your time and help but I cant figure it out, it just wont work. If I initiliaze with "people[0]" etc. which I also tried before then the variables "Maik, Kevin" are unused.
I also dont...
Hi,
Iam using different tutorials and sadly the lecture from Harvard on YT always uses a custom made "cs50.h" library which in the end just complicate things because I have to figure then things...
Ok thank you I will reinstall everything and see if it makes a difference. I actually have sometimes compiling issues so something doesnt seem to be right. Again thanks.
#include <stdio.h>
int main(void)
{
int fahr = 0, total = 0, step = 0;
printf("Fahrenheit ?: ");
scanf("%d", &fahr);
Hi,
thanks for your reply, such a little error but now it works thanks alot. And sorry for including the code wrong I will do better in the future :).
Hi,
I just started with C like 1 week ago and Ive never coded in my life so bear with me :) as I always try to code stuff from the top of my head that Ive already learned so its really just a very...