General C++ Programming - April 2014 (Page 16)

Need to get data in .dat and convert it into System::string
 
I am trying to make a log in system which load data from a .dat So i have a part of code below if(radioButton1->Checked) //Login { String ^ userAC = text...
[2 replies] Last: Just to note: This is not C++. It is C++/CLI: Microsoft created langua... (by MiiNiPaa)
by teslaa
running a class function as a thread
 
I have a header file with a bunch of functions. I want to create a thread using the <threads> package and am using void myclass::functionX() { } ...
[1 reply] : These links may help: http://www.justsoftwaresolutions.co.uk/threading... (by MiiNiPaa)
A strange problem!
 
if( xa.S ==ya.S && xa.B ==ya.B ) {//do something} When I want to compile the above statement, it gives "passing ‘const BC_c’ as ‘this’ argument of...
[6 replies] Last: That make sense, thanks alot! (by northfly)
Making Easy RPG
 
Okay here's my problem. I've made a coding about control a "V" to move around a 21*21 platform. Now I want to "shoot" '*' to the direction (which is downwards)....
[no replies]
CodeBlocks::wxWidgets issue
 
I am having issues with wxWidgets used with code blocks. The plugin of wxWidgets is installed and I downloaded the binary installer so wxWidgets is also install...
[2 replies] Last: bump (by danielmccarthy)
Passing Fixed Character Array into Binary File
 
all i want to do is to read a fixed char array sized 4 from user and pass it to Binary File then Print Encrypted content from the the File to the console scre...
[6 replies] Last: Okay thanks alot :) (by Heroboy107)
How to create a simple e encryption and decryption program.
 
Write a program to do simple encryption and decryption. Encryption basically means to convert the message into unreadable form. In this assignment, it should b...
[2 replies] Last: Thanks for your reply! Could you help me produce a code for this progr... (by stevehan)
Command Line Arguments in VS2013
 
I know you go the the debugger and pass them in. I just need to know the syntax. I know &(ProjectDir) goes first because the text file is in the project directo...
[2 replies] Last: If the text file is in the same directory as your source files, just u... (by cire)
by chhe
boost help
 
Hi I'm trying to get the boost library working. I built the library and using codeblocks as my IDE I added to global variables C:\Lib\boost_1_55_0 where the boo...
[2 replies] Last: > added C:\Lib\boost_1_55_0\boost to search directories in compiler A... (by JLBorges)
by km2594
String comparison help
 
I am not able to compare two strings. Please help. The password part. My aim is i give a default password say, 12345678; i then ask the user to enter the passw...
[1 reply] : Neither pass nor p are null-terminated, so strcmp() is going to read o... (by Zhuge)
Mongodb connection #include problems
 
Hey guys, I got the mongoshell and Json file all set up. I need help connecting Mongodb to C++ I typed this in the command prompt but it gave a a syntax error....
[no replies]
Namespace scope
 
If I have a header and a few class like this: namespace ns { class Human; class Animal; } class Human { }; class Animal { }; Can I just put ...
[2 replies] Last: I think so. Thanks (by dleanjeanz)
by bonita
stringstream
 
hi guys i am so exausted wit this. I trying to get input from the user and split into words that separated by a space. any idea? string s = "1 2 3"; ...
[2 replies] Last: Thanks a lot that worked out. and i am not brazillian (by bonita)
Invalid conversion from int to int*
 
I'm using a MinGW compiler on Windows XP. Would anyone know why this would cause an error. The error is: 'Invalid conversion from int to int*. in my mai...
[4 replies] Last: So if I understand correctly the compiler will see the 5 as a memory l... (by dominover)
nested selection
 
event................. red house.............. blue house........... yellow house Chess ......................12.................... 5.......................
[3 replies] Last: OK, but please post the C++ program you've written so far for your hom... (by wildblue)
Questions about my classes and inheritance
 
Hello all, after around a week trying to figure out one of the two homeworks I was assigned I decided to try the second of my two homeworks. This one is c...
[no replies]
Auto Align
 
Dear C++ Community, Is there a way to auto align a cpp file?
[7 replies] Last: Ok thanks. Maybe when I get a tutor he can help me with setting up the... (by closed account zqMDizwU)
function call, header, and prototypes!
 
I'm writing a code for the problem below and I have two issues a- function header, prototypes, and call b- I'm getting this message: There is not enough space...
[no replies]
Problem with string array sorting
 
I am trying to read information in from a file, each line of which contains a name in the form 'last, first middle'. I can successfully open the file and read i...
[2 replies] Last: In looking at the code further, I see a couple of problems... for the... (by markj)
Deleting the line numbers in C++
 
Does anybody know how to get around having to delete each number if I was to copy and paste a header file? http://api.mongodb.org/cplusplus/current/files.html ...
[2 replies] Last: Im sry I don't know what you mean "with your installation". I cannot d... (by closed account zqMDizwU)
April 2014 Pages: 1... 1415161718... 41
  Archived months: [mar2014] [may2014]

This is an archived page. To post a new message, go to the current page.