49,761 Topics
| |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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, … | |
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 = … | |
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] … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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, … | |
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 … | |
please help i think d error is in inputtin d values into d linked list! D files are attached | |
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] … | |
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 … | |
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 … | |
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>? | |
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 … | |
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] << ' '; … | |
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 … | |
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 … |
The End.