49,761 Topics

Member Avatar for
Member Avatar for sgw

A question/curiosity: When using the time function, why must the argument be 0, as "time(0)"? I tried other numbers and it gave error.

Member Avatar for ArkM
0
23K
Member Avatar for guest7

Hi, I am comparing two file to find if they have common strings. My program is not doing that and I cannot figure out the reason. Any help is appreciated. Following is my code: [CODE]int main() { FILE *inf1 = fopen("file1.txt","r"); FILE *inf2 = fopen("file2.txt","r"); int numcols = 11; char …

Member Avatar for MrSpigot
0
92
Member Avatar for zaohin

i've got this last year question from my senior. i've tried to solve it on my own but i think it's not suit with level now. so, anyone please could help me to write the codes as my final exam is coming soon. kindly post the solution through this site …

Member Avatar for ithelp
0
102
Member Avatar for ganmo

hello, I've been pondering on a thing here for while now. The thing is that I want to read in several of integers, which I've fixed. And the problem now is that I want to output the integers I have input. The thing is that I only want to output …

Member Avatar for ganmo
0
124
Member Avatar for rouba

hi i really need help i am really lost in this program if any one can help me with it plz contact me on my email [I] <<mail id snipped>>[/I] (using c++ program) 1. Write a computer program that implements the recursive merge sort. The input to the program must …

Member Avatar for ithelp
0
173
Member Avatar for massivefermion

Hi I just finished reading C++ the complete reference by herb schildt (almost a quarter ago)so i feel i can program in c++ but i don't know what to write.could you give me some problems that their answers involve a lot of c++ features? thanks a lot

Member Avatar for ithelp
0
141
Member Avatar for myboo11009

I am trying to write a math tutoring program for students. A very basic outlay of ceretain components. This program should have the user select addition, subtraction, multiplication or division. user should also have the capeability to exit the program and quit it. I tried writing some code for this, …

Member Avatar for ithelp
0
1K
Member Avatar for boydale1

I have to write a class for a new "home-made" string class, and I do not know how to attack the operator>> . I will provide my class constructor and what i tried... [code] String::String( const char A[] ) { char X = A[0]; int pos = 0; Length = …

Member Avatar for Ancient Dragon
0
80
Member Avatar for Dragonsfire

I'm trying to write a simple deque program that lets you add/delete numbers and display them at will. The code is as follows. User.cpp: [code] #include <iostream> #include "Doth.h" using namespace std; int main() { char choice='m'; int n; Deque call; while(choice!='q'||choice!='Q') { cout<<"Menu:"<<endl; cout<<"[A] Add to the front"<<endl; cout<<"[B] …

Member Avatar for Dragonsfire
0
122
Member Avatar for shea279

does anyone have a function laying around to secure delete a file from the hard disc with X passes of random data? ive been trying to find this code forever on google, and everything I have found has just been skimpy .NET programs

Member Avatar for ArkM
0
687
Member Avatar for jimjohnson123

I am working on a program and need to make a friend, deconstructor, and copy constructor..... I was given this formula for the destructor and completely confused... cout << value1 << value2 I also do not seem to see a whole lot of information on copy constructors and friends so …

Member Avatar for ArkM
0
144
Member Avatar for haven_u

0x241f8e0 0x241f8e4 0X241f8e8 0x241f8ec 0x241f8f0 0x241f8f4 0x241f8f8 0x241f8fc 0x241f900 0x241f904 After printing adress of a 2D Array of size 2x5... this is the out-put printed...can someone help mi with explaining the trend.....Is it something like printing consecutive memory blocks??? please help mi out of my confusion..... thanks in advance for …

Member Avatar for GDICommander
0
96
Member Avatar for power_computer

Let say I have a line for numbers 2 4 5 8 7 9 1 3 and i want to sort them in numerical order how would i do this? I found a similar topic but it was of no help someone said to do bubble sort and then everyone …

Member Avatar for GDICommander
0
94
Member Avatar for laconstantine

O.k guys the reason for the new thread because no one understood the previous thread even I didn't understand what I wrote lol! Now listen to my problem. I wrote an exe file that loads a dll and than uses a function from inside of the dll! BUT!! my exe …

0
76
Member Avatar for WaelTheNoble

Dear All, I want to open another exe file in my C++ program. Let the exe file be A.exe. So I used shell execute inside my C++ program to open the file but as A.exe writes in a file certain data that I will use in the next step of …

Member Avatar for WaelTheNoble
0
3K
Member Avatar for laconstantine

OK so I got my executable file that should load all the functions from "message.dll" so I can use them. But every time I run my executable file I am getting an error that say my executable is encountered problems and its should be closed than its being closed. Here …

Member Avatar for laconstantine
0
116
Member Avatar for lancevo3

Alright, I've started learning array recenetly and have to write a program using them. I am having problems getting started on it, the notes we received seem very unclear. Here is the link to the instructions I have to use. [url]http://www.cs.niu.edu/~abyrnes/csci240/pgms/240pgm7.htm[/url] Basically I just want some pointers to get me …

Member Avatar for SeeTheLite
0
269
Member Avatar for bluebird

I am writing a program to record score of a cricket match. One array stores information of batting teams and the other array stores information of bowling team. The program has to read the information of the teams and depending upon the user’s choice, it must displays either the batting …

Member Avatar for tux4life
0
107
Member Avatar for jspeakers

Hi there, Can any one help me, I am trying to import a wave audio file apparently I have to remove the header file or something like this can any one advised me please.

Member Avatar for jspeakers
0
79
Member Avatar for DemonGal711

Alright, I need to create an N-ary tree that contains a list of words all of the same length so that we can create a word ladder from it. Given a word (like cat), we are suppose to put that as the root and from a dictionary we are given, …

Member Avatar for DevC++4.9.9.2
0
764
Member Avatar for manjuannthomas

Hi everybody, i am doing my project on Implementation and Development of a Beat Classification Algorithm for Different Arrhythmias in Automated ECG Analysis..As i was searching for the MATLAB code for beat detetcion and classification which i could'nt found it from the net..Inorder to start up with my project i …

Member Avatar for ArkM
0
142
Member Avatar for TriniBabe

please help i think d error is in inputtin d values into d linked list! D files are attached

Member Avatar for Nick Evan
0
73
Member Avatar for computercobra

I am trying to make a simulation of the enigma machine and was wondering if this is the right way to start the problem? Here's the main.cpp file: [CODE] #include <iostream> #include <ctime> #include <cmath> #include "enigma.h" using namespace std; int main () { enigma machine_1; return 0; } [/CODE] …

Member Avatar for computercobra
0
2K
Member Avatar for cproud21

I understand how to search and sort an array of int type. However I am confused how to sort/ search an array of object's in which I sort/search by a string in the object. (alphabetically) Here is the code I have so far, I want to search and sort the …

Member Avatar for vmanes
0
2K
Member Avatar for seaders

Ok, I've a DLL that's hooked to pick up all Mouse and Keyboard events in it. What I then want to do is through all those to another window. I understand how to do simulate these events, with PostMessage and SendMessage, to the HWND, but what I'd like to do …

Member Avatar for nucleon
0
693
Member Avatar for TriniBabe

U are given the data(startnode,end node,cost) for each edge on a separate line but u dont no how much nodes u hav b4 hand how u declare it? how do u link the nodes in an adjacency list using linked list and not d <vector>?

Member Avatar for DemonGal711
0
106
Member Avatar for cproud21

I have the following program that declares 100 Book objects... The way that I have it now, each item in the array is set to a default value. Is there a way to add only the items that are input by the user to the array? and not start off …

Member Avatar for Danny_501
0
120
Member Avatar for Danny_501

Can someone tell me why my print array method won't print strings. It works with an int array, but only prints a few strings. [CODE]template < typename T > void printArray(T * const array, int size) { for (int i=0; i < size; ++i) cout << array[i] << ' '; …

Member Avatar for Danny_501
0
171
Member Avatar for denyildani

Hi all, I want to input joystick to my code,which is very simple smile.gif.I searched the net but find out that people use DirectInput , etc... but i want a very simple application, for example like when you pull right, a variable in the code changes from 0 to 10,whne …

Member Avatar for MyRedz
0
1K
Member Avatar for MyRedz

here's my question > Make a function `void ScreenSaver(Screen& Shape* shps[])` in which you take an array of shape pointers and their masks, and randomly animate all these shapes. You are required to pass only the shapes you made before and animate them, you need not worry about shapes colliding …

0
92

The End.