49,757 Topics

Member Avatar for
Member Avatar for rohank23

Hi , I am trying to insert data into a CLOB column, but I get error of missing comma because my CLOB data value has lot's of comma and other special characters which might need to be escaped. Is there a easier way to do this, without writing code to …

Member Avatar for rohank23
0
107
Member Avatar for dotnabox

Or at least I [I]think [/I]that's the issue. Essentially, I am in the process of overloading operators and allowing users to enter data directly into the class objects. I was able to do the first one so I followed the same pattern and I get a segmentation fault when I …

Member Avatar for dotnabox
0
232
Member Avatar for Skeen

I've been having some thought, like, if I run a program, and I'm exporting a pointer to a variable "a" to a file, and I reads that information with another program, wouldn't the second program be able to modify "a" in the first program using that pointer? - Like the …

Member Avatar for Frederick2
0
90
Member Avatar for ab00120

Hi there, I am currently attempting to enhance an old program to use Windows Forms in C++. From what Ive read it would be preferable to use Visual Basic or C#; however in its current state, combined with my lack of experience in C#/VB this would be a real struggle …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for NinjaLink

I need help with the programming segments below, so I can study for them...I showed my effort on trying to do them. However, I don't believe they are right. If someone can assist me with this, I will definitely appreciate it. [B]1. Determine if a word is a palindrome or …

Member Avatar for NinjaLink
0
176
Member Avatar for Ponomous

Hi, So i have written my code to solve the quadratic equation and it works. The thing I need to do is to read values for 3 variables from an input .txt file until the end of the file and output the answers for each set of variables. The variables …

Member Avatar for Fbody
0
204
Member Avatar for skarocks47

What is the coding to loop the program after a key press at the end of the program?

Member Avatar for tkud
0
87
Member Avatar for techick

The program is suppose to read from a text and count each letter of the alphabet and the counter_other counts everything else except whitespace. I'm having trouble putting this together, especially the switch. We have not gone over strings yet in class so I don't think I'm suppose to use …

Member Avatar for Ancient Dragon
0
91
Member Avatar for newbie_to_c

I have to read the maximum value from the text file that is comma separated. I tried to do several things, but I am not sure what I am missing. I would appreciate if any of you help me out. The text file is created by another program. Here is …

Member Avatar for newbie_to_c
0
159
Member Avatar for fraandres

getting a error saying the variable 'bonus' is being used without being initialized can anyone how do a initialized .... i just cant find a way [CODE] #include<iostream> #include<iomanip> using namespace std; #include<string> int main() { const double priceticket= 5.00; double numtick, percentage, total,revenue,balance,bonus; string charityname; cout<<"How many tickets were …

Member Avatar for Dave Sinkula
0
409
Member Avatar for potatosoftware

How do you measure the performance of your C++ perf-critical code ? Are you relying on automatic profilers or do you resort, for particular reasons, to compile time methods ? If today, profiling is still an issue to you, then I would announce to you the availablity of easy profiler …

Member Avatar for jbennet
-1
88
Member Avatar for gottlieb78

Hi I´m doing homework and it ask for the strcpy function by using pointers. This is my code but I always get some runtime error, don´t know why. [CODE]#include <iostream> using namespace std; void strcpy2(const char* source, char* destination); int main() { char* source = "Hello world"; char* destination; strcpy2(source, …

Member Avatar for Frederick2
0
394
Member Avatar for pavan146
Member Avatar for kingstrider

hey guys can sumone please help me by telling wat exactly is the syntax for a do while loop....for example if v want to to ask the user integers again and again till a condition is satisfied...plz help...thank u this is wat i have ritten but the loop never continues …

Member Avatar for loneal
0
82
Member Avatar for Towely

I'm trying to make a function that adds the digits of a number together and finds the sum of them. For example, for the number 9211, I want to add 9 + 2 + 1 + 1 and output the sum. Here's my function, I can't figure out where I …

Member Avatar for kri_prasad2000
0
181
Member Avatar for rajpal_jatin

Hello, Our existing code sends text file to printer successfully. However now we need to send RTF file (containing some text and boxes) instead of text files through C++ coding. When we are using the existing C++ code then we are getting the unwanted data within the curly braces{} at …

Member Avatar for abhi_elementx
0
98
Member Avatar for meme 9

hello every body >>> can you help me pl..pl..??? how i do this project in c++ ? About twelve million notebook computers were sold during the year 2000. Table gives the market share for the four largest vendors. write a program that displays the number of computer sold by each …

Member Avatar for abhi_elementx
-3
138
Member Avatar for Skeen

