First thing, you need to learn how to format your code and use indentation, it really help for reading the code and understand it.
#include<iostream.h>
#include<ctype.h>
void main( )
{
char Text[ ] = "Comp@uter!";
for(int I=0; Text[I]!=‟\0‟;I++)
{
if(!isalpha(Text[I]))
Text[I]=‟*‟;
else if(isupper(Text[I]))
Text[I]=Text[I]+1;
else
Text[I] = Text[I+1];
}
cout<<Text;
}
Quote:
Please no hate, I'm not a computer programmer.
No hate here, we were all beginner once. If we don't just give the answer, it is because we know from experience that it is the worst thing to do, it don't help you to learn programming.
Quote:
Tried running online doesn't work
This is not informative, asking question is also a wanted skill. Try to give informations like error messages and positions.
Once compiler errors are corrected, you can use the debugger, it is a tool that will allow you to see the program executing.
When you don't understand what your code is doing or why it does what it does, the answer is
debugger.
Use the debugger to see what your code is doing. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute, it is an incredible learning tool.
Debugger - Wikipedia, the free encyclopedia[
^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
The debugger is here to show you what your code is doing and your task is to compare with what it should do.
There is no magic in the debugger, it don't find bugs, it just help you to. When the code don't do what is expected, you are close to a bug.