Share these flash cards

With group: C++ Computer Programming
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 35 terms

TermDefinition
formal parameterA variable declared in the funtion heading is what?
actual parameterA variable or expression listed in a call to a function.
function prototypeWhat is the function heading without the body of the function.
iostream fstreamWhen opening files you must include the header files <_____> and <_____>.
getlineIn order to read a string containing blanks into a variable you use what function?
fin.close()What code would you use to close the input file “fin” at the end of a program?
ifstream fin("input.dat")How would you open the file input.dat at the beginning of a program? Use the ifstream variable fin.
improperlyIf !fout.good () evaluates to true the file has opened properly or imporperly?
strVar.length()How would you find the length of a string, where strVar is the variable for that string.
strVar.size()How would you find the size of a string, where strVar is the variable for that string.
strVar.find('a')If you wanted to find the char ‘a’ in the string strVar, what would you code?
toupper()This function returns the uppercase version a character.
tolower()This function returns the lowercase version of a character.
isalpha()This function returns true if the character is a letter.
isdigit()This function returns true if the character is a number.
isalnum()This function returns true if the character is a digit or letter.
isspace()This function returns true if the character is a whitespace.
ispunct()This function returns true if the character is other than a letter, digit or a whitspace.
indexThe ____ value specifies the position of the component in an array.
referenceArrays are passed to functions by ____ only.
pointer variableA variable whose content is a memory address.
dynamic variablesVariables that are created during program execution are called what?
dereferencing operatorThe asterisk character * is called what when used as a unary operator?
dynamic arraysArrays created during the execution of a program are called what?
the content of the memory location pointed to by p*p is read as…
danglingPointer variables that still contain the addresses of the deallocated memory spaces are said to be doing what?
automatic variableA variable for which memory is allocated at block entry and deallocated at block exit is called a what?
static variableA variable for which memory remains allocated as long as the program executes is called a what?
function overloadingSeveral functions with the same name is called what?
cctypeThis header file is needed to use the character manipulation functions.
strcpy(str2,str1)If you wanted to copy the C-style string str1 onto C-style str2 what function would you use?
strcmp(str1,str2)If you wanted to compare the C-style strings str1 with str2, what function would be used?
strcat(str2,str1)If you wanted to add the C-style str1 onto str2, what function would you use?
strlen(str)If you wanted to find the length of the C-style string str, what function would be used?
str.c_str()If you wanted to turn the string str into a c-style string what would you use?

Set Information

Terms 35
Creator Timdegreat
Created March 17, 2007
Group C++ Computer Programming
Subjects science, programming, plus, logic, language, engineering, computer
Access Anyone
Edit Group: C++ Computer Programming
Get rid of ads on Quizlet

Description

A second set of introductory C++ terms and info.

Pop out

Discuss

Timdegreat : Changed ifstream fin(“input.dat”) → How would you open the file input.dat at the beginning of a program? Use the ifstream variable fin. to ifstream fin("input.dat") → How would you open the file input.dat at the beginning of a program? Use the ifstream variable fin.
Timdegreat : Changed properly → If !fout.good () evaluates to true the file has opened properly or imporperly? to improperly → If !fout.good () evaluates to true the file has opened properly or imporperly?
Timdegreat : Changed strVar.find(‘a’) → If you wanted to find the char ‘a’ in the string strVar, what would you code? to strVar.find('a') → If you wanted to find the char ‘a’ in the string strVar, what would you code?
Timdegreat : Changed strcat(str2, str1) → If you wanted to add the C-style str1 onto str2, what function would you use? to strcat(str2,str1) → If you wanted to add the C-style str1 onto str2, what function would you use?
att159 : helpful
att159 : thanks
Last Message: 24 months ago

You must be logged in to discuss this set.

Top Users

  1. Timdegreat - 205 scores
  2. yezdi - 133 scores
  3. ventro - 68 scores
  4. pccole - 8 scores
  5. bph_dander_hater - 7 scores
  6. GameMaster13 - 2 scores
  7. scg7751 - 2 scores

Most Missed Words

  1. the content of the memory location pointed to by p *p is read as… - 13 misses
  2. function overloading Several functions with the same name is called what? - 8 misses
  3. automatic variable A variable for which memory is allocated at block entry and deallocated at block exit is called a what? - 7 misses
  4. actual parameter A variable or expression listed in a call to a function. - 7 misses
  5. isdigit() This function returns true if the character is a number. - 7 misses
  6. isspace() This function returns true if the character is a whitespace. - 6 misses
  7. isalpha() This function returns true if the character is a letter. - 6 misses