49,761 Topics

Member Avatar for
Member Avatar for vlad44

hi everbody, i;ve made a file of size 128MB and fill it with nulls except for a part whose offset is (655424) i fill it with integer numbers from 1 to 129407 then i try to read an object of structure from it where that structure consists of four integer …

Member Avatar for vlad44
0
147
Member Avatar for scholar

Hello friends, I am looking for a fast algorithm that would calculate that for two directed graphs g1 and g2 ,is g2 is a subgraph of g2 or not. G1 will contain thousands of nodes and g will contain only 100-150 nodes.

Member Avatar for mrnutty
0
72
Member Avatar for rayborn66

Hey guys need as much help as you can give me cause I need to turn this in by midnight. I am trying to do this: You are to write a program that will input English text translate it into Pig Latin, then output the result to a file Pig …

Member Avatar for Aranarth
0
768
Member Avatar for bbman
Member Avatar for Ancient Dragon
0
100
Member Avatar for csha_cs508

//Program that computes for the salary of the employee [CODE]#include <iostream> using namespace std; int main() { int EmployeeCode; float WeeklySalary, HourlyWage, NumHoursWorked, Overtime; cout<<"Enter Employee Code: "; cin>>EmployeeCode; if (EmployeeCode==1) { cout<<"Enter Weekly Salary: $ "; cin>>WeeklySalary; WeeklySalary = WeeklySalary; cout<<"Weekly Salary is: $ "<<WeeklySalary; } else if (EmployeeCode==2) …

Member Avatar for Fbody
0
2K
Member Avatar for wiegmale

[CODE]#ifndef ARRAYLIST_H #define ARRAYLIST_H #include <iostream> using namespace std; template <class ItemType> class ArrayList { public: enum SortOrder {ASCENDING, DESCENDING}; private: typedef ItemType* pItemType; typedef pItemType* ppItemType; ppItemType items; size_t count; // Finds the index of the next item in order. size_t FindNextIndex(const int start, const SortOrder order) const; // …

Member Avatar for mitrmkar
0
155
Member Avatar for p@rse

I have had this problem many times and I have never been able to get my while loops corrected, hence the reason I never used them, so maybe I need a professional solution to the problem. I never really got classes on how they worked, although they had some relevance …

Member Avatar for mahmud.2345
0
91
Member Avatar for s2xcracker

Hey everyone,I am trying to solve a problem but it's pretty difficult for me, and I thought that someone will can help me: So I am given this problem: By starting at the top of the triangle below and moving to adjacent numbers on the row below, Find the maximum …

Member Avatar for s2xcracker
0
70
Member Avatar for atifjatt
Member Avatar for LevyDee

So I guess I'm curious, what are DLL's(Dynamically linked libraries right?), and what are they used for and why? And what exactly is a kernal? Its a program that communicates between software and hardware right, and would a regular programmer ever right a kernal program?? I'm just looking for a …

Member Avatar for Ancient Dragon
0
202
Member Avatar for khiawyen

My project currently takes 16 minutes to compile. Is there anyway that I can reduce the compilation time significantly?

Member Avatar for Ancient Dragon
0
215
Member Avatar for Buffalo101

Hello, everyone. I'm trying to learn MFC so I can create GUI's for a few projects I have in mind. I could really use your help with a few basic problems. I'm attaching a screenshot of my appointment book main window and the other dialog that shows after the ADD …

Member Avatar for LevyDee
0
98
Member Avatar for wiegmale

[CODE]#ifndef SORT_LIB_H #define SORT_LIB_H template <typename T> class Sort { private: static int FindNextMinIndex(T arr[], const int start, const int length); static void Swap(T arr[], const int index1, const int index2); public: static void SelectionSort(T arr[], const int length); }; template <typename T> int Sort<T>::FindNextMinIndex(T arr[], const int start, const …

Member Avatar for StuXYZ
0
87
Member Avatar for maira74

hi i have a question about C++. if anybody could pplease help me out id highly appreciate it. this is what i am trying to do and honestly I have no idea how to do it or how to go about it: Write a C++ program that does the following. …

Member Avatar for p@rse
0
118
Member Avatar for Codname47

