49,761 Topics
| |
My interested area: C++/C#, WPF, LINQ, DB relevant(MS SQL) Moving forward towards: F#, Silverlight | |
Hi Again. I have a password field in one of my programs. I would like to display the letters as a *. Does anyone have some code to achieve this? | |
Hi ! Some (weird) problem i got : I have a header file, InputHandler.h, which has one Class called InputH, and inside i have public: and a Void named Hi(). When i try to include InputHandler.h in PRPT.cpp, i get an error, weird one; The error says that i should … | |
Hi I am writing a code in VC++ char* style = "color:#4D4DFF;font-size:9pt;font-family:Arial;"; char* semicolonsplit = ""; semicolonsplit = strtok (style,";"); But in the last line I am getting an error " Access violation writing location 0x0041606d." Am I missing something. Regards Karan | |
Ok so im still learning C++, looking at some directx and i come across a _ before a var and was wondering what it means. for example: pDevice->SetVertexDeclaration( _vertexDeclaration ); or in a error macro: SHOWERROR( “CreateVertexBuffer failed.”, __FILE__, __LINE__ ); first one is probably the best example. thanks. | |
help.. i dont know how to sort strings.. for example.. if i enter: [CODE]JOKER[/CODE] then the descending order of string must appear: [CODE]ROKJE[/CODE] i think of strcpy() ..but it i dont know what to place in the if().. here's my code.. [CODE] #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> void main() { clrscr(); … | |
I've been working at this, ALL day... and stumped I have a class called LinkedList, which I am writing, Everything compiles, but at run time I get a segmentation default error. It occurs when I initialize a LinkedList object. I.e. LinkedList ll; // causes a seg def error at runtime … | |
Hi [B]snprintf [/B]is working fine when i am not using [B]append [/B]function . But as soon as i use [B]append [/B]function [B]snprintf [/B]crashes . Please suggest why [B]snprintf [/B]is crashing after [B]append [/B]. What is special with [B]append [/B]function which is crashing this program Below is the program. #include<string> #include<iostream> … | |
Hi I'm trying to convert a linux/gcc program to windows/cl But I'm having some problems understanding the inner workings of the ide called microsoft visual studio c++ 2008 express. I've started a "new clr project", and then added the .hpp file, that contains the header. But the compiler/f7 says that … | |
hi, I am curious, how can I read a int from a text file( ex. num.txt). but this text file contains numbers without spacing (ex.1212132132313... 23156897984969.. 583852935792...) The problem is that this file has no spaces between numbers and when i try to read it into an arry, the result … | |
how do i make it so that functions and procedures that are located in other files in the include statement have access to the global variables within main.cpp, thanks in advance. | |
how would I check how long a program takes for it to be completed. (i.e the time it takes for the program to be finished doing its calculation)) Thanks | |
Hey men I'm using ubuntu 8.04.1.when I wanna compile a c++ source code with gcc,it says: gcc:error trying to exec 'cc1plus':execvp:no such file or directory | |
I have an application which is supposed to move the mouse based on input like that from a keyboard. the code listens for the direction keys to see if they are pressed. the code works but only in 2 direction it can only move to the right and down. is … | |
hi, I must do in Qt a "undo" ( QKeySequence::Undo ) but I don't know do this.Help me ex. [CODE] void MyWindow::Save () { QFile file (fileName); if (file.open (QFile::WriteOnly | QFile::Text)) { QTextStream out (&file); out << textEdit -> toPlainText (); statusBar() -> showMessage ("message",2000); } } [/CODE] but … | |
Hi' there... Anyone with an interest in AI ?? We have been working on an AI-system for quite some time and now invite others to participate. The basic concept in the "game" we are constructing is as follows: You have an aquarium filled with 3 types of insects. By adjusting … | |
hello again, just tried to compile my project and i'm getting errors with a file cstdlib Error 2 error C2039: 'abort' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 9.0\vc\include\cstdlib 23 Error 3 error C2873: 'abort' : symbol cannot be used in a using-declaration c:\program files\microsoft … | |
Hello Friends, I am trying to porting an unix c++ program into windows using MSVC8.0 compiler. In my unix version there are some lines like [CODE] #include <sys/atomic.h> ... atomic_add_int_nv() ... [/CODE] Now, pls help me to find out the Win version of these code segments. Thanks, Amit | |
Hello guys, I am new in this forum and i hope im gonna get some fast help. I have this problem where i should input numbers from a .doc file, and the program should output how many times the number of occurences of each number. ie: the numbers in the … | |
this is a really strange one since it doesn't make sense why the program just starts running then shuts down without executing the system("PAUSE") at the end. here is the source code, thanks in advance to any help. [code=cplusplus] #include <iostream> #include <fstream> #include <vector> using namespace std; int main() … | |
When i compile this code i get an error which states main.cpp|38|error: no match for call to ‘(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) (long int&)’| I am going to assume that this is something to do with trying to put the string in a different kind … | |
Hi ! Thank everyone who helped me with my other question ! But i got something else to ask... Let's say that in my C++ Console, the user sets its user name, and in the next time the software runs it says : "Hello, USERNAME !" But, Problem : I … | |
Hello everyone, got a really strange and annoying error. When i compile my program i get 2 errors and 2 warnings all 4 to do with stdlib.h error C2381: 'exit' : redefinition; __declspec(noreturn) differs c:\program files\microsoft visual studio 9.0\vc\include\stdlib.h 371 i did a little research on the problem and found … | |
Hello, I'm writing a GUI using MFC. I have a number of press buttons that preform identical tasks on different members of an array. I know how to make a handler function for each button. I'm looking for a way to use the same function for all buttons and within … | |
Hello, What is Abstract classes.Please tell me the definition and how to implement this also tell me please. I'm waiting for your reply. Thanks | |
Hi, I trying to run a Axis JAVA client with a GSOAP C++ server. Here in the below given code I am trying to make an asynchronous call from the JAVA client using "sendReceiveNonBlocking" API. On the GSOAP server side I am using the "soap_send_..." for the asynchronous behaviour. I … | |
Hi! This is Adnan I have a text file having 10 records. There are 4 fields and each field is delimited by a comma. I need to read data from text file such that when i input suppose Account number then the program fetch the record thru that number and … | |
[code]#include<iostream> #include<fstream> #include<cmath> #include<iomanip> using namespace std; unsigned __int64 Fact(unsigned __int64 x ); int main(){ /*n! means n (n 1) ... 3 2 1 Find the sum of the digits in the number 100!*/ cout<<Fact(100); } unsigned __int64 Fact(unsigned __int64 x ) { __int64 num(0); if(x==0) return 1; else { … | |
I made a program that computes a factorial of a number. [code] #include<iostream> #include<fstream> #include<cmath> #include<iomanip> #include<string> using namespace std; //unsigned __int64 Fact(unsigned __int64 x ); int main(){ unsigned __int64 num = 100; unsigned long double fact(1); for(unsigned __int64 i=1;i<=num;i++) { fact *=i; cout<<setprecision(50)<<"i is : "<<i<<" fact is : … | |
How to implement hamming code in C++ or C I have a prog same as other user (Melissa). I need help to get me started in coding as i'm almost forgot everything i've learned on C or C++. The task is implement a program for any hamming codes by using … |
The End.