49,766 Topics

Member Avatar for
Member Avatar for headedtomexico

So I've got a server host that runs my MySQL 5.1 db. I have a stored procedure in it, its similar to [ICODE]CREATE PROCEDURE CountUsersByFirstName(IN SearchName TEXT, OUT Count INT) BEGIN SELECT COUNT(*) INTO Count FROM Users WHERE Name = SearchName; END[/ICODE] the syntax of that may be off as …

Member Avatar for headedtomexico
0
371
Member Avatar for OwenRoberts

Hello again. I am wanting to make a program that handles complex numbers. I have created a class that represents a complex number and called it, ComplexNum. I have tried to create a second class that is the calculator and takes two ComplexNum objects as input and returns a third …

Member Avatar for ShawnCplus
0
110
Member Avatar for ninjaneer

background: I am currently working on a project that will require me to grab some audio from an electronic stethoscope and process it for use within a larger program -- I've been looking into ways to do this and ran into a post on MSDN that was talking about [QUOTE]"taking …

0
107
Member Avatar for PC_Nerd

Hi guys. I'm aware of the requirement to specify std:: as the namespace for string in some way ( whether it be using namespace std etc) - but the following error has stumped me as to its cause. [CODE] $ g++ Conf.cpp Conf.cpp:33: error: ‘string’ in namespace ‘std’ does not …

Member Avatar for StuXYZ
0
6K
Member Avatar for DeanoJ

I need a firm answer on what OS, Linux, Unix, ect.. and software development code which will actually work in 64bit, mainly using the unlimited addressing capabilities. Now there are a LOT of claims out there and I've tried a few languages, although higher level, but ultimately run shot. My …

Member Avatar for Hiroshe
0
131
Member Avatar for lancevo3

Been working with operator overloading for the first time and am running into quite the standstill with this one. I finally got rid of the code I had written and decided to start from scratch. If anyone has any advice on how to code this for me it be a …

Member Avatar for lancevo3
0
151
Member Avatar for abby2589

can i ask for a help? can you give me an idea to improve our program? another feature? our program is about computing a telephone bill.. -thanks!-

Member Avatar for Lerner
0
102
Member Avatar for AngelG

hello, i am trying to create a simple C++ application, (not a DOS application), i would like to to know .. how could i output inputs field and then process what the user typed on that field? -Angel G

Member Avatar for AngelG
0
81
Member Avatar for urbancalli

our project is to make a lexical analyzer. I am using DevCpp and it is in C. I barely know the idea of the analyzer. Can someone please ive me a clue on where to start in this project. I think if I will know where to start, I can …

Member Avatar for siddhant3s
0
183
Member Avatar for walter clark

Why can't I declare this near the top of the Form1.h file... int trackArray[4][999]; It strikes error C4368; something about mixed type. What is mixed about the types? Walt

Member Avatar for Ancient Dragon
0
129
Member Avatar for atch

Hi, I'm quite new to C++ and I'm trying to write a function which would change uppercase letter in char[] to lowercase. Inside this function everything is fine but when I leave it, contents of char[] is not changed. Any ideas why? Also when I try to delete local pointers …

Member Avatar for atch
0
131
Member Avatar for shealy

I have 2 binaries - a java binary that requests a microsoft word doc from a c++ binary. The C++ binary opens the word doc in binary mode, reads x no of chars and returns chars to java binary. Java binary eventually receives all data and writes data using filestream …

Member Avatar for Krushnat
0
547
Member Avatar for dumrat

Hi, I am so frustrated by this error and I don't know how to solve it. Hope someone helps! I have a dynamic lib (Call it D) which is loaded at runtime with the dlopen() function inside a static lib (Call it S). There is a header file that contains …

Member Avatar for tux4life
0
116
Member Avatar for super.mina

I am learning Object oriented programming using C++ , i wonder if there is any site or book that have open source programs to teach OOP in C++ ....... I want to learn how to use OOP in programming how to implement it ..... If any one can help i …

Member Avatar for jencas
0
88
Member Avatar for thr