node &getNode(int index) { //NOT TESTED if (index <= getLength() || index >= 1){ temp = new node; temp = head; for (int i=index-1; i>0; i--){ temp = temp->next; } return &temp; } } Hi everyone, I receive this error msg: invalid initialization of non-const reference of type 'node&' from …

Member Avatar for mrnutty
0
112
Member Avatar for jrayborn66

How would I write this? I am new to C++ and am trying to write this but don't really have any idea how? I tried to outline it first so I could do it step by step, but now that I have outlined it I am stuck one how to …

Member Avatar for LevyDee
0
207
Member Avatar for GameGuy

Hello everyone, I'm new and I have next to no experience with c++ and I wish to learn. So, these questions may seem ridiculous, and they probably are but, please answer. What is a game engine and how to make one (in a nutshell)? How long, if I have no …

Member Avatar for 0x69
0
209
Member Avatar for Angelaa

Hello, I have a program I am writing to count the number of integers (as well as the individual digits) in a file. I feel I'm close but I'm not quite there so any insight would be helpful. I'll only post the segments of code relevant to where I need …

Member Avatar for Angelaa
0
110
Member Avatar for BLKelsey

Hello all, Got a small problem I'm trying to figure out an obscure error (to me). What I'm trying to do is implement error handling with a loop count within a while statement for two sets of Menus in my Hangman game. Perhaps you all can lend me hand in …

Member Avatar for BLKelsey
0
174
Member Avatar for empror9

hello guys and hope you are fine :) please take a look to this code [CODE]#include <iostream> using namespace std; int sum(int num1,int num2, int sum1){ cout <<"Please enter two numbers:"; cin >> num1 >> num2; sum1 = num1 + num2; cout << sum1; return 0; } int div(int num3,int …

Member Avatar for empror9
0
131
Member Avatar for Orion2k

[CODE] #include <iostream> using std::endl; using std::cout; using std::cin; int main() { long long i=0, j=0,k=0,m=0; cout << "which primary number you want to get .? " << endl; cin >> k; bool isPrime = false; cout << "Prime Number : " << endl; for(i = 2 ; i<= 999999 …

Member Avatar for mrnutty
0
116
Member Avatar for Sandeep929

Write a program in any language and use any 5 file operations in that. Also write the output of the program?

Member Avatar for Lusiphur
-2
75
Member Avatar for johndoe77

Hi, Long time lurker, first time poster! Basically here is my assignment, number 3 [url]http://books.google.com/books?id=20xVrpISzoYC&lpg=PA27&ots=llLlOPBIRL&dq=cout%20%3C%3C%20%22this%20is%20Exercise%2016.%22%3C%3C%20endl%3B%20%20%20%20cout%20%3C%3C%20%22In%20C%2B%2B%2C%20the%20multiplication&pg=PA638#v=onepage&q&f=false[/url] and so far here is what I got, and I really am stuck on this, if you can help would be great: [CODE]#include <iostream> #include <string> #include <iomanip> #include <list> using namespace std; struct menuItemType …

Member Avatar for Fbody
0
120
Member Avatar for hazel0419

Hi. I am new to programming and I really have NO CLUE about it. How can you sort 5 variables (namely A,B,C,D,E) without any values assigned to it?

Member Avatar for Lerner
0
46
Member Avatar for oneml

Hi I am getting a Runtime error when I debug this code. Could someone lend a helping hand? It will be very much appreciated.[code]#include "stdafx.h" #include<iostream> using namespace std; void main(int argc, char* argv[]) { const int SIZE = 9; int numbers[SIZE]; int counter; int temp_swap=0; counter=0; cout << "This …

Member Avatar for mrnutty
0
257
Member Avatar for johnnyturbo3

Hello all, I'm having a problem with my program when I try to compile it. It shows the message in the thread title along with a method it doesn't like: extensionRemover(). I've Googled the problem but they were all related to the header file and use of multiple classes. Where …

Member Avatar for johnnyturbo3
0
688
Member Avatar for sjohnson

I didn't mean to offend u. I've fallen behind in my class and in fear of failin. Nice slap back to reality. Hope I can get tips in the future.

Member Avatar for Fbody
0
88
Member Avatar for sjohnson

I need help completing a home work assignment. Creat the logic for a program that continuously prompts the user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number and to a method that cubes the number. …

Member Avatar for Fbody
-1
95
Member Avatar for sethamus

I am having trouble getting my program to run. I can't figure out where this error is...prob. something easy and i'm just to tired to find it. Anyways here is the project details and the c++ code that I have wrote is attached below since I haven't messed with the …

Member Avatar for wisaacs
0
217
Member Avatar for JoBe

Hello ladies and gents, Had to make the following exercise in Accelerated C++ Write a program to calculate the average of the numbers stored in a vector<double>. THis was my solution: [code] #include <iostream> #include <iomanip> #include <vector> using std::cin; using std::istream; using std::cout; using std::setprecision; using std::endl; using std::vector; …

Member Avatar for NP-complete
0
270

The End.