write a function named replacesubstring. the function should accept three c-strings or string objects

Answers

Answer 1

The replacesubstring function can be used to substitute a portion of a string with a different substring. This function should accept three c-strings or string objects, one that contains the original string, another that contains the substring to be replaced, and a third that contains the replacement string.

The function takes three arguments: a char pointer to the original string, a const char pointer to the substring to be replaced, and a const char pointer to the replacement string.

The function uses the strstr function to search for occurrences of the oldSubstr in the original string. If a match is found, the memmove function is used to shift the remaining characters in the original string to make room for the newSubstr, and the memcpy function is used to copy the newSubstr into the original string. The function then continues to search for further occurrences of the oldSubstr until no more are found. This function can be called like this:```char str[] = "hello world";replacesubstring(str, "world", "everyone");cout << str << endl; // Output: "hello everyone"```

To know more about function visit:

https://brainly.com/question/30721594

#SPJ11


Related Questions

Modern Computers compared to earlier computers are
a)faster than larger
b)less reliable
c) larger and stronger
d)faster and smaller ​

Answers

I think your answer would be d)faster and smaller.

Hoá học 9 giải hộ mềnh vơiz:))

Ho hc 9 gii h mnh viz:))
Ho hc 9 gii h mnh viz:))
Ho hc 9 gii h mnh viz:))

Answers

Answer:

sorry di ko alam

Write a program that will input a list of test scores in from the keyboard. When the user enters -1, print the average.
What do you need to be careful about when using -1 to stop a loop?



Enter the Scores:
45
100
-1

The average is: 72.5

Answers

print("Enter the Scores:")

total = []

while True:

   num = int(input())

   if num == -1:

       break

   total.append(num)

print("The average is:",(sum(total)/len(total)))

I wrote my code in python 3.8. Also, you have to be careful about adding -1 to the total. You don't want to count -1 in the average.

The Excel application is used to create

A) networks

B) spreadsheets

C) Web pages

D) flyers

Answers

Answer:

a

Explanation:

aaaaaaaaaaaaaaa

Please show work with excel formulas
Esfandairi Enterprises is considering a new three-year expansion project that requires an initial fixed asset investment of \( \$ 2.18 \) million. The fixed asset will be depreciated straightline to z

Answers

The annual straight-line depreciation expense for the fixed asset is $726,667.

To calculate the annual straight-line depreciation expense, we need to divide the initial fixed asset investment by the useful life of the asset. In this case, the initial fixed asset investment is $2.18 million and the project's duration is three years.

Using the straight-line depreciation method, the annual depreciation expense is determined by dividing the initial investment by the useful life:

Depreciation Expense = Initial Investment / Useful Life

Depreciation Expense = $2,180,000 / 3

Depreciation Expense = $726,667

This means that Esfandairi Enterprises can expect an annual depreciation expense of $726,667 for the three-year duration of the project.

Learn more about fixed asset

brainly.com/question/14392032

#SPJ11

Which is considered computer storage?

Answers

Answer:

On a modern computer, storage comes in two forms: temporary and long-term: ... Storage media includes disk drives, flash drives, media cards, and CDs and DVDs. Long-term storage allows information to be saved and recalled for later use — like putting clothes in a closet or all your junk in a storage unit.

Explanation:

Please mark as brainliest

what does FEA for digital technology mean?


thanks for your time!!

Answers

Answer:

Finite Element Analysis

Explanation:

hope that helped ,brainliest if u dont mind

fea= finite element analysis

ABC School District would like to create a student on-line information and registration system to capture student-related information. The system needs to be designed as an on-line process to allow all new students to register on-line. It should also allow existing students to update and review all information. Create a list of 5 important data tables that would need to be captured and stored in the student registration database

Answers

The 5 important data tables that would need to be captured and stored the student registration is Student_details, Student_login, Student_guardian, Course, and Fees.

The data tables of Student_details will store the detail information for each students with the list of column is Registration_ID as primary key, First_Name, Last_Name (if necessary you can include Middle_Name), Gender, Address, Email, Phone_Number, Date_Registration, Course_ID, Status, Year_Passout.

The data tables of Student_login will store the login information for each students with the list of column is Registration_ID as primary key, Email, Password.

