49,766 Topics
![]() | |
# Introduction # It allows all programs to potentially operate on data managed by this engine. Its structure is similar to Windows Registry with a difference, that it also supports BLOBs and its size is not limited. It could be used instead of filesystem directly. The equivalents of registry keys … | |
Write a function smallestNumber, that takes as parameters an int array and its size and returns the smallest element in the array. Also, write a program to test your function ![]() | |
Hi, I have a rock object. Right now all it does is fall from the sky. I made 10 of them and put it in a `std::vector<rocks*> rock_v`. The rocks have random x position but start at the same height. I generate the rocks like this: for(int i = 0; … | |
//Hi all,can someone help with this problem //I am stack,need to output all functions in main,with user input for queue and stack,but first queue //This is my .h and .cpp of queue #include "stdafx.h" template <class ItemType> struct NodeType; template <class ItemType> class QueType { public: QueType(); // Class constructor. … | |
How to solve this Cpp programming program Create two arrays and pass them into a function by reference. The function should reverse the first array and place it into the second array (as below). Arrays when passed into function Array1: 1, 2, 3, 4, 5 Array2: 0, 0, 0, 0, … | |
Implement the ObjectIterator ADT to the NodeList class and complete print function.Guys HElp !! | |
Hello, I have to implement an overloading insertion and extraction. My fields are char, char and float. I met some problems with data types. How can I use overloading insertion/extraction with strings? Can You state the mistakes in my code? Thanks // laba8pop.cpp : Defines the entry point for the … | |
what is answer for c++ function named FACTORIAL the will determine the factorial of number f=1x2x3.....n | |
This code might be a bit vague, but this question is regarding an assignment I have to turn in and will be checked for plagerism so I will just give the jist of my problem. bool x = false; while (x == false) { } if (conditions) { x = … | |
I am writing code to simulate a queue at a bank, which calculates the average wait time of all customers that enter the queue. I'm getting a STATUS_ACCESS_VIOLATION at line 56 of program3.cpp. I've had this error before and I'm pretty sure it happens because of an attempt to act … | |
Hello guys i need some help, i need a program to read a text file. I write this: [code]#include <iostream.h> #include <fstream.h> #include <cstring.h> void main () { int is_open; string line; ifstream myfile; myfile.open ("a.txt"); if (myfile.is_open()) { while (! myfile.eof() ) { getline (myfile,line); cout << line << … | |
Hello All, I have writtern a c++ code to implement Koch Snowflake pattern using recursion. The code written compiled well but did not run saying linking error for some variables as shown below: ============================ 1>kosh_snowflake.obj : error LNK2019: unresolved external symbol _moveto referenced in function "public: __thiscall RecursiveCurve::RecursiveCurve(void)" (??0RecursiveCurve@@QAE@XZ) 1>kosh_snowflake.obj … | |
Given functions in Figure 3, write a program in C++ to insert nodes in a linked list in ascending order. Values for node will be entered by user. Your answer should include code to find previous node when insertAfter(node *previous,node *newNode)is called.  Please someone tell me how im … | |
I'm working on this code for class, I am not expecting anyone to do my homework but help would be appreciated. Nodes are confusing for me and my professor did not explain well. The errors I am getting are where I declare the functions, I dont know the nodeType(?) that … | |
![]() | I am trying to overload enum types so that I can get input and show output using these enum types... My program bombs out when I run it, please help. Here is an example of what I am trying to do (a rock classification program): #include <iostream> #include "classify.h" using … ![]() |
hello please help me on the assignment i cannot recognise the classes and a little functionality of the classes+ how stimulate the scenerio in each class and how to set predicate function, multiple classes....... with ?????please help me urgent [Click Here](http://www.scribd.com/doc/245021293/Assign-Emt-1) | |
Hey guys, I am currently taking a c++ class and I have an assignment that I am really struggling to understand. I kinda have an idea of what the assignment is asking, but I just dont know how to put it together in a program. I dont know where to … | |
The simulator will simulate one or more line-ups for customer service at a business. In the default setup, it will take between 1 and 6 minutes for a customer service request to be handled (random) once a customer reaches the front of the queue, after which the customer will leave. … | |
I have a code that read some input data from a text file, and I want to add a loop using WriteModel() to print out the same data like the same format in the text file, can you help me how to do that? | |
hi :) I have a pro. here>>I have to write a prog. to get info. from a file and then to take these info. and to put them in a tree >> so what happened here ,,that the compiler reads the info. correctly from the file and take them ..but … | |
Dear all, I need the code for counting sort algorithm but I try this code but is not working #include <iostream> #include <conio.h> #include <time.h> #include <stdlib.h> //srand and rand functions using namespace std; void add_random_numbers(long arr[], long b); void countingSort( long left, long right, long vector[], int k, long … | |
Hi, I have a `std::string getName(){return name}` function and `std::string name` is a private variable. The problem is that when ever I try to `getName() == object` , the statement is always `false` even when the values are the same. if (command.compare(0, 4, "get ") == 0){ std::string object = … ![]() | |
How to make the code with Random numbers and Time Executation? #include <iostream> /* cout */ #include <cstdlib> /* srand, rand */ #include <ctime> /* time() */ #include <list> /* list */ #define BASE 10 // # of buckets to use #define ARRAY_SIZE 50 // max # of elements in … | |
I want to write a code for Radix Sort based in this way how I made the Quick Sort, how can I do with Radix Sort, can anybady have any idea I have search a lot but I can not find any exactly what I need #include <iostream> #include <conio.h> … | |
Hello, I am having some serious difficulty trying to create a class in a header file. I have found that when using the #ifndef I will recieve an error message stating "unknown type name 'class'", however if I use #ifdef it will compile with no problem but has linking problems … | |
Write a function called mostIntersecting which receives as parameters three arrays of type float, and an integer n; where n is the size of each array. The first two arrays are called X, and Y and contain the x and y coordinates respectively of the centers of n circles on … | |
I racently start learning c++ language please guide me. ![]() | |
I want to make this code with random numebr array and time executation? Does anybady nows how can I do? #include <iostream> using namespace std; void print(int a[], int sz) { for (int i = 0; i < sz; i++ ) cout << a[i] << " "; cout << endl; … | |
I am reading books to improve my C++ and I wanted to try to get the leftover input from the input buffer after using the delimiter in getline(), this code works, it skips the cin statement and outputs the leftover buffer contents but my question is will it always do … | |
Hii,, I need to make a program that takes in a user’s number and keep dividing it by 2 until it is 1.I need to display the division steps i'm kinda new to c++ and i do not know how to keep making it divide by 2 until 1 i … |
The End.