Sturm commented: Why do you insist on posting inane crap? Instead of spamming, why don't you help someone for a change? +0
Thats fine, you'll perhaps wtill want to take a look at our FAQ & Rules for the forum to get you better aquainted to the site.
Welcome! Hope you'll enjoy it here.
Good day...this is the wrong forum for asking questions...please go to the C forum and post your question!
Maybe this will give you an idea:
http://www.daniweb.com/forums/showthread.php?t=93146&highlight=min+max+number
Pinky and the Brain!...I heard they are coming back soon!
Good day and welcome aboard. With regards to checking to see if a char is a letter, we use the isalpha() function. It's also good to post your code here, so that we can look it over. More information can be found here:
http://www.cprogramming.com/fod/isalpha.html
With regards to removing a punctuation from a string, you'll perhaps have to decalre the punctuations as an array of characters. Hope this helps!
Pot roast beef with potatos and rice/peas!
The firing squad is always an option!
The firing squad is always an option!
Great link..thx again!
Thanks for spotting those out!
No No guys....we're taking this too far...I have a 3rd degree blackbelt....mosquitos don't mess around me anymore...
Welcome aboard...hope you'll enjoy it here!
Happy that i could help...in the future you could post your code, so that it could benefit the entire daniweb community!
Good day..you're going to have to show some effort...we don't do assignments for students...you must show some effort. But a few things:
1. To display the "Enter Result" on the screen each time, you woukd use something like this:
char again = 'y';
while (again =='y')
{
//do something
}
cout<<"Go again?(y/n):"<<endl;
cout<<"Enter Result"<<endl;
2. You use a counter to keep track of which students failed and passed.
3. To check if more than 8 students the exam, you use an if/else statement:
if (numpassed>8)
{
cout<<"Raise tuition"<<endl;
Hope this helps, but you still got ways to go!
Welcome aboard..if you have a specific question/problem please post and let us know...once you have your pseudocode/algorithm, you're on your way to succeeding in your C++!
Good day guys. So I'm pretty much done with the C++ class (which i don't need any other one). This program (as below) and I have some problems. See my first post for what the assignment is about and also, I've included the errors I get.
#include <iostream>
#include <cctype>
#include <iomanip>
#include <cmath>
#include <dos.h>
#include <fstream>
#include <string>
#include <ctime>
#include <conio.h>
#include <windows.h>
#define cls system("cls")
#define frz system("pause");
#define yl system("color 0e");
using namespace std;
//********************************** Type definitions
void layout(); // declaration of display function
string ReadFromFile(); // declaration of function to read from files
string encrypt(string code, string text); // declaration of function to encrypt files
string decrypt(string code, string text); // declaration of function to decrypt files
string codeCreation(string string1, char alphabet[26]); // declaration of function create code
string numericalValue(string s); // find the number value
//********************************** Function Prototypes
//********************************** Main Function
//declaration of string variables
string AlphabetCode = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string converUppercase(string strn1);
string s1, s3, original, s7 = "ETRERTRHFG";
string string2;
string string3;
//the main function were everything starts and ends
int main()
{
//declaration of the original alphabet
char alphabet[26] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
start:
//initialization of string
string s2 = ""; // making string2 a null string
//get string from user
cout << "Enter string to create the decryption alphabet code : ";
cin >> s1;
cout << '\n';
original = s1;
//convert string to upper case
s7 = converUppercase(s1);
//create encryption code
s3 = codeCreation(s7, alphabet);
//encrypt the file
s1 = …
Also, i don't recommend only on one anti-virus program...use also AVG and S&D to keep your computer clean. The AVG will show up under the security center.
darkagn...i totally agree about TMNT, x-men and batman...i still have some of those old video games on sega, genesis, 64 and old Nintendo...the one that you had to blow the cartidges and hit it for it to work...this thread brings back good memories...a friend and i went into a neighbours home to play the nintendo and we got caugt...also this reminds me of those old archie comics...spider man, avengers, punisher, x-force, wonder man, g.i. joe, iron man, darkhawk, captain america, conan...and the list goes on...they ought to bring them back!
Why would you change it?
If your problem has been solved...please mark this thread as being solved! Thx
jbennet...good goal....all the best m8...may be power of the fish n chips be with you!
Just to be extra cautous....bobbyraw...the pair of " they aren't included correct? Thx
Additionally, though not virus/software, my friend's monitor is dark....now if you shine a torch on it...you can see the desktop...but I gotta now be using a separate monitor to use with the laptop....i'm thinking that it's the backlight thats no good and not the actual monitor itself...what do you think? Thx for the feedback!
The boot.ini file for the setup says:
[Boot Loader]
Timeout=5
Default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
C:\$WIN_NT$.~BT\BOOTSECT.DAT="Microsoft Windows XP Professional Setup"
To get rid of mosquitos.....bring in the infantry...the Mother of All Bombs...or perhaps..Russia'sclaim of the King of all Bombs...that ought to get rid of these pests...actually, i know people who burn the skin of orange and it seems to work...not recomend to burn depending on where you live...
What exactly should I change the boot file info to? In the default operating system box...I got "XP Professional Setup" and I also have "XP Professional"...so I'm assuming that it should be changed to "XP Professional"...Thx for all the assistance thus far.
Do you have a floppy (3.5) boot disk?
where is the location of the boot.ini file? Thx for ur assistance.
Welcome aboard…this forum is only for introductions; please post your question in the appropriate forum. We recommend that you take a look at our FAQ and Forum rules.
Welcome aboard…this forum is only for introductions; please post your question in the appropriate forum. We recommend that you take a look at our FAQ and Forum rules.
Yes, the desktop comes up...it works fine...
Thx for the reply...but the hard-drive hasn't been formatted...so it gives me the option to boot normally XP OS...so i can go to the desktop normally.
4254
With regards to pop-ups, have you tried simply using a pop-up blocker? About the the malwares, you can use the following programs to scan for and clean the malwares as a precaution if the computer has been affected:
1. Spybot Search & destroy
2. AVG
3. Adware
4. Spyware be-gone
Additionally, just some general guidline:
1. Keep your computer up-to-date from the Microsoft(if you’ve got windows). They at times release security updates.
2. Scan your computer regularly for viruses, keyloggers, trojans ect…computer hackers use these as a means of obtaining your personal information.
3. If you received a pop-up, such as “You’ll win a million dollar”…if it sounds too good to be true…chances are…it’s a scam. Many people upload their personal information and are then bombarded with spam email ect…They’ll then perhaps try to use whatever information they received to do financial transactions.
4. Make sure that your computer Firewall in ON. Pretty much, the firewall is a piece of software that helps to block out hackers, viruses, and other malwares that try to reach your computer over the Internet while you surf. Be careful of what websites she visit.
Welcome...hope you'll enjoy it here!
Welcome...hope you'll enjoy it here!
hhhmmm...dunno how i messed this one...lets see...both are essential, i actually voted none...i'd have to go for a woman who can cook...
Good day. I'm helping a friend who has got a laptop...wasn't used for ages and is really messed up. I haven't completed the diagnostics/repairs yet. I have a quick question, if he tried to do a fresh install and it never worked, at start-up it shows options such as 'Contine to set up XP' or I also see 'Continue to Boot'....not the exact wording, but something to that effect. So i guess I'm suppose to continue with the fresh install, but what if he doesn't want that...is there anything I can do so that it boots normally without those booting options. Thanks and have a good day.
welcome to DaniWeb
by the way.....did anyone look at the video? Also, here are some tributes which ought to bring back memories:
1. http://www.youtube.com/watch?v=QmcKGcKW76M&feature=related
2. http://www.youtube.com/watch?v=Bto7l3cKhvk&feature=related
....Priceless...enjoy!!
70 hours/week.....all the best mate.
Oh my gosh....how could I forget popey's....i better go get some spinach. Captain planet too...then we got tom & jerry..these years of cartoons are undoubtedly the best...wish they could make movies out of then...i use to literally run from school and take short-cuts to be home to watch these...and then a bunch of noise because i didn't want to do my homework.
Welcome aboard. If you have specific problems please post them in their respective forums.