49,761 Topics

Member Avatar for
Member Avatar for Silvershaft

I got a little problem I am making a little admin tool for my server that you can edit player stats and things with it. Problem is if I like make string Test and assign value "Hi" to it. How can I use the string inside my IMPORT INTO statement. …

Member Avatar for JasonHippy
0
93
Member Avatar for arunnic

hi frnds, how can we connect to a sql server database using C++ program.can anyone pls post a code for this ...

Member Avatar for marco93
0
239
Member Avatar for group256

Hello everyone, I'm writing a code and in there and I need to convert a char which contains any of "+", "-", "*", "/" into a real operator. As an example let's say I have: [code] char myOp = '+'; int op1 = 10, op2 = 20; cout << op1 …

Member Avatar for group256
0
4K
Member Avatar for packrisamy

i am little bit confused to access the class function through pointer. Whether Consider the pointer variable Class Ball { Void Do() { } } Void main() { Ball &r = *(new Ball ); } Can i access via r.Do(); r->Do(); Which way is correct and please explain me why …

Member Avatar for macobex
0
139
Member Avatar for number87

what's wrong with this line when I try to compile in C++?? The src code was originally in C. It gets an expected identifier error with my c++ compiler [CODE]typedef enum {false, true} bool;[/CODE]

Member Avatar for wildgoose
0
364
Member Avatar for mrnutty

Can someone help me out. I haven't dealt with pointer function much. Here is the class definition for which it resides, although its only part of it. [code] template<typename Type> class vec2D { private: bool (*drawFunc)(unsigned int ID); unsigned int Col_id; public: //Enables each object member to have its own …

Member Avatar for mrnutty
0
140
Member Avatar for gretty

Hello I am reading a text file & I want to make a for loop, loop repeatedly until the end of the file. Is my code below correct, in terms of syntax? Is this possible to do. [CODE=cplusplus] #include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; // …

Member Avatar for gretty
0
2K
Member Avatar for jeezcak3++

Hi, I am new to the forum. I am in the learning process and I will stick around until I learn everything from you. I try to create count down starting at 15 seconds. But when I compile, "clock identifier not found." I am !ondering the same thing, too. Perhaps …

Member Avatar for mrnutty
1
779
Member Avatar for sara9111

[B][COLOR="Red"]Hi...There Wts that mean in C++??Wt I have 2 do in the program??Wt I should write? write a C++ program that test parts a and b. (Declear additional verable in the function main, if necceccaey). # include <iostream> using namespace std; int one (int x, int y); double two (int …

Member Avatar for mrnutty
-2
97
Member Avatar for muzhe

Hi all, I am writing a program in C++ to generate input files for a two programs for testing purpose. I can generate data files individually by specifying the name. What I want is to be able to run the program once and it generates a number of data files …

Member Avatar for Ancient Dragon
0
803
Member Avatar for sara9111

Hi There.... # include <iostream> using namespace std; int one (int x, int y); double two (int x, double a); int main () { int num, x, y; double dec, a, first; cout<<"please enter two integers numbers: "; cin>>x>>y; cout<<"please enter a double number: "; cin>>a; num = one (x, …

Member Avatar for sara9111
0
181
Member Avatar for tazboy

