Written a code that parses through a file reading

Assignment Help C/C++ Programming
Reference no: EM13168429

written a code that parses through a file reading it line by line and splitting it into tokens by white space. But I want a pair of single quotes to be one token, not how many words are in it,

For example I want something like

Done a'ccept command' Done

to be three tokens not four the three bieng

first Done second a'ccept command' third bieng Done.

So far I have

void file_parser::check_quote(tokens<v>) {

boolean has_quote;

for (int i = 0; i <= tokens.size(); i++) {

String temp = tokens.c_str();

for (int i = 0; i <= tokens.size(); i++) {

if (tmp[i] == '\'') {

has_quote = true;

int FirstQuote = i;

}

if (has_quote && i != FirstQuote && tmp[i] == '\'') {

int SecondQuote = i;

for (int k = FirstQuote; k <= SecondQuote; i++) {

}

}

}

}

 

 

Reference no: EM13168429

Questions Cloud

Short memo to the vice-president of production : Write a short memo to the vice-president of production recommending whether the availability of any of the three resources (blending, purification, or labor) should be increased from current levels. If you recommend an increase, specify at most ho..
What are the solute particles present in aqueous solutions : Methanol, CH3OH, is a nonelectrolyte; acetic acid, HC2H3O2, is a weak electrolyte; and ammonium chloride, NH4Cl, is a strong electrolyte. What are the solute particles present in aqueous solutions of each compound? (Select all that apply.)
How many grams of water should theoretically be produced : If 6.01 grams of Nh3 reacts completely, how many grams of water should theoretically be produced?
Shortage of resilience research on canadian aboriginals : Write an essay of 500-750 words. Be sure that you are presenting the concepts in your own words and that you include current information.
Written a code that parses through a file reading : written a code that parses through a file reading it line by line and splitting it into tokens by white space. But I want a pair of single quotes to be one token, not how many words are in it
Show your work for the reduction : Find the complement of F(A,B,C) = AB + ( BC' * A) and reduce it. show your work for the reduction using the axioms of boolean algebra. then, implement the simplified expression using AND,OR and NOT gates
How can we use both karnaugh maps : How can we use both Karnaugh maps and DeMorgan equivalences to better understand systems we build?
Calculate the ph of each of the following solutions : Calculate the pH of each of the following solutions.
What is the mass of the water : A source of energy releases 3000 calories. This changed the temperature of a mass of water from 25 C to 55 C. What is the mass of the water?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd