General C++ Programming - July 2012 (Page 20)

fbc -lang qb -dll "c:\documents and settings\DLL_test_QB.bas" command is not working in System
 
Dear all Please healp.. fbc -lang qb -dll "c:\documents and settings\DLL_test_QB.bas" not workin when i am trying to make Dll. my Qbasic program DLL_test_Q...
[4 replies] Last: done... Thanks (by PCastro)
Trouble with linked lists.(Graduation excercise)
 
Hi, I'm trying to do a beginner excercise called "graduation". And I'm getting Unhandled exception at 0x774a15de (ntdll.dll) in Graduation.exe: 0xC0000005: Acc...
[2 replies] Last: conductor->next=0; Line 120 I guess i did... is that important? I fo... (by Vanapapi)
by Null
wxWidgets multithreaded app crashes
 
Hello, I need to inplement a very simple multithreading in my app. I know how to start and run a thread but when I check whether thread is alive, and if the th...
[3 replies] Last: May be you are deleting the thread which is currently running or locke... (by cpathrd)
declaration
 
i included the header file and its still giving error. here is the code #include "Enemy.h" class Player { public: void attack(Enemy,int); }...
[5 replies] Last: If still you have problems, Provide the Enemy.h or Enemy class. that m... (by cpathrd)
if..else.. CONDITION FOR TESTING A PRIME NUMBER
 
Hi everyone, I'm struggling to write an "if else" condition for testing if an integer is a prime number or not. a prime number is a number that can only be divi...
[3 replies] Last: it's enough to go from 2 to sqrt(yourmaybeprimenumberorwhatever) (by viliml)
CAN YOU HAVE A MEMBER FUNCTION RETURNING A STRING IN A CLASS
 
Hi everyone, Is it possible to have a member function return a string in a class. for example: class myClass{ public: [...] string returnStr(); private:...
[9 replies] Last: @ToniAz: Can ANY function return an array? Any kind of array? No, just... (by viliml)
happy returns
 
Hi. need help completing this. I need to write a short program which returns a report of occupied rooms and the customer in the room. string Hotel::REPORT1(...
[1 reply] : Need more details on what's going on and what the problem is. What do ... (by soranz)
string print problem
 
i used cin >> A >> B >> C; getline(cin , D); and try to print out cout << A << B << C << D; something like this but there is always space between beginn...
[1 reply] : use cin.ignor() for removing that space. cin >> A >> U >> R ... (by HiteshVaghani1)
Decimal to ASCII char
 
Is there any way to convert an int value to a char value that is corresponding to its ASCII value? ex. int a a = 87 ASCII of a = 'W' Thanks
[4 replies] Last: There is char itoa(int ) and int atoi(char) function also availa... (by HiteshVaghani1)
string problem II
 
I have to consider two cases P should be : Vitamin A or VitaminA so i used get line for P; cin >> A >> U >> R; getline(cin,P...
[3 replies] Last: Thank you ~ (by jake eum)
Floating point types fake numbers
 
#include <iostream> using namespace std; int main (int argc, const char * argv ) { double n1 = 0.0; float n2 = 0.0; cout << "Insert two...
[4 replies] Last: Hello, just adding the aswer, the cause is the representation of floa... (by engelsbr)
Container verses array
 
I am trying to program my first app with the help of dragonfiresdk. I don't have much experience with arrays and want to continue using containers for this. Is ...
[5 replies] Last: Hey guys, yeah you can! dragonfiresdk has been a good option for me. I... (by freta89)
CreateProcess(/**/) causing segmentation fault.
 
Hello, my name is legolizard. I am not *totally* new to C++, but I need just a small bit of help. I need to use the CreateProcess() in my program, however it gi...
[3 replies] Last: Beware that CreateprocessW() does not take a const string as second ... (by modoran)
difference between int* and int&
 
Can anyone please explain the difference between these two programs ? Program1 #include<iostream> using namespace std ; void swap(int* , int*); int...
[9 replies] Last: well Moschops certainly made a point about the object pointers being ... (by Raman009)
Virtual functions (undefined reference for vtable )
 
//Early and Late binding #include<iostream> using namespace std ; class klm { public : void getdata(){ cout << "Enter name "; cin >>...
[3 replies] Last: thanks guys !! well , I made the changes in the code and it worked . I... (by Raman009)
New to C++
 
hello! I'm new and i tough myself c++ and i need someone to give me his opinion about this code its simple code for calculator and what i should do to make i...
[16 replies] Last: I think it's fine as is. There are endless ways in which the code can... (by kbw)
by jamesa
need a second pair of eyes! help!!!1
 
my code is short, but i cannot find whats wrong.. #include<iostream> int main() int sum=value=0; char stop='n'; cout<<"Give an integer for n,the number of valu...
[9 replies] Last: @viliml i forgot int main(){ return 0; } is also bad (by DeXecipher)
by CMarco
file name
 
Hello to all, I have a function here receive some vector's and I put the vector content into a file, like: void forwardMg (std::vector<std::string> v...
[2 replies] Last: Thanks (by CMarco)
Arrays, variables, and renaming!
 
Never coded before, just learning some recently to ease a few work tasks... For work, I sometimes need to rename jpegs. Each image has two numbers, a beginning...
[no replies]
by rdx
array of string problem
 
#include<iostream> #include<string> #include<conio.h> using namespace std; int main(){ string array ; int i=0,j=0; string z ={"abdgh","ygurjc","guqhk...
[2 replies] Last: actually.... i have wrongly written string array .....it should be :... (by rdx)
July 2012 Pages: 1... 1819202122... 30
  Archived months: [jun2012] [aug2012]

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