Thanks for the links iMalc! I have read it and now I understand my errors. Thank You for giving tips!
Type: Posts; User: OmnibladeZ
Thanks for the links iMalc! I have read it and now I understand my errors. Thank You for giving tips!
Oh, I saw it, Thanks sir laserlight
I used this bit and replaced all nested ifs in my code and a huge cut on lines from 170++ to 109.
if(array[cnt]==array[cnt+1])
continue;
...
Do I have to make an array to store the prime numbers sir? or can it be implemented on the code and just omit the if and else-ifs?
the part i need help with is the "skip".
in this code the upper for is used to check if the number is prime so thats settled.
The program checks each number in the array now there are multiple same...
I have solved the crash problem and proud to report that the program is now well and working, I have coded everything in one go, and it was my mistake.
I now have a simple concern about my code and...
We haven't discussed Functions in C++ in our class yet so sadly I can't implement that in my code yet. after further analyzing I have come to a conclusion that my Initialization of 2d Array is not...
Hey Guys, I'm back again and in need of your help again.
Here is my code and the problem is that my program crashes and I don't know why. Can anyone help me debug it?
#include<iostream>...
Done! That was the last problem. Thank you sir laserlight! you are a very helpful person. Thank you so much!
I have already gone past the 2nd problem, Just used toupper now I have a third problem and hopefully the last one.
else if(choice==2)
{
system("cls");
cout<<"DISPLAY BOOK...
Thanks sir Laserlight, I have already made that work using cin.getline. Now i have a new problem.
else if(choice==3)
{
system("cls");
cout<<"SEARCH BOOK - MMSU Library...
Hey Guys, I need assistance with my code because everytime it skips the part to input. Maybe someone could help me with my code. here it is.
int main()
{
int...
It worked like a charm! thanks sir! you're really good. I'll be back soon :D thanks again sir, you just saved me hours and a whole semester.
how do i skip the zero entry?
i tried
if (hold[ucnt]==0)
ucnt++;
what do i put under the if?? i thinks i have it wrong,,
and how about the prime?? i thinks its easier if i just used a skip?
Thanks for moving it sir.
so what do i do with it,
I'll merge the 2 functions in 1?
Hey, Can i get help too? I have a problem same with this guy, now i got far in coding and learned alot while doing so but i have a slight problem, in those 3 displays (ODD,EVEN,PRIME)
if i input...