Hello please help me I want to declare object of base class above function main or global variable( object) and use this object in derived class like this: class X { ... } class y : public X { void func(); } void y::func() { a[1][0] = &c; //compiler error: …

Member Avatar for csurfer
0
237
Member Avatar for vickdini

Hi! I'm trying to search a binary file for some hex values and then replace them, using C++ CLR. Reading and writing the file works, but I just haven't found a way to search and replace successfully. Here is the relevant code I've created: [CODE] array<Byte>^ fileContents = File::ReadAllBytes(item); textBox2->Text …

Member Avatar for Ancient Dragon
0
830
Member Avatar for OwenRoberts

Hello DaniWeb! My first post to you. I have a question about an undefined reference error I am getting. Currently I am studying from Dietel and Dietel C++ How to Program 4th ed, and on page 421 of chapter 6 I am working on the program they have in the …

Member Avatar for jesseb07
0
385
Member Avatar for apease11

This belongs in both C and C++ forums, but it's more of C++ (I think) so I'll keep it in here for now. I'm working on a C++ program to extract files that I am constantly compressing and testing (releasing software for beta testers to take a look at). I …

Member Avatar for apease11
0
171
Member Avatar for nanchuangyeyu

Hi, My coding objective is quite simple: design a function to write the data in a matrix into files. And here is my code: [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int matwrite(float* mp,int row_sz,int col_sz,string mat_file); int main() { // create a simple binary file first …

Member Avatar for Ancient Dragon
0
188
Member Avatar for AirGear

can we compile b.cpp by running a.cpp? i have koolplot project to draw plot. this plot should appear in the middle of the program, and if the plot is closed, the whole program terminates immadiately. To avoid that, i tried to make 2 cpp files. One for the main, and …

Member Avatar for AirGear
0
419
Member Avatar for C++ Obliviator

Hi! I'm working on a project and need a way to add a newline to the input stream, by code and not by user's help. The user should not need to do anything, I need a simple line of code that places a newline in the input stream, but I …

Member Avatar for C++ Obliviator
0
138
Member Avatar for funjoke88

1. Write an iterative and a recursive version of the Fibonacci series algorithm. You need to ensure the correctness of the both algorithms. Both algorithms should produce similar output if given a similar input. a. Measure the performance of the two algorithms by measuring the time for both algorithms to …

Member Avatar for NathanOliver
0
468
Member Avatar for NimaJ

I am a newbie to this forum, and this is actually my first post. I am looking for a way to get the object of the currently running thread in boost. To make this short, consider a case in which one wants to implement a semaphor or a condition variable. …

Member Avatar for NimaJ
0
134
Member Avatar for heroic

Hello, i am trying to create gmail like alerts in visual c++ which will show information fetched from a php file on the internet, and will be able to send the current;y playing song to the php script... any help is really welcome!

Member Avatar for heroic
0
106
Member Avatar for Pauliuw

Hello, i where making a game, and i needed a vector that holds class objects, i do the thing (below), and i thing i did it right, but it seems not and i dont know whats wrong :( [code]#include <iostream> #include <vector> #include <string> using namespace std; class Races { …

Member Avatar for Pauliuw
0
4K
Member Avatar for nirav99

I made a program... now i have to put one validation. "while program is executed, if i press "Esc" button (hardly situated in top-left corner) i will be out of my program, means its exicutation directly takes end." i tried by taking its ASCII value but i requires also ENTER …

Member Avatar for tux4life
0
156
Member Avatar for Ragoune

Hi, To get straight to the point: I'm new at C++. I have quite some programming experience, mainly in GML [Game Maker Language], PHP and Visual Basic. I use GML frequently, almost everyday. But it's problem is, it does not have a lot of functions. But you can use a …

Member Avatar for Ragoune
3
191
Member Avatar for TrintiyNoe

Is there a way to use one type of iterator for another? like vector<int> iterator to vector<string> iterator,also any way iterator can be used like a interger?? coz i wanna do some mathematical manipulations on an iterator.coz i cant,i use a variable [CODE] int i;int ss=string.size() for(int i=0;i<ss;++i)[/CODE] but i …

Member Avatar for praveenraj1987
0
74
Member Avatar for DNDSH

Really i need help to complete my program but i don't know how to fix the errors .. the program is about 2 Dimensional Arrays matrix operations i wrote the whole program but there is some mistakes plz i need help to finish it im too confused !! [ICODE] #include …

Member Avatar for Salem
0
129
Member Avatar for sfgal

As you can tell....I am a beginner.... Please help me get past this problem. I am not sure how to compare strings for equal signs. I am at a brick wall. I have some unsorted albums with the name of the album, release date, CD Number and unsorted songs. I …

Member Avatar for Ancient Dragon
0
90

The End.