I have a person class: [CODE=C++]class person { protected: string fname, lname, gender bdate; public: person(); // getters and setters };[/CODE] and a student class: [CODE=C++]class student: public person { private: string major, grade; public: student(); // getters and setters }[/CODE] } I'm not sure how to make the implementation …

Member Avatar for Stefano Mtangoo
0
132
Member Avatar for lotrsimp12345

Random numbers appear and i have no idea where they are appearing from. Problem is in << operator. Not sure how to fix it. Main #include <iostream> #include "Format.h" using namespace std; int main() { Format format; format.setJustification('l'); format.add_word("one"); format.add_word("two"); format.add_word("is"); cout<<format; return 0; } Implementation #include "Format.h" #include <vector> …

Member Avatar for lotrsimp12345
0
111
Member Avatar for licktress

Hey guys, I'm creating a program that prompts the user to inputt the name of the process that they wish to end, but the problem is, the system("TASKKILL") function won't accept variables. for example: [CODE]string cProcess; cout << "Enter the name of the process that you would wish to end" …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for fictitiousforce

Up until now, I've been using the old C way of sharing objects by passing pointers instead of references. But I've run into some trouble. Here's a simplified case of what I'm trying to do: [code=c++] #include <iostream> class Test{ protected: int a; public: Test() : a(0) {} void change(int …

Member Avatar for Asafe
0
80
Member Avatar for azjherben

This is a Winsock select() server in C++ (I'm posting in this forum so of course) and I have two problems with it. (title) 1. My select olny returns above 0 when a connect request is recived, the rest of the time it returns -1. So I can olny recive …

Member Avatar for azjherben
0
167
Member Avatar for Nogat21

Hey All, i'm doing this project in c++ consisting in reading an mp3 file and extracting the informations within it. Thing is i'm starting to be pissed by this persistent error that stops me from test the code. This error is, as far as my (limited) knowledge goes, caused by …

Member Avatar for Nogat21
0
171
Member Avatar for jko2326

This program is from the collopy book. I just had to type it in and create a text file so it would compile correctly for a class assignment which I did. But the very last record will not be shown when i compile. This is what is in the txt …

Member Avatar for jko2326
0
133
Member Avatar for lehe

Hi, Here are my two questions: 1. I am now learning to manage my code with CVS, and I just want to make a repository for my C++ files, Makefile and bash and python scripts only, not the object files and executables. So I made several subdirectories under my project …

0
50
Member Avatar for Smoking Bros

Hello! I kinda just fell over this great C++ plug-in for Visual Studio 2008 C++, Dark GDK. I installed it and that DirectX, August 2007, shit and it was downloaded and installed correctly with no errors, but still it doesn't show the new Wizards template when I start a new …

Member Avatar for Ancient Dragon
0
191
Member Avatar for mohd9789

Hello, I'm working on a project for my master degree that uses codes called CurveLab [url]http://curvelet.org/software.html[/url] I don't know how to install it to my system. I tried to follow the steps but I filed to do so. Can anyone help me with doing that? I'm really in need to …

Member Avatar for mohd9789
0
90
Member Avatar for AirGear

can i access cmd command from cpp? for example, C://Program Files/asdf.exe

Member Avatar for necrolin
0
110
Member Avatar for tnind

Hi, I am pretty new to C++ but have lots of experience in java/c# and know the basics (classes/structures/pointers etc) but am having some problems linking to external source libraries. I am trying to use something called the openframeworks which I have downloaded and I need to include "\libs\openFrameWorks\ofMain.h" but …

Member Avatar for JasonHippy
0
122
Member Avatar for hayatihamid

i've been trying to store a coordinate in a vector array, and reading the coordinates from a .txt file. there was no error, but the size of the vector is still 0 (i'm sure there was no value in the vector array) here's my code: [ICODE]#include <stdafx> #include<iostream> #include<fstream> #include …

Member Avatar for hayatihamid
0
3K
Member Avatar for thiemebr

I have an AlphaSeats [60] array and the loop I did, changes the value to 0 and it's suppose to stop when it reaches the index 59 but it goes on and end up changing other variables - PartyName, PartySize and Airplane value to 0 too... Here is the code. …

Member Avatar for Reprise
0
78
Member Avatar for C.c

can help me ?? i want to loop to "Please choose the section you want" after all the calculation, but it only loop to "key in the number of adults"..Please help.. #include <iostream> using namespace std; int main () { int adults1, childrens1, adults2, children2, adultstotal, childrentotal, choices, total_ticket1 = …

Member Avatar for ithelp
0
116
Member Avatar for saminchat

Hi all, I am a new software developer that recently joined my company right after I finished my school. We use Microsoft Visual C++ for development. While at work, I found that many co-workers are very experienced in software development; they can code quickly to solve the problems. I feel …

Member Avatar for ithelp
0
107
Member Avatar for umair125
Member Avatar for kvprajapati
0
115
Member Avatar for umair125
Member Avatar for faranshabbir

Hello, I compiled my trayicon utility c++ code in visual studio 2005 express edition and tray icon balloons showed up successfully but later I deleted my firewall, switched on to windows firewall and now I am on another firewall software. Now i ran my same project and balloons showed up …

Member Avatar for faranshabbir
0
170

The End.