All Questions
Tagged with variables compilation-error
2 questions
0
votes
1
answer
74
views
What does "using" a variable entail and why does this inconsistency come up? (pset1, greedy, general question)
During the greedy problem in pset1 I wrote this function:
void greedy(int coin_type, int *change, int *coins) {
while (*change / coin_type > 0) {
*coins++;
*change -= coin_type;...
0
votes
1
answer
385
views
compilation error multi-character character constant in caesar
The code is:
string plaintext = GetString();
for (int i = 0, n = strlen(plaintext); i < n; i++)
{
printf("%c", plaintext[i]);
if ((isalpha(plaintext[i])) && (isupper(...