Questions tagged [isalpha]
The isalpha tag has no usage guidance.
16
questions
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 ...
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 ...
0
votes
2
answers
187
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 ...
0
votes
1
answer
205
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 ...
0
votes
1
answer
50
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, ...
0
votes
1
answer
182
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 ...
0
votes
1
answer
198
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 ...
0
votes
2
answers
312
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 |...
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 ...
0
votes
1
answer
82
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>
#...
0
votes
1
answer
42
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 ...
0
votes
1
answer
56
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 ...
0
votes
1
answer
712
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:
...
0
votes
1
answer
430
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 ...
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 ...
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 ...