The data tables of Student_guardian will store the guardian information for each students with the list of column is Guardian_ID as primary key, First_Name, Last_Name (you can include Middle_Name if necessary), Student_Reg_ID, Address, Contact_Number, Email, Relationship, Other_Details.

The data tables of Course will store the courses that chosen by each students with the list of column is Course_ID as primary key, Name, Description, Mains, Total_Semester

The data tables of Fees will store the fees paid by each student with the list of column is Fees_ID as primary key, Amount, Student_Reg_Id, Course_ID, Semester_No, From_Month, To_Month, Payment_Date, Next_Due.

Learn more about data tables here:

brainly.com/question/28065723

#SPJ4

Which is the best description of the laws governing IT professionals?

Answers

Answer: D, Most laws are directed at the information, data, or intellectual property rather than the IT professional.

Explanation:i just took the test

at the moment of creation of a new object, php looks at the definition to define the structure and capabilities of the newly created object

Answers

Python looks at the class definition when creating a new object to define the structure and capabilities of the newly created object.

What is a class?A class is a user-defined type that describes the appearance of a specific type of object. A declaration and a definition make up a class description. Typically, these pieces are separated into separate files. A single instance of a class is referred to as an object.A Class is a type of construct that can be used to create instances of itself. Members of a class can be fields and methods that allow a class object to maintain state and behaviour, respectively. To have objects in object-oriented programming, you must first instantiate a class.Objects are the first things that come to mind when designing a program, as well as the units of code that are eventually derived from the process.

To learn more about class refer to :

https://brainly.com/question/4560494

#SPJ4

Python does not allow if statements to occur within the definition of a function.
True
False
Every HTML document needs to begin with which of the following tags?

Answers

Answer:

1. Python does allow if statements to occur within the definition of a function.

2. Begins with <html> Ends with </html>

The place in a digital device where the data and programs that device is currently using are accessible by the processor is called the ___

Answers

Answer:

Ram or random access memory

Explanation:

how many tiny heating elements are in the thermo printer of a fax machine?

Answers

This varies depending on the make and model of the machine. Generally, fax machines with thermo printers have anywhere from two to four tiny heating elements.

What is the elements ?

Elements are the fundamental building blocks of matter. All matter is composed of elements, which are substances that cannot be broken down into simpler substances by ordinary chemical means. Elements are made up of atoms, which are the smallest particles that retain the characteristics of the element. There are over 100 elements, each of which is composed of one or more atoms. The elements can be divided into two categories: metals and non-metals. Metals are characterized by their ability to conduct electricity, while non-metals are not. Examples of elements include hydrogen, oxygen, carbon, nitrogen, and iron.

To learn more about elements

https://brainly.com/question/4966688

#SPJ4

An object is identified by its
characteristics
state
class
attribute​

Answers

Answer:

Characteristics is the correct answer to the given question .

Explanation:

The main objective of object is for accessing the member of class .When we have to access the member of class we can create the object of that class The object  is is identified by there characteristics.The characteristics describe the behavior and state of a class.

With the help of class and object we can implement the real world concept .The object is the run time entity of a class where as the class is physical entity .Without the object we can not implemented the object oriented programming.All the other option are not correct for the object because they are not described the identification of object .

Create the logic using pseudocode for a program that updates an existing catalog of products for a company. The existing catalog is available in a computer file (with the file name being "ProductCatalog.dat"). Within the catalog, each record represents a product, consisting of three fields: productID, productName, and productPrice. The program to be designed will create a new catalog file (with the name being "ProductCatalogUpdated.dat"), in which the price (that is, the productPrice field) for each product will be updated according to the following rules: 1) For products with productID ranging from 100 to 199, the new prices will be 1.05 times of the existing values; 2) For all other products, the new prices will be 1.02 times of the existing values.

Answers

Here's an example pseudocode logic for a program that updates an existing catalog of products:

sq l

Copy code

Open the existing catalog file "ProductCatalog.dat"

Create a new catalog file "ProductCatalogUpdated.dat"

While there are records in the existing catalog file:

   Read a record from the existing catalog file

   If the product ID of the current record is between 100 and 199 (inclusive):

       Calculate the new price: product Price * 1.05

   Else:

       Calculate the new price: product Price * 1.02

   Write a new record to the new catalog file with the updated price

