49,761 Topics
| |
[B]Background:[/B] I am developing a library for an existing (network) protocol that frequently changes. I want to develop the library to be compatible with the current protocol and support future changes, while maintaining backwards compatibility. Right now, my concern is about the protocol model. I'm trying to find the best … | |
I want to compile a Visual C++ project made by another person and then the following error appears: LINK : fatal error LNK1104: cannot open file "uafxcw.lib" What may be the cause of this problem and any suggestions on solving it? Thanks. Jov Edit/Delete Message | |
Hello Frnds, I m configuring msxml in my VC++ but it s giving some errors like Error 13 fatal error LNK1169: one or more multiply defined symbols found D:\Major_project\practice\validate\Debug\validate.dll Error 11 error LNK2005: "public: virtual __thiscall _com_error::~_com_error(void)" (??1_com_error@@UAE@XZ) already defined in stdafx.obj comsuppwd.lib Error 12 error LNK2005: "public: static long … | |
How can in the output, I want ONLY ONE LINE from 1 to 99, the windows is not enough.. myvector contains: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 … | |
How to correct it? ompiling... 27.cpp C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2065: 'aTable' : undeclared identifier C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2109: subscript requires array or pointer type C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2228: left of '.size' must have class/struct/union type C:\Documents and Settings\ashida\My … | |
Hello all, yes yet again an Assignment problem I need help with haha ;) Anyways this time my code is correct, I think, but I am getting hung up on an ifstream issue. Here is the code: [CODE] ifstream infile; ofstream outfile; infile.open("C:\Users\***\Desktop\School\chapter5.txt"); if (!infile) { cout << "Cannot open … | |
Can C++ draw a table for matrix? or I must draw a line like this? __________________________ __________________________ _________________________ _________________________ | |
Hey guys, I was doing my reading last night and was trying to come up with a program other than the practice assignments. It has been hard remembering all the keywords when they are given to you in the practice assignment. I came up with one and kinda got myself … | |
I have an assignment dealing with polynomials and adding two of them together. Am using vectors to approach this and i have one vector assigned for coefficients and the other exponents Am very very new to c++ and am at a lost. Here is my + operator [code] Polynomial operator+(Polynomial& … | |
whats the different between two multidimensional vector and array? | |
Hi, I am programming in VC++/MFC to make applications for Bus, Airline and other ticket booking softwares. In those applications i need to display the available Buses/Flights in as in Web pages. i.e., like tables. A row for a flight like that. Currently I am making such a view by … | |
Hello, i need some help with C++...I'm attempting to make an 4x4 array. The user inputs the array "Line 1: " // the the user inputs his 4 numbers for line 1 and so on.... the program then adds the array across on all 4 lines, and twice diagonally. I … | |
| |
How is a string vector array declared using a Form application ? This seems to work for int in a Form Application: [Code] std::vector<int> Value(10); [/code] But if you change int to string in the same example the compiler says that 'std::vector' : class has no constructors | |
This doesn't work. Please help. (line 8: invalid conversion from `const char' to `const char*' ) const char *alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int i=0; do { new_ptr = (struct node *)malloc(sizeof(struct node)); new_ptr->next = NULL; if (start == NULL) { strcpy(new_ptr->letter, alphabet[i]); start = new_ptr; current = new_ptr; } else { strcpy(new_ptr->letter, alphabet[i]); … | |
I need to let the user input a line of words and make all the 4 letter words in the sentence "love".... example: cin>> I hate programming output --> I love programming does anybody know if there is any library, or string member functions would help doing this task? below … | |
is there a quicker way to fill the list with A,B,C,...,Y,Z whithout doing all this? 1. #include <stdio.h> 2. #include <stdlib.h> 3. #include <string.h> 4. #include <malloc.h> 5. 6. struct node /* Declaration of structure "node" */ 7. { 8. char letter[1]; 9. struct node *next ; 10. }; 11. … | |
ok so I class telling a point to rotate 90 degrees till it reaching the original point.... I'm not using Visual Studio when it compiles just looks like crap.. [code] #include <iostream> #include "point.h" using namespace std; void rotate(point &p); int Main() { a.point(0,0); cout << "(" << a.get_x() << … | |
I am to open a text file, copy it, increment its ASCI characters by ten and then write it into a created text file. This is the code that I have so far.(visual c++ 6.0). The problem is that I cannot increment the characters. It gives me and overwrites my … | |
So so so....finally I have learnt to create a DLL in DEV C++ (Open src compiler with IDE) Now I have also created a DLL in VC++ and I am trying to call the DLL in my DEV c++ EXE project. I have correctly specified the library file (.lib) of … | |
Hello everyone! I have seen some code where some variable gets inserted into string throught the % sign, like so - [CODE]("insert into songs values (%Q ,%d, %d, %Q, %Q, %Q, ... ", someInt, someChar, someChar... )[/CODE] I have tried to look it up in google but I do not … | |
How to arrange the number properly? [code=C++] /*------------------- Two dimensional array -------------------*/ #include<iostream.h> #include<fstream.h> #include<iomanip.h> ifstream infile("STA83EXM.txt"); void main() { const int row = 140; const int column = 140; int matrix[row] [column]; //**************creates Matrix**************** int num; for(int i = 0; i<=row-1; i++) { for(int j = 0; j<=column-1; j++) … | |
| Hi, I am using Microsoft Visual C++ 9.0 Express Edition. In File > New > Project, you can select Win32 group and then the Win32 Application. I think, when you use this in your project then the compiled program should run on Windows without .NET Framework too. How is it? … |
Hi, I am getting a syntax error : \Sainath.C(24) : error C2059: syntax error : '__stdcall' for the below code: [code=c++] int main() { COORD WINAPI GetLargestConsoleWindowSize( __in HANDLE hConsoleOutput ); printf("%d",x.WINAPI); // I know its the printf statement which is wrong as only when I wrote it I got … | |
374 / 9 = 41.6 (from calculator ) if in c++, it will become 374 / 9 = 41.555 how do i make the final calculation become 41.6 ? i've tried ceil() and setprecision(1) , the answer i got quite big different compare with the answer from calculator. answer from … | |
In the following simple program, [CODE]int main() { string name; char sex; cout << "enter M or F: "; cin.get(sex); cout << "enter name: "; [B]getline(cin, name);[/B] cout << name << " is " << sex << endl; return 0; }[/CODE] after the user typed in a character "M" or … | |
[COLOR="Red"][B]Circle.h[/B][/COLOR] [code=c++] #ifndef CIRCLE_H #define CIRCLE_H #include <iostream> #include <fstream> using namespace std; class Circle { friend ostream& operator <<(ostream& output, const Circle& aCircle); friend istream& operator >>(istream& input, Circle& aCircle); public: Circle(); Circle(double radius, int id); Circle(const Circle& aCircle); void SetCircleRadius(double radius) { _circleRadius = radius; } void SetCircleId(int … | |
Hello there. Is there someone kind enough to please explain to me the difference of using fork() and exec() with system() in invoking a process. I just want to know their difference according to well experienced with processes here. And what is the most efficient in invoking a process between … | |
Got most of this done. I just can't see why my advance_date() method is only partially working...I think it's something with all my bools....but I don't know how else to get this condition met. Project is to Design, implement, and test an ADT that represents a calendar date..Integers are fine...include … | |
i am trying out merge sort. i have made two functions sort and merge; i am calling merge recursively. i think my sort function is working fine. the problem lies with merge function. in merge function i am dividing the array using recursive calls. it ends when lb = = … |
The End.