- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Software programming learning aide
CS50 threads to aide as a supplementary resource › Forums › CS50’s Introduction to Computer Science by Harvard University on Edx › Week 2 › To create a new array equal to argv[1][ ] for the temporary storage of values in order to compare the uniqueness of keys
Tagged: arrays
char temp_array[t] = argv[1][];
for (int i = 0; i < 25; i++)
{
for (int j = i; j < 25; j++)
{
temp_array[t] = toupper(temp_array[t]);
printf("capital%c", temp_array[t]);
if (temp_array[t] == temp_array[1][j + 1])
{
printf("keys should be unique");
return 1;
}
}
}
[learn_press_profile]