End while

Close the existing catalog file

Close the new catalog file

This pseudocode outlines the steps for updating the existing catalog file and creating a new catalog file with updated prices according to the provided rules.

The logic opens the existing catalog file and creates a new catalog file. It then iterates through each record in the existing catalog file, reads the product details, and calculates the new price based on the product ID. The calculated new price is then written to the new catalog file. Finally, the program closes both the existing and new catalog files.

This pseudocode provides a high-level understanding of the program's logic. Actual implementation may vary depending on the programming language and file handling mechanisms available.

Send a message.

Free Research Preview. Chat GPT may produce inaccurate information about people, places, or facts. Chat GPT May 12 Version

learn more about pseudocode logic  here:

https://brainly.com/question/28419243

#SPJ11

b) Explain how a lockbox system operates and why a firm might consider implementing such a system.

Answers

A lockbox system is a system in which a company's incoming payments are directed to a post office box, rather than to the company's offices. This allows the company to process payments more efficiently, since the payments are sent directly to a bank that is authorized to receive and deposit them.

The bank will then deposit the funds into the company's account, rather than sending them to the company's offices for processing. First, it can help reduce processing time for incoming payments. Second, a lockbox system can help reduce the risk of fraud.

Since payments are sent directly to the bank, there is less chance that they will be lost, stolen, or misused. Third, a lockbox system can help improve cash flow. By reducing the time, it takes to process payments, the company can receive its funds more quickly and put them to use sooner. This can help improve the company's overall financial position.

To know more about lockbox system visit:

brainly.com/question/33099400

#SPJ11

Match the roles to the task they perform.

gather requirements
create software framework
identify errors in the software
develop program code for software

Role

software architects
business analysts
programmers
testers

Answers

Software Architects: “develop program code for software”

Business Analysts: “gather requirements”

Programmers: “create software framework”

Testers: “identify errors in the software”

Next, Leah wants to add a content slide that allows her to insert a table.
Which tab should she click to complete this action? Home
What should Leah click to open a dialog box to select the slide she needs? New Slide down arrow
What should Leah do to access the notes pane of the slide she added? V Click Notes expander.
Multi media design

Answers

Answer:

1. Home

2. New slide down arrow

3. Click Note expander

Explanation:

Home tab should she click to complete this action.

The New Slide down arrow should Leah click to open a dialog box to select the slide she needs.

Click Notes expander should Leah do to access the notes pane of the slide she added.

What is a content slide?

A collection of polished presentation templates is called the Presentations Content Slides. The site provides stunning infographics and PowerPoint illustrations that are laid out in a bullet point structure. Regardless on how many evaluation tools are provided, the main layout is one to three.

Select the button next to "New Slide" on the Home tab. Choose the layout visitors want and a new slide from the layouts collection.choose "New Slide" Make your layout selection in the New Slide dialogue box for any new slide. Study slide layouts in more detail.You can add extra information to presentations that doesn't show up on slides in the Notes pane.

Learn more about content slide, here:

https://brainly.com/question/4214795

#SPJ6

A____is the smallest unit of measurement used to describe computer processing and storage. Enter the answer in the box

Answers

Answer:

the smallest unit of measurement used for measuring data is a bit

A bit




Ckfhdhxtb tu j tu hg DF Uc

The collaborative team responsible for creating a film is in the process of creating advertisements for it and of figuring out how to generate excitement about the film. Which of the five phases of filmmaking are they most likely in?
1 distribution
2 pre-production
3 production
4 post-production​

Answers

Answer:

1. distribution

Explanation:

Filmmaking can be defined as the art or process of directing and producing a movie for viewing in cinemas or television. The process of making a movie comprises of five (5) distinct phases and these are;

1. Development.

2. Pre-production.

3. Production.

4. Post-production.

5. Distribution.  

In this scenario, the collaborative team responsible for creating a film is in the process of creating advertisements for it and of figuring out how to generate excitement about the film.

Hence, they are likely in the distribution phase of the five phases of filmmaking.

Distribution refers to the last phase of filmmaking and it is the stage where the collaborative team considers a return on investment by creating advertisements in order to have a wider outreach or audience.

