Skip to content

Instantly share code, notes, and snippets.

View StabbyMcDuck's full-sized avatar

Regina StabbyMcDuck

  • Minneapolis, MN
View GitHub Profile
#include <iostream> // includes and statements section
using std::cin; // user input
using std::cout; // machine output
using std::endl; // for line breaks
int main () {
int magicNumber; // number player 1 enters
int guess; // number that player 2 guesses
#include <iostream> // includes and statements section
#include <string> // strings
#include <cstdlib> // c standard library
#include <ctime> // time
using std::cin; // user input
using std::cout; // machine output
using std::endl; // for line breaks
using std::strtol; // convert string to int
using std::string; //string
// Regina Imhoff
// Ecampus CS 161
// Assignment #4 exercise 1
#include <iostream> // includes and statements section
#include <string> // strings
#include <cctype> // c type
using std::cin; // user input
using std::cout; // machine output
// Regina Imhoff
// Ecampus CS 161
// Assignment #6
// makes histogram of students' grades as entered by an instructor
#include <iostream> // includes and statements section
#include <string> // strings
#include <cstdlib> //c standard library
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <string>
//***********************************
// A program to search through 4 different files looking for a number, 5
//***********************************
void insertSort(int arrayToSort[], int arraySize){
main.cpp:15:42: error: expected ')'
while((i > 0) && (arrayToSort[i-1] > x){
^
main.cpp:15:8: note: to match this '('
while((i > 0) && (arrayToSort[i-1] > x){
^
main.cpp:41:28: error: expected ';' after expression
middle = (end - start)/2) + start;
^
;
#include <iostream>
#include <fstream>
#include <string>
//***********************************
// A program to search through 4 different files looking for a number, 5
//***********************************
void insertSort(int arrayToSort[], int arraySize){
main.cpp:57:5: error: use of undeclared identifier 'missing'
if(missing == true){
^
main.cpp:89:10: error: expected unqualified-id
for(int = 0; i < arraySize; i++){
^
main.cpp:89:15: error: expected ';' in 'for' statement specifier
for(int = 0; i < arraySize; i++){
^
main.cpp:89:15: error: use of undeclared identifier 'i'
{
"color_families": [
{
"name": "Yellow",
"color": null,
"id": 1,
"spectrum_order": 1,
"permalink": "Yellow"
},
{
{
"stash": [
{
"permalink": "fiber",
"location": "",
"created_at": "2011\/05\/07 19:34:15 -0400",
"stash_status": {
"name": "In stash",
"id": 1
},