49,761 Topics
| |
hi i am totally new user in of vc++ i am doing a project on audio processing in vc++ there are basically four steps which i want to perform 1.reading a audio 2.playing a audio 3.converting the audio in 1-d array 4.playing the array back please help me in this … | |
If i have process P1 which contain two thread T1 and T2, then is it good to bind whole process to core C1 or To bind thread T1 to core C1 and T2 thread to C2 core. Which will give more performance ? If we assume C1 thread can consume … | |
how should I correct my code ? i get a "'myclass' : is not a member of 'classinform' " error : [code] #pragma once namespace classinform { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; public ref class Form1 : … | |
| Hello! I have small problem. I have char array which contains e.g. "10010010100010110" and I want to read/write it from/to file in binary mode. How can I convert my char array to a group of bits and how to write/read it to/from file? I need something like this: 1. I … |
Guys, in this program, we have a file by the name of asharray.txt, which is attached to this post, and we have three functions: 1.to read the file 2.to sort the numbers 3.to write to a separate file by the name of( array result.txt) Sp, here I faced some problems, … | |
Does anyone know how to create circular linked list whose links are numbered from 1 to n specified by the user? | |
I'm trying to clean up my coding a bit for a program I'm working on. Here's an example of my code (not my exact code, but I've adapted it to an example): [CODE]class Example { private: double* group; int number; public: Example() {group=new double[1]; number=0;}; Example(const Example& ex); Example& Example::operator=(const … | |
How can i create a program that can continuously run immidiately when comp is logged in . This program should have to run as a process which can continuously check some conditions. Please kindly reply. [i]email snipped[/i] | |
Hi all, I m new to C++ and very desperately looking for some help in my code.Im trying to write a program that uses bisection method to find the root of a function.Im having problems as my results are not accurate enough and my function (f) does not produce answers … | |
I plan on using the Bayesian method to try and solve the mastermind problem. The user will enter 4 numbers which represent the colors on the board from 6 different colors. After which the computer will randomly estimate the posterior probabilities for all events. ?Then continue with this scheme until … | |
[CODE]class BinarySearchTree { public: BinarySearchTree (void); bool addRecursively // calls addRecursive (see private) (BinarySearchTreeNode* newAdd); bool addIteratively (BinarySearchTreeNode* newAdd); void writeRecursively // calls writeRecursive (see private) (ostream& outfile) const; void writeIteratively // if implemented, requires a stack - (ostream& outfile) const; // - see oop06 private: void addRecursively (BinarySearchTreeNode* currentRoot, … | |
Hi, I am trying to convert a char pointer to a normal char(somehow copy the strings from the pointer and pass it to the char) Here is a piece of example on what i want to do [code] #include <iostream> #include <windows.h> using namespace std; int main() { char *namen="Test"; … | |
[CODE]#include <vector> #include <iostream> #include <iomanip> using namespace std; typedef vector<double>row; typedef vector<row>Matrix; Matrix grade; void read_matrix(Matrix&grade,vector<string>&names); void display_matrix(const Matrix&grades,const vector<string>&names); void read_matrix(Matrix&grade,vector<string>&names) { int grades; cout << "Reading data into a Matrix " << endl; cin >>grades; if(grades== 0) { cout << "Making vector empty." << endl; grade.resize(0); } … | |
we are in a section were we are working with classes also with arrays my question is if you have an array of students how can you remove that student for the list by copying the other students for below up a slot. | |
In my program I am creating a class instance then writing it to a binary file. I do this several times so I have several instances of this class in my file. Then I want to access them individually, read them back into an instance in the program, change its … | |
Problem: Course Grade Modification Write a program that uses a structure to store the following information: Name, idNum, tests, avg, and grade I got the most of the program completed so far, however I still need to do the average and grade, if anyone can assist me I would greatly … | |
hey guys i wrote a code for honework problem...the code works fine however everytime user puts more number than the static array it keep those number in the memory and later in the program if i do cout and cin it will ignore that and assign the number to the … | |
[CODE] #include<iostream> #include<fstream> #include<string> using namespace std; void main() { //decleration ifstream source; ofstream target; char * box; int width, height, numlevel; string s; int amount= 100; //-------------------- source.open("1.ppm",ios::binary); while(source.fail()) { cout<<"can not open the file"<<endl; // to make sure the file is opened } source>> s; if ( s … | |
Create a program that prompts the user for their first name, then displays it with asterisks between each letter. Do not include an asterisk in the beginning nor the end. For example, Sharon would be displayed as: S*h*a*r*o*n . Here is what I have so far: [CODE] #include <cmath> #include … | |
So I have one problem and I put in the code for you to see. This is the code that i am having problems with: [code]int main (void){ FancyDateClass myDateObj(24, 2, 2008); cout << "\n\n"; cout << "The date is "; myDateObj.displayDate(); cout << "\n\n"; cout << "The month for … | |
Hello. This is my first posting so I will try to be as detailed and clear as possible. I am running into a problem with a method returning an incorrect value and I can't quite seem to figure out why. I'm building a Rolodex which is really just an object … | |
I keep getting the following error: [code] Error 1 error C2678: binary '+' : no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion) [/code] and I can't figure out how to fix it...I believe it has something to do with the red … | |
Hi all. Just a quick question for anyone who might know. Is there any way of setting up the entering of a character or number without having to press the return key after? For all options i input into my program when i run it i always have to press … | |
i tried to make a program to compare two string and display which character will come first as you can see below but it gives certain error can any one guide me what changes i have to make [CODE]int Mystrcmp (const char* , const char* ); { cout<<Mystrcmp(v1,v2); } int … | |
int note1in() { system("cls"); string a; ifstream note1 ("note1.txt"); while (!note1.eof() ) { getline (note1, a); cout << "The note reads: " << endl << a << endl << endl; } note1.close(); system("pause"); note1out(); } int note1out() { string a; cout << "Begin re-writing the note... " << endl; getline … | |
Like there are authorities like sun which maintains java documentations, python.org which maintains python docs and for others where the developer of the language reference also maintains the documentations of the library and language reference documentations. What is the authoritative entity that maintains the complete c/c++ documentations? I was looking … | |
hi , i have a function parameter that i need it to be a char and also a const char* . can anyone help me? [CODE] void write(...) // ??? { } //.............................. if(somethin) { write('c'); } else write("string"); [/CODE] | |
So I am creating a Lockerz program using Visual C++. I have created a few buttons and the web browser thing. It all works great. Accept, when it gets to a page that play a video, I get this error: [CODE]An error occurred in a script on this page Line: … | |
c++ program that convert integer in to hexadecimal | |
|
The End.