Answer:

a: distribution

Explanation:

edg2021

Distribution si where the movie gets distributed and promoted

Why is the Game Design Document called a ""living"" document AND why is this important?

Answers

Answer:

documentation

Explanation:

Because it gives the instructions rules and every detail about the game with anything in the real world with computers documentation is extremly important  

Why one Tel communication failed in its change management prospective

Answers

One Tel communication failed in its change management perspective due to various reasons.

What were the factors contributing to the failure of One Tel communication in its change management perspective?

Several factors could have contributed to the failure of One Tel communication in its change management perspective. It is crucial to identify and analyze these factors to understand the specific reasons behind the failure.

Possible reasons could include inadequate planning and preparation for the change, insufficient communication and stakeholder engagement, resistance to change from employees or other stakeholders, lack of clear goals and objectives, poor leadership and management support, insufficient resources allocated for the change, or ineffective implementation strategies.

Each of these factors can significantly impact the success of change management initiatives. It is important to conduct a thorough analysis of the specific circumstances and challenges faced by One Tel communication to determine the exact reasons for the failure in their change management efforts.

Learn more about: communication

brainly.com/question/29811467

#SPJ11

Omar wants to research additional information about asteroids. Complete the sentences to describe how he should use the Smart Lookup feature in PowerPoint. Step 1: He should ____________ the word asteroid. Step 2: He should navigate to the _________ tab. Step 3. He should go to the __________ command group. Step 4: He should turn on the Intelligent Services of PowerPoint in the pane. Step 5: He should click the ________ option to open links that contain information about asteroids. Please answer quickly! It is quite urgent

Answers

Answer:

Step 1: He should  

✔ select

the word asteroid.

Step 2: He should navigate to the  

✔ Review

tab.

Step 3. He should go to the  

✔ Insights

command group.

Step 4: He should turn on the Intelligent Services of PowerPoint in the pane.

Step 5: He should click the  

✔ Explore

option to open links that contain information about asteroids.

Explanation:

Edg2020

Omar should use the Smart Lookup feature in PowerPoint in several steps 1. Select, 2. Review, 3. Insights, 4. Explore.

What is the Smart Lookup feature in PowerPoint?

The new Smart Lookup feature in PowerPoint 2016 for Windows is an option that shows up definitions, images, and other results from various online platforms about a word or phrase, right within PowerPoint.

There are four steps to use the Smart Lookup feature in PowerPoint:

Step 1: He should select the word asteroid.

Step 2: He should navigate to the Review tab.

Step 3. He should go to the Insights command group.

Step 4: He should turn on the Intelligent Services of PowerPoint in the pane.

Step 5: He should click the Explore option to open links that contain information about asteroids.

Therefore, he should use  1. Select, 2. Review, 3. Insights, 4. Explore.

Learn more about PowerPoint, here:

https://brainly.com/question/19238885

#SPJ2

please help thank u!!!!!

please help thank u!!!!!

Answers

Answer:

i believe you can change slides with the arrow keys not entirely sure though

Explanation:

Answer:

using the arrows

pressing space

and clicking the mouse

Explanation:

7. On a control drawing, what's indicated by the bar under the rung location for a set of relay contacts?

Answers

Answer:

On a control drawing , the bar under the rung location for a set of relay contacts indicates (d) normally closed relay contact on that rung.

Explanation:

On a control drawing , the bar under the rung location for a set of relay contacts indicates normally closed relay contact on that rung.

As , when it resets that , the relay is in open. Normally relays works on low current rating upto 10A°

   

Jill is interested in a career as a paramedic. She is trained to use medical equipment, she remains calm under pressure, and she has good bedside manner. Which career pathway would best fit Jill’s interests and skills?

Answers

This question is incomplete because it lacks the appropriate options

Complete Question:

Jill is interested in a career as a paramedic. She is trained to use medical equipment, she remains calm under pressure, and she has good bedside manner. Which career pathway would best fit Jill’s interests and skills?

A. Security and Protective Services

B. Law Enforcement Services

C. Emergency and Fire Management Services

D. Correction Services

Answer:

c) Emergency and Fire Management Services

Explanation:

