Question

I have 2 quiestions In the Makefile rule prog2.o: prog2.cpp Set.h Stack.h Queue.h g++ $(CCFLAGS) -c...

I have 2 quiestions

In the Makefile rule prog2.o: prog2.cpp Set.h Stack.h Queue.h g++ $(CCFLAGS) -c prog2.cpp what is the dependency list?

A. prog2.o

B. g++ $(CCFLAGS) -c prog2.cpp

C. g++

D. prog2.cpp Set.h Stack.h Queue.h

-------------------------------------------------

A C++ program named examProg written to accept command-line arguments is run at the Unix command line as follows:

D987655@turing:~$ examProg dog cat frog What will be the value of argc?

A. 1

B.2

C.3

D.4

0 0
Add a comment Improve this question Transcribed image text
Answer #1
1.
D. prog2.cpp Set.h Stack.h Queue.h



2.
D.4

Add a comment
Know the answer?
Add Answer to:
I have 2 quiestions In the Makefile rule prog2.o: prog2.cpp Set.h Stack.h Queue.h g++ $(CCFLAGS) -c...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • permute zip contains: makefile: DIR=${PWD} ASST=$(notdir ${DIR}) MAINPROG=pdriver ifneq (,$(findstring MinGW,$(PATH))) DISTR=MinGW EXE=.exe LFLAGS= else DISTR=Unix...

    permute zip contains: makefile: DIR=${PWD} ASST=$(notdir ${DIR}) MAINPROG=pdriver ifneq (,$(findstring MinGW,$(PATH))) DISTR=MinGW EXE=.exe LFLAGS= else DISTR=Unix EXE= LFLAGS= endif # ######################################################################## # Macro definitions for "standard" C and C++ compilations # CPPFLAGS=-g -D$(DISTR) CFLAGS=-g TARGET=$(MAINPROG)$(EXE) CPPS=pdriver.cpp permute.cpp LINK=g++ $(CPPFLAGS) # CC=gcc CXX=g++ # # # In most cases, you should not change anything below this line. # # The following is "boilerplate" to set up the standard compilation # commands: # OBJS=$(CPPS:%.cpp=%.o) DEPENDENCIES = $(CPPS:%.cpp=%.d) %.d: %.cpp    touch $@...

  • I am using xcode Use the following ideas to develop a nonrecursive, linear-time algorithm for the...

    I am using xcode Use the following ideas to develop a nonrecursive, linear-time algorithm for the maximum-subarray problem. Start at the left end of the array, and progress toward the right, keeping track of the maximum subarray seen so far. Knowing a maximum subarray of A[1..j], extend the answer to find a maximum subarray ending at index j + 1 by using the following observation: a maximum subarray of A[1..j + 1] is either a maximum subarray of A[1..j] or...

  • A. File I/O using C library functions File I/O in C is achieved using a file...

    A. File I/O using C library functions File I/O in C is achieved using a file pointer to access or modify files. Processing files in C is a four-step process: o Declare a file pointer. o Open the desired file using the pointer. o Read from or write to the file and finally, o Close the file. FILE is a structure defined in <stdio.h>. Files can be opened using the fopen() function. This function takes two arguments, the filename and...

  • //I NEED THE PROGRAM IN C LANGUAGE!// QUESTION: I need you to write a program which...

    //I NEED THE PROGRAM IN C LANGUAGE!// QUESTION: I need you to write a program which manipulates text from an input file using the string library. Your program will accept command line arguments for the input and output file names as well as a list of blacklisted words. There are two major features in this programming: 1. Given an input file with text and a list of words, find and replace every use of these blacklisted words with the string...

  • Programming Assignment #2 EE 2372 MAKE SURE TO FOLLOW INSTRUCTIONS CAREFULLY, IF YOU HAVE ANY DOUBTS...

    Programming Assignment #2 EE 2372 MAKE SURE TO FOLLOW INSTRUCTIONS CAREFULLY, IF YOU HAVE ANY DOUBTS PLEASE EMAIL ME! This programming assignment will just be a small extension to programming assignment 1. In the first assignment each of the functions could only take a predefined number of inputs. This time the objective is to be able to complete these functions with any amount of inputs. The user will pass arguments through the command line (this means you will have to...

  • Edit a C program based on the surface code(which is after the question's instruction.) that will...

    Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....

  • i Data Table Table 2. INVENTORY RECORD DATA F G C Data Category Lot-sizing rule Lead...

    i Data Table Table 2. INVENTORY RECORD DATA F G C Data Category Lot-sizing rule Lead time Safety stock Scheduled receipts Beginning inventory L4L 3 weeks 0 150 (week 2) 125 D FOQ = 800 3 weeks 0 300 (week 2) 0 Item E FOQ = 600 4 weeks 0 600 (week 1) 255 L4L 2 weeks 70 None 670 L4L 1 week 0 1,200 (week 1) 0 Print Done Done nd then click Check Answer. Clear All The BOM...

  • This is for a Unix class. Please help me out. I am attaching a skeletal code of the program below, it just needs ti be filled in. Below is a skeletal code of the program. Fork a child process...

    This is for a Unix class. Please help me out. I am attaching a skeletal code of the program below, it just needs ti be filled in. Below is a skeletal code of the program. Fork a child process and then use the parent for reading and the child for writing.  This is just a way of sending and receiving messages asynchronously. /* ************************************************************* * Utility functions * ************************************************************** */ static void usageError(const char * progName, const char *msg) {...

  • For a C program hangman game: Create the function int play_game [play_game ( Game *g )]...

    For a C program hangman game: Create the function int play_game [play_game ( Game *g )] for a C program hangman game. (The existing code for other functions and the program is below, along with what the function needs to do) (Also the link to program files (hangman.h and library file) is below the existing code section. You can use that to check if the code works) What int play_game needs to do mostly involves calling other functions you've already...

  • For the following task, I have written code in C and need help in determining the...

    For the following task, I have written code in C and need help in determining the cause(s) of a segmentation fault which occurs when run. **It prints the message on line 47 "printf("Reading the input file and writing data to output file simultaneously..."); then results in a segmentation fault (core dumped) I am using mobaXterm v11.0 (GNU nano 2.0.9) CSV (comma-separated values) is a popular file format to store tabular kind of data. Each record is in a separate line...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT