General C++ Programming - May 2012 (Page 26)

by tjr28
In Datastage C++ varchar is Null, how to handle gracefully?
 
Hi, I am trying to execute the C++ program from the DataStage client. I was getting the following error message. buildop_200,8: Fatal Error: Null value on...
[5 replies] Last: the type of the field1 is "string" (sql type is varchar), it accepts 1... (by tjr28)
C++ Why does it pause?
 
I have to write a C++ program to get the GCD based on inputs from user. I completed it except for one detail. If I use command arguments, something my program d...
[6 replies] Last: > Is there a way I can check the string before atoi to make sure its a... (by JLBorges)
Text files decoding in text editors
 
Hello guys, I have a question about the way text editors read text files. How does a text editor detect that a text file is binary, and not readable as a ...
[4 replies] Last: OK. Thanks a lot for the info :) Have a nice weekend! (by TheDestroyer)
Constructor of Composition.
 
Where the constructor is called for composition? and can we call the constructor of the class we are composting in the constructor other class we are compositio...
[1 reply] : That's what you're supposed to do. Wazzak (by closed account zb0S216C)
Parameterized Constructor.
 
How do I call the parameterized constructor in the below programm. #include<iostream> using namespace std; class my{ int a; public: ...
[3 replies] Last: First you need a somewhat new compiler that supports the C++11 feature... (by Peter87)
by ozone
need your advise
 
HI, i am a newbie in c++ but i just wanna ask something before i proceed. it been bothering ma mind all this days. i am practically a hardware and networking ad...
[6 replies] Last: hmmmm!! thats sensational. @hadar you are the bomb. THANKS a ton... (by ozone)
Dynamic 2D arrays
 
this is a piece of the code that I use: template < typename T > T ** New2DArray(int cols, int rows) { T **ret = new T * ; for (int i = 0; i < rows; i++) { ...
[10 replies] Last: I got nested loops that set the array to 0... for(int i=0;i<40;i++) fo... (by tofiffe)
long int too short
 
Is there anything else I can use that is bigger than long int?
[4 replies] Last: If you just want to calculate up to 20!, then a long long should be f... (by andywestken)
by Maji
Armadillo, Template, and STL
 
Hi C++ experts I'm trying to create a set intersection / union function for armadillo vectors. Below are my functions and it works. But it's clunky and th...
[5 replies] Last: @JLBorges very nice post, #3 I myself haven't used and look forward to... (by clanmjc)
by iruril
I have the ";", but still error
 
An error said expected unqualified-id before for and expect ";" before "for", but i definitely have all the ";", whats Wrong, please help me, thx a alot for(in...
[2 replies] Last: It said it expected the semicolon before the for, so look at the lin... (by Disch)
Simulator, Thread Design, and You
 
Hey all, I was hoping I could get some advice on designing the proper threading for our project. A little background info - our company does simulators of...
[6 replies] Last: Finally we're getting to some details As far as I've seen in C++ [... (by Cubbi)
I want to make a program..
 
but I'm a bit new to C++, and I'm experimenting. What I'd like to start off with is a program that can do the following: - Ask the user how many integer...
[1 reply] : I've been searching for someone who has something similar, and this wa... (by crystalgem)
invalid conversion from ‘const char*’ to ‘std::vector<char*>
 
I try to implement a constructor for a class Dictionary, but compiler gives an error which I don't understand. Here is a constructor: Dictionary::Dicti...
[8 replies] Last: [quote=john andre] vector<const char*>* words = new vector <const char... (by closed account zb0S216C)
This program.. (1,2)
 
A friend of mine coded this 'Xbox 360 emulator' and expects everyone to believe he programmed it. It loads up the dashboard which is really cool (Many errors wi...
[24 replies] Last: Not to mention he claimed he worked at Adobe (formally Macromedia) w... (by BHX)
String Vectors only working for one iteration
 
I am making a bird call quiz game and I am using a string vector to store all of the PlaySound commands for each different file. When types in the first answer,...
[3 replies] Last: @ne555 I tried doing that before but I didn't put the .c_str(), but wh... (by rasen58)
by jpss90
Skipping other input
 
I am supposed to write a program that holds holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator func...
[7 replies] Last: Thank you very much cire. I would have never known how to solve my pro... (by jpss90)
help with variables to hold the time to be DWORD
 
DWORD startTime = 0; DWORD timeElapsed = 0; startTime = GetTickCount(); if((GetTickCount-startTime)>10000) { //put the object in a new place } th...
[1 reply] : What is the problem, exactly? You don't really pose a clear question.... (by webJose)
by iruril
Need help for modelling an integral
 
I have encounter to program a derivative du/dt with an integral with respect to phi, may I ask how could I approach the problem? How could I do aproximate for...
[1 reply] : Google up equation solving by numerical methods such as the Newton-Rap... (by webJose)
Segmentation Fault in Function
 
Hi guys, I am performing a function that calculates the number of zones grouped into an array of pixels in a CCD. The point is that the function sometimes...
[1 reply] : Take line 37: if(CCD[i+1] .red>corte_sat && CCD[i+1] .prepas=... (by cire)
Struct and Union confusing behavior
 
I have this code declared in an H file struct ACTS_UInt16_Int16 { union { wtUInt16_t m_value1; wtUInt32_t m_combined_value; }; wtInt16_t m...
[3 replies] Last: doug4 yeah this is what happens thank you for you help. (by waguila)
May 2012 Pages: 1... 2425262728... 41
  Archived months: [apr2012] [jun2012]

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