49,761 Topics
| |
hey, i came across this program linked linear list about nodes and all and i m literaaly flustered @ understanding it(only the code in LLLIST.CPP----i mention below)....specially with the POINTERS... SO PLZ CAN ANYONE EXPLAIN ME THE WORKING OF THE CODE IN LLLIST.CPP, THAT I HAVE MENTIONED BELOW:icon_cool:.... MAYBE I … | |
Can anyone post me C++ implementation of AVL tress with insert and delete operation in C++ without using templates... I did a lot search in the internet but couldn't find one... please help me as soon as possible... | |
Hi all, Does anyone know how to create sessions with c++ cgi? I am using c++ cgi to connect users from web to IMAP server. How can create sessions so that next cgi knows which user is this, etc. Thanks, nadz | |
For reading from an xml file, [CODE] char s[6]; ifstream x("output.xml"); x.getline(s,34); [/CODE] char s[6]; I don't want to specify the maximum number of characters in 's'.So,I tried to use string s instead,but getline only takes character arrays. When I used char*,it said,The variable 's' is being used without being … | |
When I debug my program, I get this error: Unhandled exception at 0x004d2776 in engine.exe: 0xC0000005: Access violation reading location 0xccccccd0. This is the stack trace: [code]> engine.exe!CEntityController::SpawnEntities() Line 18 + 0x24 bytes C++ engine.exe!CEntityController::Start() Line 50 C++ engine.exe!DarkGDK() Line 21 C++ engine.exe!_WinMain@16() + 0x13 bytes C++ engine.exe!__tmainCRTStartup() Line 263 … | |
I am new to programming. If it's a dumb question please forgive me for wasting a thread. But I wanna know. Why is this code not working? [CODE] int main() { char sndex[6][8]; sndex[0]={"BFPV"}; sndex[1]={"CGJKQSXZ"}; sndex[2]={"DT"}; sndex[3]={"L"}; sndex[4]={"MN"}; sndex[5]={"R"}; [/CODE] The Compiler (MingW + DevCPP) is showing this: [CODE] In … | |
can anyone help me initialize this array with nested for loops? [CODE] char board[3][3]; board[0][0] = '1'; board[0][1] = '2'; board[0][2] = '3'; board[1][0] = '4'; board[1][1] = '5'; board[1][2] = '6'; board[2][0] = '7'; board[2][1] = '8'; board[2][2] = '9'; [/CODE] | |
I am trying to insert elements in a binary search tree.I am getting the following errors: In member function 'void bst::insert(char*)': error: cannot convert 'char*' to 'node*' in assignment error: cannot convert 'node*' to 'const char*' for argument '1' to 'int strcmp(const char*, const char*)' In function 'int main()': error: … | |
I want to take infinite number of strings using string class. Why string operator is not working in the following program? it is showing... error: no match for 'operator!=' in 'str != -0x000000001'| [CODE] #include<iostream> #include<vector> #include<string> using namespace std; int main() { vector<string> s_v; string str; for( ; ;) … | |
hi i am trying to write a simple calculator.i have posted the code below,it works fine for one time solution. but i want the answer to be used for next calculation and also want to put a code to end the program. [CODE] int A,B,C; char op; cout<< "Enter a … | |
[CODE]#include <iostream> #include <ctime> using namespace std; class Fraction { private: int Num; int Denom; public: void Reduce(); //will reduce the fraction to lowest terms void AddFraction(); //will add the two fractions together void print(); //will print the fraction in the form: numerator / denominator }; void Reduce(int &Num, int … | |
I have two ever evolving variables that I want to compare. Call them x and checksum. If the two variables are within 100 of one another for example, everything is fine. But if the margin is greater than 100 I would want it to throw up an error. How would … | |
How is it possible that my program asked to cout a bool variable writes 104 on the display? Even if the variable wasn't initialized, it should display 0 or 1 I thought? Another thing is that it seems to be initialized and to go wild at one moment. | |
hey guys..ok so i did this problem about 80% but i cnt figure out the last part[I] which is sort the characters in order of increasing size. [/I] [B]Question:[/B] Input: 4 words (strings with no spaces) and the order in which they are to be displayed, forward alphabetical, reverse alphabetical … | |
Hello, I am trying to develop a program and I am stuck on a few portions. 1. I need the program to calculate the gradient of a user entered function. 2. I need to multiply matricies which I think I know how to do but the matricies need to have … | |
Hey guys, I have a program zipped and attached to this message. Can someone please run it on command prompt or cygwin or something and let me know if it works? I tried running it on it but for some reason it did not work but when I run it … | |
I need to develop a piece of code in an old legacy Visual C++ 6.0 system. I am invoking a stand-alone executable via a system call. This exe is supposed to create a file if processing goes OK or not create one if it fails. The name of the file … | |
Hi, apologies since I feel this is a very basic question... I need to feed a function that takes a few arguments, and I'm having trouble with one of the variables: my_function(..., ..., const char* const*, ...) I'm trying to initialize that variable like this: const char* const myVariable[] = … | |
Hi Guys.. I have a problem in tellg() function.. When I open file in Binary mode , It returns true value,but when I open in default mode it returns false value.I can't understand what has happened ...(the problem is in this code) : [CODE] for(int t=1;t<size;t++){ char ch=input.get(); codes_list[t].symbol=list[t].symbol=ch; input>>list[t].q; … | |
hi. How to save a bit on the physical disk in the C + +. ofstream write only file, and I would like to save the hard bits but I do not know how to do it | |
I have a class hierarchy in which the base class is abstract. Each derived class has a set of private members which describe parameters that control how the class processes data. I want to enforce implementation of a setParams() function across all derived classes. However, because the parameters for each … | |
I have a question, for example I input something on edit and in that time when I'll click on search button it will show find message, but it shows mysql error :'( why? what I am doing wrong in this code? :( [CODE]HWND edit; char t[MAX_PATH]; char query[MAX_PATH]; GetWindowText(edit,t,MAX_PATH); mysql_query(conn, … | |
Hey everyone, I have to take some code and make my a linked list using the accounts class. would i simply have to replace the list class with a struct???? here is my code.... [CODE]//Assignment #6 due 2-8-2010 #include <iostream> #include <iomanip> #include <fstream> using namespace std; //global declarations typedef … | |
I have an MFC application. On the following line MonoBuff = new short[iSize]; an exception is thrown that is caught in CATCH_ALL(e) block in wincore.cpp, getting "Warning: Uncaught exception in WindowProc". It is said to be a CMemoryException. Surprisingly, when I tried to use try/catch block in my code, CMemoryException … | |
hey everyone i need help help with sorting chars what im trying to do is show four words in order of increasing [CODE]sample run: 1) set 2) wall 3) table 4) answer[/CODE] CNT use No arrays, programmer defined functions or loops. however can use built-in swap() function,if and or switch … | |
Example Image: [url]http://img710.imageshack.us/img710/4310/cropexample.png[/url] I need to make a cropping tool such as the on in Photoshop ( Fig.2 ) So is there a way to do selective area transparency( Fig .1 ) ( I have only done whole window transparency ) Because the only way I can think of doing … | |
Hi, i have a problem, i am using a library given by my university to create a game, these are my classes and cpp files, and i am getting this error: error C2512: 'Board' : no appropriate default constructor available, pls help. [code] class Board { protected: GWindow &Gwin; int … | |
kindly give me the source code for NFA to DFA conversion. | |
I am writing a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax is 6.75 of the meal cost. The tip is 15 percent of the total after adding the tax. I have to dislay the meal cost, … |
The End.