199,114 Archived Topics
Remove Filter ![]() | |
Hello to everyone, i have a project which base on text file. and i already know how to view the text file using a listbox, what i want to know is on how to delete a specific row in text file.. thanks;) | |
Hi All, I've write a code for client and server. It works well so far but the server just acknowledge the client of what it received. How to recode this program to make sure that once server acknowledged the client that the data sent by the client have been append … | |
Hello, I have a Activex exe, that makes use of multi threading. I have two PCs. A and B. When I run the program on A ( both in debug and compiled exe) it executes fine. I then created a package, installed it on PC B and the exe ran … | |
pop out so many errors, which seemed don't even exist: --------------------Configuration: 12 - Win32 Debug-------------------- Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\include\winuser.h(3) : error C2143: syntax error : missing ';' before '.' c:\program files\microsoft visual studio\vc98\include\winuser.h(3) : error C2501: 'winuser' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\winuser.h(3) : … | |
Hi guys! I wanted to know how can i go about making a desktop application with C++? My application would need to do a lot of internet intensive processes and reside on the client's system, much like outlook express or evolution mail services.. i need to know what all packages … | |
Hi, I am trying to create a treeview control in a window that includes a toolbar and a status bar, I need to position the treeview immediately below the toolbar. In order to do this I need to calculate the height of the toolbar and used it as the Y … | |
how can I assign this values then I could deside where and when to create and paint. | |
erm greetings.. i have a situation here regarding picturebox. there are 2 boxes, 1 is for template image, and one for image to be compared with. i planned to make the user able to draw a box in template image picbox, as a region where the image the other picbox … | |
hi , I am trying for partial fraction deomposition of polynomials. I have problems in solving the denominator and in applying different conditions for special cases . Is there any stright forward method for this. | |
does anyone have problem with linking to newmat library ? running [CODE]#include "newmat.h" int main() { Matrix A(2,2); }[/CODE] i got linker error: undefined reference i'm using dev c++ and have set the directories to point to the file where i stored all the header and source files .. any … | |
1)Can you suggest me how to assign a pre-defined 2-dimensional array to a pointer.The intension here is to pass 2-D array to a funtion so that changes in the function will reflect the 2-D array . [code]void main(){ int array[40][40]; fun(array); } void fun(int **array){ ........}[/code] The above code is … | |
Could you also email it to me at [EMAIL="bilalmuslim@gmai.com"]bilalmuslim@gmai.com[/EMAIL] | |
hey guys I have to write this program and I really suck at it.:sad: I need a doubly linked list which is ordered. I was told that I can pull one off the internet and just use it. Ive been looking for one but I cant find it, so I … | |
can someone hlep me with this ? i have the user names. now i need to find the name of the machine they are logged on to. how can i do this? i mean known : username, domain needed : machine name pls help i really need this one. | |
[quote=Narue;139999]You're using a Win32 application project when you want a console application project. Win32 applications expect WinMain instead of main.[/quote] But it still doesn't work for me. I'm just a freshmen. I set up a blank workplace, then win32 application project, then a c++ cource file. Then type as below: … | |
Hello, I'm new to both C++ and these forums. What I'm trying to do is calculate the average of all values contained within an array. Is there a simple command that can do this for you, or does one need to set up some kind of loop? Any help or … | |
[code] #include <iostream> using std::cout; using std::endl; class aClass { public: aClass() { this->aString = new char [1];; this->aString[0] = '\0'; this->length = 0; } ~aClass() { cout << "Destructor" << endl; delete [] this->aString; } aClass(const char *); const aClass& aClass::operator=(aClass &); private: int length; char * aString; }; … | |
I am writing a program for my college class :eek: It has to record a password, but it cant display it on the screen. It is a unix based enviroment. Does this look correct to you guys? [CODE] main() { int i; char buffer[80]; initscr(); printw("Please enter a password => … | |
Hi all!!! I have been tearing my hair out trying to figure out how to make the below program calculate and display the total sales tax for each location. If anyone can please look at my code and send me in the right direction, I am hoping I can get … | |
In a statement like this [code] void mousebuttonhandler(int button, int state, int x, int y) { int counter; if (button == GLUT_LEFT_BUTTON && state == 0) counter ++; printf("Mouse button event, button=%d, state=%d, x=%d, y=%d\n, ", button, state, x, y); glutPostRedisplay(); } [/code] It appears that im trying to count … | |
[B]Hello![/B] I just recently registred at this forum and I must say it seems to be a nice and friendly place! :) I'm currently studying a beginners course in C++ and I'm a bit stuck right now.. So I thought perhaps it might be a good idea to ask soem … | |
[CODE] #include "stdafx.h" #include <iostream> using namespace std; int a=10; void main() { a=20; cout<<a<<endl; cout<<::a<<endl; } [/CODE] [CODE] output: 20 20[/CODE] I actually want the [INLINECODE]"cout<<::a<<endl"[/INLINECODE] output 10, but failed. Does "::a" mean a is in the gloable scope? What should I have to change the code to make … | |
[LEFT]hi!i am a engineering student.i am now facing a lot of problem to using the borland c++ solfware.the following is my problems:[/LEFT] [LIST=1] [*][LEFT]how to using borland c++ to draw a Mohr's circle to find principle stress?[/LEFT] [*][LEFT]how to solve cubic equation.[/LEFT] [*][LEFT]how to display matrice 3x3 on the screen?[/LEFT] … | |
I am new at this c++ programming thing and i got stocked in this program right here hope someone can help me out id appreciate that // Program Dinner prints out a dinner menu // 1 const SALAD = "Green Salad"; // 2 const MEAT = "Chicken Marsala"; // 3 … | |
hi every one, im working on a program to convert the binary number system to the decimal one. I have the code yet im wondering if it a while loop can be used instead of a for loop. i have major problems trying to work out for loops, stupid me! … | |
Ok i got a problem with trying to read off a file that doesnt exist yet something like this [code] string fname; ifstream InObj; cout << "Enter name of file name: "; cin >> fname; InObj.open(fname); [/code] Then i got this error: N:\VC++\LAB01A\F06Lab1a.cpp(97) : error C2664: 'void __thiscall std::basic_ifstream<char,struct std::char_traits<char> … | |
Hi All, I am using system function to decrypt an encrypted file, But it's taking too much of time, as a result of file access i want to know how to store the output of system( ) function into local variables instead of a file. Code goes like this. sprintf(syscommand,"des … | |
does anyone know where i can find a library for minimizing a function, given a set of parameters and contraints? (similar to Solver in Excel) i've searched around and found quantlib/solvers1d but am still at a lost of how to use it .. any help is appreciated, regards, | |
It is not allowed to declare a variable of same structure type but it is allowed to declare a pointer. For example, [code] struct node { int a; struct node x; //not allowed struct node *pnext; //allowed }; [/code] My question is when we can declare a pointer of same … | |
greetings i'm not too sure if this is the correct place to ask for this in this particular forum i'm working on to make a USB PIC programmer. is it possible to modify the firmware for 16F628 used in Wisp628 board, so that it can be burnt into an 18F4550 … | |
hi i really need help on making c++ problems about the long math problems like long addition,subtraction, multiplication and division i've only began learning awhile ago so i just needed some samples or algorythms for this, if not both would be appreciated, if not a link to some guides about … | |
how to generate a state transition diagram in c.. give me the implementation steps | |
Hello, Could some body help me how could i delete any duplicate or same record of the input ? This is my plan but i am not sure it si working with C++ or not :- My program will be pass "number" values to this function and the function will … | |
I have written a program in c# for quick sort using multithreading. but the code has a problem. the array is not sorted properly. i think it is because the parent thread terminates soon before the child threads sort the array. i am attaching the code herewith. kindly help me.any … | |
Hi, I've c source code developed in 32-bit linux machine. Can I run it in 64-bit linux machine. Thank you. Santos | |
Hi out there. I can't get the constructors in my header files to work. Here's a copy of my header file code: [code] #ifndef GUARD_PHEADER_H #define GUARD_PHEADER_H //The header file for the Person.cpp. //person_header.h #include <iostream> #include <string> //Person class declaration class Person { public: std::istream& read_surname(std::istream&); std::istream& read_name(std::istream&); std::istream& … | |
anybody know any tricks for executing aspx pages from asp pages. basically I need to do something like this [code] <% strResult = Server.Execute("otherPage.aspx") %> [/code] I know that you can't actually execute a .Net page from a classic page but I'm hoping somebody knows a trick to get the … | |
Hi, I want to create an application like character map, for only specific characters, and extra features. There is quite a large problem in doing this though. I want to have controls whos captions have these special characters. However when I am creating this using my IDE, Pasting these characters … | |
I'm self-teaching myself C with a complete reference book. Unfortunately that means that the author assumes that the reader is familiar with fundamental concepts and doesn't bother commenting the code. Here is an unnecessarily obfuscated code excerpt demonstrating "the use of return statements" along with my attempt to understand what … | |
I have an assignment that asks me to explain the "order of complexity" of an algorithm. Can anyone explain what that question means? Does that mean what happens first and so on? Thanks. | |
Below is my crazy program.What i want it to do is that it should take two arrays from the user;the 1st array should be the memo & the 2nd should be answers.These two arrays should be passed to function compare of the type bool.In compare the 2 arrays should be … | |
actually i dont have complete concept about bigO notation that usually used to find time complexity my question is in bigO notation why we ignore constant for example f=100n we say that our algorithm has order of n time comlexity or order | |
how to run an audio file in C programming language as we access a textor any other kind of file........ | |
Hi, I am new to this web site and new to C++ programming. I am still in school and learning everyday. I am not catching on to some things so I was wondering if one can Help me. My problem I am working right now has to do with averaging … | |
Please help can you help me debug my code i cant display the result and the computation for sum is error... help me please :sad: [code] #include <stdio.h> int i,counter; float sum; struct cgrade { char course[50]; float credit[50]; float grade[50]; }; struct cgrade GPA[50]; main(){ printf("Enter number of courses … | |
Can anyone figure out why I get -9.032654e something from my biWeeklySalary function? [code] #ifndef EMPLOYEE_H #define EMPLOYEE_H #include "HireDate.h" #include <string> using std::string; class Employee { public: Employee(); Employee( const string &, const string &, const string &, const HireDate & ); ~Employee(); void setFirstName( const string & ); … | |
i am a little bit confused about the actual usage of the find function of map i have say a vector<string> and i want to return the relative position (or iterator) of a key (of type string) in this vector. now, the find function accepts only one input which is … | |
I have instantiated an object, bob, and have an array with hours for each day bob has worked. When I try to call bob.biWeeklySalary( hours[] ) it doesn't work. I'm not really sure how to use the array here. The compiler just says that hours is an undeclared identifier. Your … | |
I have executed the below programm on both C and C++ compiler and got different results [CODE]#include <stdio.h> int main() { const int a=10; int *p=(int*)(&a); *p = 20; printf("address of a=%u\t%d\n", &a,a); printf("address of p=%u\t%d\n", p,*p); return 0; } [/CODE] With C compiler I got the output address of … |
The End.