49,761 Topics

Member Avatar for
Member Avatar for Tusike

Hi! I have been programming in FreeBasic for 2 years now, and decided to switch to C++ a few weeks ago. This means that I'm not completely new to programming. I downloaded Visual C++ Express Edition 2008, and have already read all 12 chapters of C++ Beginners Guide (well the …

Member Avatar for mrnutty
0
93
Member Avatar for larrifari

Hi, I am still a newbie to C++ and ran into a strange problem - I am using a static instance variable in my class, as soon as I do so I get an error LNK2001: unresolved external symbol error message - however this only occurs when I am trying …

Member Avatar for Nick Evan
0
4K
Member Avatar for arunkumars

Hi, I knw there is a way to convert from 1 managed code to other, but i just want to know how cani use it, i have a code in vc++ 6.0 and i need it in c#.net form vs 2008. wat r the ways i can do it.. Thanks...

Member Avatar for sknake
0
112
Member Avatar for DarkNova

I am having a much harder time than I should trying to deallocate the memory used by an STL map. Some example code: [code] void mainfunc() { testmap(); testvect(); } void testmap() { map<int, float> testmap; for (int i = 0; i < 1000000; i++) { testmap[i] = (float)i; } …

Member Avatar for ggsddu
0
2K
Member Avatar for csy

I got a set .net c++ 2003 source code, I need to call some of the functions from it in c# 2005, how can I do? I heard that .net c++ 2003 is managed code it can directly communicated with c#, but I dont know how to do, is need …

Member Avatar for kvprajapati
0
52
Member Avatar for poliet

Hello, I have a class with as many objects I need. I am changing the value of some member variables individually here and there, however, now I want to be able to change one specific member variable of all objects e.g. bool visibility at once, so that all objects wll …

Member Avatar for poliet
0
82
Member Avatar for chiraag

Hi there all, Could someone please tell me how I could increase my precision for floating point arithematic? My requirement is that I add a very small value of the order 10^-7 with a relatively big value, say 36.63 and then I want multiply it with 10^7. The problem Im …

Member Avatar for vali82
0
899
Member Avatar for amino0o

Is it possible for me to typecast or convert a type [icode] IplImage* [/icode] to [icode] const char* [/icode] It seems impossible, but i would like to send a frame captured from webcam through a winsock socket directly through memory but the 'SEND' function only accepts type const char *. …

Member Avatar for vali82
0
363
Member Avatar for JameB

HI, I was trying to learn more about I/O with files in C++ and I can't figure out why this program can't output to the file... [code=cplusplus] #include<iostream> #include<string> #include<fstream> #include<algorithm> using namespace std; char userinp; void print_interface() { cout << "Enter E to Encrypt" << endl << "Enter D …

Member Avatar for vmanes
0
126
Member Avatar for VBNick

Hello! I have a piece of software called X-Mouse Button Control, and its able to intercept mouse events. The website for my mouse had this instead of a driver specifically for the mouse. In the program, I am able to "Intercept" the functions of Leftclick, Rightclick, ect, globally for windows. …

Member Avatar for VBNick
0
2K
Member Avatar for Natique

Hi! I'm trying to write a code where I call a number of programs, with each program's output being the input for the next program. [code] WinExec(run11, SW_SHOWNORMAL); //to execute program1 WinExec (replace2, SW_SHOWNORMAL); //to execute program2 [/code] Now the problem is, program2 starts running before program1 finishes, and therefore …

Member Avatar for Natique
0
188
Member Avatar for acplus

Hey, guys! I need little help for finished my code. I have created the code for analize my text file. I have text file with 2 lines. The program counts the lines of my txt file, length of each line, upper and lower case letters. Code works perfect without errors. …

Member Avatar for mrnutty
0
143
Member Avatar for Mnkyman1030

Hi, I need to write a program that counts how many total iterations are processed in a heap sort. I wrote the program but I don't think it is working properly. I have an array 32 numbers. The sort should go through a total of 160 iterations, right? Since it …

Member Avatar for mrnutty
0
221
Member Avatar for sara khan

Hi, I have seen a program in a thread that write a program which displays its own source code... How this can be done??

Member Avatar for rahul8590
0
93
Member Avatar for vibs123

hi,,,, all can anyone help me getting some topic for c++ project..... i m not getting an idea on which i can work and make a program or project in c++.... vibhu

Member Avatar for tux4life
0
128
Member Avatar for Nogat21

i'm with a question related to string comparing...i'm trying to compare two strings (well char pointers in fact :)), im using _stricmp for case insensitive comparison, but even with the conventional strcmp i'm not getting the result i want. [code=cpp] if(_stricmp(value,gen_arr[i])== 0){ file.seekp(-1,ios::end); file.put((i)); file.flush(); file.close(); printf("Editing of field %s …