Emergency and Fire Management Services is a career path or occupation where personnels work to ensure that there is a prompt emergency response to incidents or accidents whereby the safety of human lives and properties are threatened.

Emergency and Fire Management services deal with the following incidents listed below:

a) Fire incidents

b) Car accidents

c) Medical emergencies

Staffs or Personnels that work in Emergency and Fire Management services:

a) Fire Fighters

b) Paramedics

Personnels who work with Emergency and Fire Management services should have the following traits or characteristics.

a) They must be calm regardless of any situations they are in

b) They must have the ability and training to use essential medical equipments.

c) They must have excellent people skills as well as good bedside manners.

d) They must possess the ability to work under intense pressure

e) They must possess the ability to calm victims of fire or car accidents

In the question above, the career pathway that is best for Jill based on the skills and interests that she possesses is a career pathway in Emergency and Fire Management Services.

Answer:

the person above me is right

Explanation:

bitcoin is designed such that the attacker cannot reverse or tamper with the transactions. explain how, referencing its technical design features as needed.

Answers

Answer: -=-

;;;;;;;;;;;;;-----;;;;;;;;;;;;;;;;;;;

What should be included in a publication or website after obtaining the right to use a graphic, text, or other item found on the Internet

Answers

Based on computer and media applications, the thing that should be included in a publication or website after obtaining the right to use a graphic, text, or other item found on the Internet is known as Reference

What is a Reference?

Reference is the act or action of mentioning it alluding to something. Usually, reference to literary or artistic work is considered a source to the origin of the work.

References do not cover unauthorized access. However, when a right to use work like publication, text, graphics, etc., is given, it is expected that the individual should provide references to the sources.

Hence, in this case, it is concluded that the correct answer is "Reference."

Learn more about Reference here: https://brainly.com/question/6260792

Jack is using a document that has multiple references to his company as Company ABC, LLC. He would like to change these values to CompanyABC, LLC. What is the easiest way to do this?

Answers

Answer:

C. Press CTRL to access the Find and Replace dialog box.

Explanation:

yuh yuhuhu edge 2020 gang gang

Which html attribute specifies an alternate text for an image, if the image cannot be displayed?.

Answers

The html attribute "<img> alt attribute" is used to specify the alternate text for an image if the image can not displayed.

What are alternate text?

An alternate text acronyms is (Alt text) which is a text description that can be added to an image's HTML tag on a Web page.

In conclusion, the html attribute "<img> alt attribute" is used to specify the alternate text for an image if the image can not displayed

Read more about alternate text

brainly.com/question/12809344

Other Questions
The difference between the maximum price a consumer is willing to pay and the price the consumer actually has to pay for a product is referred to as -0.6a^2b*(-10ab^2) help please What was the biggest problem with the earliest version of the internet in the late 1960s? pls help i will give brainliest to the quickest correct answergraph the line with slope of 7 and y-intercept of -6 URGENT WILL GIVE BRAINLIEST TO BEST ANSWER Which is not one of the properties of air?masspressurevolumedensity can someone help me with these three questions please?? Stuffed animals each weighing 1/4 pounds. The scale shows 1 1/2 pounds.How many stuffed animals are on the scale? the atmosphere traps_____ radiation aka heat, which helps keep planet warm a: infrared b:ultravioletc:gamma I NEED HELP PLSS How do i solve this? What is the answer can you explain it to me Decide if the noun-adjective agreement is CORRECT or INCORRECT in the following sentence.La muchacha es bonito.CorrectIncorrect People and groups that provide an organization with its productive resources, and thus have a claim on and a stake in the organization, are known as young and rubicam, a global advertising agency, developed the brandasset valuator, which suggests that brand equity is based on what four dimensions? meridians of identify degrees east and west of the . these lines are / are not (circle) scientifically based. why/why not? What is the main force that must be overcome in order to push an object along a horizontal surface. no silly answers Name the property shown. 12(6) = 6(12) * what is a noteworthy trend for people interested in pursuing a job in the field of human & social services with respect to the global population A.) its growing older on average B.) its decreasing in number C.) its becoming more religious D.) its becoming more violent 2(2x - 8) = x - 46 ? Hello please help me understand this. this is a review for a test tomorrow. what is the name for the zig zag pattern of sand movement along a beach