49,761 Topics
| |
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. … | |
hi frnds, how can we connect to a sql server database using C++ program.can anyone pls post a code for this ... | |
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 … | |
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 … | |
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] | |
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 … | |
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; // … | |
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 … | |
[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 … | |
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 … | |
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, … | |
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 … | |
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> … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
can i access cmd command from cpp? for example, C://Program Files/asdf.exe | |
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 … | |
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 … | |
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. … | |
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 = … | |
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 … | |
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 … |
The End.