Questions tagged [isalpha]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Isalpha not working for all char of my string

I'm trying to use the isalpha() function to check whether all characters of a string are letters or not. However, when I use the debug50 module, it looks like after the first character of the string, ...
user avatar
  • 3
0 votes
1 answer
52 views

isalpha not counting

I am new to this and I'm doing the readability program. I'm using isalpha to count the letters and my program compiles but no matter what it says 0 and I can't figure out why. #include <cs50.h> #...
user avatar
0 votes
1 answer
17 views

Isalpha not working I added my code

I'm trying to use isalpha, but for some reason it's not working and counting everything, including spaces and punctuation. I tried to use isupper||islower with the same results. Any ideas why this is ...
user avatar
0 votes
1 answer
41 views

Isalpha not working

I'm trying to use isalpha, but for some reason it's not working and counting everything, including spaces and punctuation. I tried to use isupper||islower with the same results. Any ideas why this is ...
user avatar
0 votes
2 answers
151 views

pset2 substitution - isalpha doesn't seem to recognize letters

I'm relatively inexperienced at programming, but I thought I understood how to use command-line prompts well enough to try the substitution problem. I'm having an issue with isalpha that I don't ...
user avatar
0 votes
1 answer
99 views

Vigenere Segmentation understanding

I'm currently working on 'Vigenere' on the CS50 online course and i came across this issue that i totally believe comes down to problem in my understanding. please find my code below... // INCLUDE ...
user avatar
0 votes
1 answer
693 views

Comparing two strings for calc.c assignment

i'm having an error where i am having trouble checking if each arg entered is valid. Such as comparing two strings and running a chunk of code if the string matches the conditional. Here is my code: ...
user avatar
0 votes
1 answer
378 views

isalpha in python

I want to check a string's character whether it is alphabet or numeric, uppercase or lowercase but character by character in Python. Can anybody help me with this? Tell me if any module is to be ...
user avatar
  • 264
0 votes
1 answer
180 views

Pset2, caesar: string characters not working with is alpha logic?

I have run the debugger tested different combinations in my code, but I can't figure out why nothing is functioning. I input abc, I output abc. My program seems to determine all characters from the ...
user avatar
0 votes
1 answer
163 views

C: Trouble with isalpha and char* - Error: expected expression

I am receiving the error: expected expression with this line of code. if(char* i in (word[i]) isalpha) { I need to iterate over the characters[i] in a word entered by the user. First I need to check ...
user avatar
0 votes
1 answer
162 views

What is the return value when isalpha() evaluates to true?

I was running into an issue with my program for Vigenere's Cipher and singled it out to a problem with the equivalence of the value that is returned from isalpha() and the boolean "true". I now know ...
user avatar
0 votes
2 answers
297 views

pset2 how to use ctype.h functions

it takes me really long time to figure this out and am not making any progress so i was wondering if someone could help. how do i use, for example, isalpha in if statement. like: if ( argc != 2 |...
user avatar
1 vote
1 answer
141 views

Vigenere -Isalpha only checking first char of key

When checking the command line argument in Vigenere.c to see if it contains any non-alphabetic characters, I can't get my for loop to iterate past the first character. I have read all of the posts on ...
user avatar
0 votes
1 answer
991 views

PSET 2 Vigenere Cipher isalpha help!

I got my Vigenere cipher to work except for the part where you are supposed to skip over a space or symbol while maintaining your position in the key. In other words, a space or symbol is being ...
user avatar
0 votes
1 answer
1k views

C prog - COUNTER to find the number of alphanumeric's character in a string?

I'm trying to write a function to count the number of alphanumeric character(a,b,c,d,..,z), in a string. My code looks like it doesn't have error..., but when I run it, function stops to count ...
user avatar
0 votes
1 answer
2k views

pset2 how to check if argv[1] is alpha()

hi i need some help if anyone has an answer! I'm trying to make sure that every character in a string is an alphabetical char. So i use isalpha() to check char by char. Is there a function where I can ...
user avatar