49,761 Topics
| |
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 … | |
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 … | |
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... | |
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; } … | |
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 … | |
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 … | |
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 … | |
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 *. … | |
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 … | |
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. … | |
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 … | |
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. … | |
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 … | |
Hi, I have seen a program in a thread that write a program which displays its own source code... How this can be done?? | |
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 | |
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 … | |
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, … | |
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 … | |
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 … | |
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 | |
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? | |
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 … | |
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++ … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … |
The End.