Member Avatar for Nogat21
0
108
Member Avatar for gretty

Hello I have a program that prints a menu & the user is prompted to input a choice(1,2 or 3) if they input anything else, the output should be "Invalid Choice". [B] My Problem[/B] is that if a user inputs anything other than 1,2 or 3, then the program crashes, …

Member Avatar for mrnutty
0
227
Member Avatar for dennis.wu

A const member function is not supposed to operate the data member. However, it can operate the data member if it is a reference data type. Why can operate the reference data member even if the member function is constant? It is shown below: two classes: Bird & BirdHouse BirdHouse …

Member Avatar for dennis.wu
0
143
Member Avatar for D.JOHN

Guys, I have this question, when I run this program, the program suddenly stop and tell me it cannot be runned, could your please tell me my error thanks. Here is the code: [code=cplusplus]#include <iostream> using namespace std; int main() { int student,subject; int marks[student][subject]; int i,count; student=5; subject=3; //Getting …

Member Avatar for D.JOHN
0
155
Member Avatar for atch

Hi, I've just came across declaration of this form: [code=c++] void fun() throw(); [/code] Could anyone explain what is the pourpose of this and maybe someone knows good book with thorough explanaition on this subject. Thank you

Member Avatar for atch
0
117
Member Avatar for SeriousTyro

I've learned Java, C++, and most recently C ( Fall of last year). Seeing how there is a great deal of threads for C++ I'm thinking that I should go for C++. Which language do you suggest?

Member Avatar for Salem
0
148
Member Avatar for JameB

Hi, is there any function or algorithm that can completely remove a string array element? For example, string mystring = 'x', 'xx', 'xx', 'xxx'; if I want to remove 'xx' and I know the position of 'xx' in the array, I want this : mystring = 'x', 'xxx'; Anything? I …

Member Avatar for JameB
0
5K
Member Avatar for umarmaqsood

Before i start my question, i must say i am very sorry for starting another thread for a similar question, as i have read many threads but i didnt really catch the exact answer i wanted. and again i am new and very sorry.(first post) i have been reading C++ …

Member Avatar for gkaykck
0
133
Member Avatar for gretty

Hello I have a function that should store random numbers in an array and also check if there are any repeated numbers. [B]My problem[/B] is that I cannot figure out how to 'repair'/get rid of repeated numbers & make them ...unrepeated numbers? :P Any advice on how I can alter …

Member Avatar for Sky Diploma
0
125
Member Avatar for Democles

I'm having trouble making a function that centers my results. I cannot find much information depicting how this works exactly. I've found small functions but nothing like I'd like to do. My whole idea is make a function so I can use it at anytime to center my string. Somethings …

Member Avatar for Sky Diploma
0
120
Member Avatar for missty

can anyone tell me how can i create a function like: [QUOTE]if ("the txt file is blank") dosomething;[/QUOTE] which is checking if the text file is empty and then do something.

Member Avatar for Dave Sinkula
0
3K
Member Avatar for gretty

Hello I have a function that takes in a 'word pattern' & a word & determines if the word contains the same characters in the same position as the 'word pattern'. [QUOTE]For eg; 'word pattern' = he??? word = hello - The function will return true because the word variable …

Member Avatar for gretty
0
145
Member Avatar for plato_03

hello everyone, this is my first post. I have been teaching myself c++ for the last few weeks and have gotten more familiar with some of it. i thought to myself it would be interesting to try writing up some code that goes through numbers to see if they are …

Member Avatar for mrnutty
0
137
Member Avatar for seakayaker

Hi, I have a Windows GUI app that uses a thread for a computation intensive call. It works fine. From what I understand the thread is terminated when my thread function returns which means that I dont need to add a a termination to it. However, I don't want the …

Member Avatar for Frederick2
0
232
Member Avatar for mrfred

Ok so I am using Microsoft Visual C++ 2008 express edition to compile my programs. I have used this for a while now and i want to make a program that will open another executable file. I have done this successfully with system(), however whenever I put spaces in the …

Member Avatar for mrfred
0
87

The End.