So I'm working on this OpenGL 3D Graph program, and like, I ran into some trouble, since I wanted it to support fullscreen, so I made the following; [CODE] int main(int argc, char *argv[]) { ... // Some stuff glutSpecialFunc(SpecKey); ... // More stuff } [/CODE] Which is calling the …

Member Avatar for Skeen
0
1K
Member Avatar for UKmason

I cant figure out how to make a function that correctly solves the max height of a parabola I know height = distance * tan(angle) - (gravity * distance^2) /2 *( speed * cos(angle))^2 I try to put this in and I get like 1.2 trillion I think im doing …

Member Avatar for Skeen
0
280
Member Avatar for rino699

The screen clean very fast cant see it move... how can make it looks btr? [CODE] int i,j,k,a; char logo[9][59]; for(a=0;a<59;a++) { logo[0][a]=262; logo[8][a]=262;} for(a=0;a<59;a++) { logo[1][a]=' '; logo[7][a]=' ';} strcpy(logo[2]," @@@@@ @ @@@@ @@@@ @@@@ @@@@ @@@@@ @@@@@ @ @ "); strcpy(logo[3]," @ @ @ @ @ @ @ …

Member Avatar for Skeen
0
98
Member Avatar for narendra.shah

hey frnds here...... i need some help..... i need a project in database or networking...... in c++/.net/java please help.....any effort will be highly obliged.....

Member Avatar for ithelp
-2
93
Member Avatar for dylank

Hi, there are several threads on this issue, but none seem to give me a good answer. My current code is this (This program plots points on a graph) : [CODE] //Put line equasion into arrays. #include <iostream> using namespace std; double getData(int counter, double m, double b) { int …

Member Avatar for invisal
0
1K
Member Avatar for Niner710

Hi, I have a simple question on trying to set shared ptr to NULL. I get an error(binary '=': no operator found which takes a right hand operand of type 'int') when I do this... [code] typedef std::tr1::shared_ptr<A> A_smrt; A_smrt = NULL; [/code] Why is this wrong?

Member Avatar for abhi_elementx
0
104
Member Avatar for BenJammin89

This program is suppose to display MPG's (total), and the combined MPG of all the total MPG's you input. [code] // Exercise 4. 12: ex04_12.cpp #include <iostream> using namespace std; int main() { double mpg; double gallons; double combinedMpg = 1; double total; while ( mpg != -1 ) { …

Member Avatar for BenJammin89
0
129
Member Avatar for qwertymk

this is what I made for a = operator: [code] matrix matrix::operator= (double a[]) { for (int i = 0; i < rows * clms; i++){ //std::cout << i<< "=" <<a[i] << " "; *(x +i) = a[i]; //std::cout << i<< "=" <<x[i] << " "; } return *this; } …

Member Avatar for qwertymk
0
121
Member Avatar for sgw

In the following very simple program, if the input is [I]not [/I]an integer (e.g. a character symbol), then the output screen would flash and go away. Is there a way to have the output "bad" when one enters a non-integer, just as when one enters a negative number? Thanks in …

Member Avatar for sgw
0
250
Member Avatar for Brandon515

hey guys, ok here's the situation. i need to turn a C++ style string into an integer now i've used altoi and strtol but they give me different numbers. heres my code [CODE] cout << file << endl << file.c_str() << endl; // debugging purposes num = strtol(file.c_str(), &pEnd, 10); …

Member Avatar for Brandon515
0
127
Member Avatar for blackst0rm

I am using Visual C++ Express Edition. I have 3 files: (A) main.cpp, (B) prototypes.h (C) implementation.cpp. main.cpp includes prototypes.h and prototypes.h includes implementation.cpp. When I go to "Start without debugging" things screw up because in (C) implementation.cpp the compiler complains that it can't find the data fields. e.g. it's …

Member Avatar for Ancient Dragon
0
257
Member Avatar for suganthan901307

[code=c++]#include<iostream.h> #include<conio.h> void main() { int x[5]={1,2,3,4,5},y[5]={5,4,3,2,1},result [5]={0,0,0,0,0}; int i=0; while(i++ <5) result[i]=x[i]-y[i]; clrscr(); cout<<"\nThe contents of the array are :\n"; i=0; do { cout<<'\t'<<x[i]<<'\t'<<y[i]<<'\t'<<result [i]<<"\n"; i++; }while(i<5); getch(); }[/code] OUTPUT: The contents of the array are: 1 -1 0 2 4 -2 3 3 0 4 2 2 5 …

Member Avatar for Ancient Dragon
-5
117
Member Avatar for jsmarts

my assignment is to make a triangel like so: * ** *** **** ***** I have done so but cannot get my command window to stay open. It pops up and closes right back out. heres my code can anyone help? #include <iostream> int drawBar(int); int main() { std::cout << …

Member Avatar for Shinedevil
0
147

The End.