49,761 Topics
| |
I need Help! Consider this following modified version of the binary search algorithm. (Modifications are indicated by a comment highlighted asterisks.) With this new version of the binary search algorithmn work correctly for all data? If not, specify a situiation in which this version will fail. [code]template<class element, class Keytype> … | |
Hey everyone, I'm new to posting in these forums so sorry if I didn't post my code correctly? I think i did it...hopefully. Anyways, I've been working on this all day but I can't figure it out. (i think i will be having problems with the rest of my assignments … | |
hi, the following program has got to take a user inputted string and allows the user to see the postion of each character in the array i.e. T H I S I S A T E S T 0 1 2 3 4 5 6 7 8 9 10 11 … | |
Hey all, I am having a little bit of trouble wrapping this segment up. I need a for loop that will wrap a 3 digit number (i.e. 320) vertically so that it displays like below. 3 2 0 instead of... 320 Here is the code I have already: [CODE]#include<iostream> #include<fstream> … | |
hi all, I get a compile time error when I tried to assign A* to A[]. I get the error in DEV C++ , mingw ,error "incompatible type assignment" should I have to use dirty pointers for this ? [code=cplusplus] #include <iostream> class A { public: int a ; int … | |
In the following example I am trying to open a file that I have named in the command line for Read. Does anyone have any suggestions? ========================================== [code] #include "stdafx.h" #include <fstream> #include <iostream> using namespace System; using namespace System::IO; using namespace System::Text; using namespace std; #define RSIZE 1 // … | |
So I'm working on my final project, and I decided to create a BMI calculator. As part of the requirements, I need to call a function into play. Below is what I have so far, but I am getting errors. I don't expect the solution, but could someone assist me … | |
can you help me do a program using array in c++. 1. accepts 10 input numbers and output its sum and average. 2.accepts 10 input numbers and arrange it from highest to lowest. 3. accepts 10 input numbers will output the highest number and lowest number. thank you. | |
Can any one help me about DES encryption technique..... i have to submit its c++ code | |
Consider the following C++ program fragment: [CODE=c++]int a[1000]; int b = 0; for (int i = 0; i != 1000; i++) { b = b + a[i]; }[/CODE] (a) Write a MIPS assembly program which corresponds to this program fragment. (b) Unroll the loop in the program 4 times in … | |
I've pretty much got it down how to determine operating system version, service pack level, 95/NT based, etc. for Windows XP and earlier versions by using GetVersionEx(...) and that's pretty handy for getting system information that software users probably don't know and don't know how to figure out (sadly). A … | |
hellow people i am a beginner i really need help. i am a college student one of my project was all about compiler.i made a c++ tutorial but the problem i have no idea on how to put a compiler on it. do you have any idea on how to … | |
Hi, I'm trying to write a console program that will sort and find the median of numbers that are given in a text file. The text file can have ints or doubles. The problem I'm having is outputting the median and the insertionSort functions. I think that they are failing … | |
How do i put a function inside another function? Im getting confused with the function definition. Plz help?? | |
If I Open a file using something like: FileStream^ fs = File::OpenRead( path ); How can I determine the size of the file so that I can read all of the data bytes in the file? What sort of Read would you use to read one byte at a time. … | |
Ok so heres what I am trying to do to help you understand my question. I am making my WINAPI load hidden so it's not in the taskbar and is only running as a process using ShowWindow(hwnd, SW_HIDE) on case WM_CREATE: Now what I am trying to do is make … | |
hello all im having as the title would suggest a runtime crash in my program cant quite figure out why hits some ware around enter tenant name. line 53 [CODE]void ComplexInterface::editUnit(){ bool test = false; do { int unitToEdit; cout << "choose a Unit to edit " << endl; for … | |
| This is starting to drive me nuts. I'm writing a program that simulates a two-pass algorithm which translates assembly language code in C++. I started with the first pass which reads the labels and address for each line. My whole program is in a mess and need a lot of … |
Hi All, Thank you for reading this and helping me! I am finishing off my program with a method that can compute Average Scores from a list of data. It's giving me an error that says "invalid use of member (did you forget the â&â ?)". Below is the code … | |
im trying to generate a random number using #include <cstdlib> and then srand(time(0)); but it keeps telln me i need a constructor, destructor or type before the (. what do i do?? | |
Hello all I have just started to learn programming, and I am having a little trouble getting around array and vectors; I need to create a structure to store a certain amount of data based on the user's input. I was told by my teacher that I have to declare … | |
Hello, I am writing a program in C++ to open a web page in a browser using command line. Suppose, I enter open [url]www.google.com[/url] It should open Google's home page in a browser. I want to make this program multithreaded so a user can open as many web pages as … | |
What is a seed in c++? "Call a function to populate the array to perform the following: Ask the user for a [I]seed[/I]" | |
hi everyone. i need to find all possible paths for directed graph with dynamic programming. let me clarify. i have a path from 1 to n and this is a straight line. every line has a value. i need a way where the cost is smallest. i take inputs as … | |
Can anyone tell what is wrong in the below program.I want to ping an ip address which is entered by the user. [CODE]#include <iostream> using namespace std; int main() { char ip1[30]; cout<<"Enter the Ip Address"; cin>>ip1; system("ping ip1"); return 0; }[/CODE] | |
basically i have 4 files 2 contain the following data . Trying to find out data which is common and not common in both files and write it out to files common and not common. It almost works except for it doesn't compare the last item in the list before … | |
Hello I'm trying to copy a variable from a vector into an array (with a few steps in between) As you can see from the code, I take a random piece of equipment from the vector of equipments and insert it into the inventory (which is an array). The line … | |
Okay, I'm making a game, and I need to use random inside a class, however I can't figure out how to seed the randomness into the class, so atm I'm getting the same random each time. I've tried stuff like srand(time) in main, however, that doesn't apply to the class, … | |
I have to write a program that converts Fahrenheit from 0 to 212 to floating-point Celsius with 3 digit of precision. The output should be printed in two right-justified columns of 10 characters each and the Celsius should be preceded by sign for both positive and negative values. please help … | |
is there anyone who is kind enough to share a program code "Inventory System with database "f.stream"".. just a simple program! with add, delete and search! |
The End.