49,757 Topics

Member Avatar for
Member Avatar for guerilladong

hello,any greate man can tell me the difference between cxx and cpp,h and hxx? waiting the answer,thanks

Member Avatar for Ancient Dragon
0
58
Member Avatar for Synthuir

[CODE]#include <iostream> #include <string> #include <time.h> #define newline '\n' using namespace std; char ch; int main() { cout<<"*A Signed on\n*I Signed on\n"; cout<<"\nA:It's you again, isn't it?\n>I:"; string ent1; cin>> ent1; while(ent1 == "yes" || ent1 == "Yes" || ent1 == "YES") { cout<<"A:No...\nA:It's been so long since you last …

Member Avatar for VernonDozier
0
72
Member Avatar for R3B3L

Does anyone know what's C++'s SETW() Equivalent in Visual Basic .NET ? SETW: Sets the number of characters to be used as the field width for the next insertion operation. Is there anythign similar in VB.NET. Note: I want to use in a ListBox. I've tried using: [CODE] Dim fmtStr …

Member Avatar for selvaganapathy
0
254
Member Avatar for Clockowl

Is it possible to put compile-time conditional code in template functions? Kinda like, [code=cpp] template <class T> void print(T &foo){ cout << foo; #if T == float cout << " is a float." << endl; #endif }[/code] Something like that, I hope I made myself clear. Thanks in Advance,

Member Avatar for Clockowl
0
91
Member Avatar for Congartis

Greetings! My task is to impement [url=http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm]Bresenham's line algorithm[/url] by mapping floats to integers, but be able to draw lines of any slope, including horizontal (zero slope) and vertical (infinite slope) lines. (The near-bottom of the page has an integer-only version of this.) My implementation of the linked pseudocode works …

Member Avatar for Congartis
0
642
Member Avatar for princess_19

I really need some help!! I do not understand anything! I do not even know how to start!!! Can any1 help plz!!! “Moore’s law describes a trend in the history of computer hardware. The number of transistors that can be inexpensively placed on an integrated circuit is increasing exponentially, doubling …

Member Avatar for Narue
0
144
Member Avatar for owobass

Please I'm trying to create a sales management software and am experiencing problems trying to create a table like we have on spreadsheets for enterring sales data.I'm using the Win32 API.Could any one give me an idea on how to implement this ? owobass

Member Avatar for marco93
0
697
Member Avatar for nizbit

I was wondering if this code is correct syntax for function parameters in a class? [CODE] class myclass { private: char mystring[50]; int length(char string[]); public: int yourlen(){ return length(_string, _string); [/CODE] I know later in my code, I would have something like this: [CODE] mystring A; char string[50], string2[50]; …

Member Avatar for Sky Diploma
0
122
Member Avatar for kylcrow

Hi everyone. I wrote a Rock Paper Scissors program my first quarter of C++ two years ago, and now I have a job at a programming job. I showed someone my little easy program and they challenged me to make a verson 2.0 with AI and a gui. The Gui …

Member Avatar for kylcrow
0
266
Member Avatar for guitarcrazy44

I have signed up for high school online c++ courses, which has proven to be a mistake, due to my inability to grasp the content. I would like to keep learning, but as the semester draws to an end, I must catch up on my work. This is a project …

Member Avatar for Sky Diploma
0
146
Member Avatar for nesfrank

hi guys, I am a student that I am learning data structures. My professor asked me for this assignment Write a recursive function that will be able to read and dsiplay the elements of an array and the function should not have more than one loop whether it is one …

Member Avatar for Sky Diploma
0
67
Member Avatar for Jawahar prabhu

hi i'm new for c++, i tried to work with mouse pointer on my run window but i dont know how to make interrupt to do it. thanks

Member Avatar for grumpier
0
79
Member Avatar for Infeligo

Hello, I want to test several small apps and would like to group them into one Eclipse project. That is, I have several source files each with a main function. Can I configure the builder to compile each of the source files?

0
62
Member Avatar for clutchkiller

[url]http://www.mixsoftware.com/product/cpvideo.htm[/url] Can anyone tell me if this video and course work is helpful at all? Have any of you guys personally purchased this, or do you believe it to be a waste of time? Keep in mind im fairy new to programming. Thanks

Member Avatar for Ancient Dragon
0
152
Member Avatar for DeboJackson

Hello everyone. I know this is a C++ forum not MySQL forum but I need help with the C++ library for MySQL I am hoping that there will be people here who are knowledgeable about MySQL++. My problem is that I can't get the g++ compile to link to the …

Member Avatar for Normand Bedard
0
216
Member Avatar for skabaw

How to get the invoked command and parameters as one string instead of a list of argv-s (especially gcc under Linux)?

Member Avatar for Narue
0
66
Member Avatar for MAD_DOG

How long did it take you to learn C++ or C or VB. I learning some what C for my Linux class.

Member Avatar for Nick Evan
0
2K
Member Avatar for winbatch

Hi, Trying to play with multithreading by taking some of my existing apps and converting them over. In doing so, I noticed a strange phenomenon that I've been able to reproduce in a very simple program. let's say I create 2 threads. Each thread simply does a for loop from …

Member Avatar for Ancient Dragon
0
140
Member Avatar for man4ish

#include <iostream> #include<string> using namespace std; class substr { public: void getsubstr(char* b, char* db) { char* stpos = strstr(db,"gi|"); int pos = db-stpos; char* end = strstr(db,"|ref"); int endpos = abs(db-end); b= new char[endpos-pos+2]; int i=pos+3; for(;i<endpos;i++) { *b++=*(db+i); } *(b+i)='\0'; } }; int main() { substr* s; char* …

Member Avatar for iamthwee
0
79
Member Avatar for PrAsTiWaRi

Hello All, I am trying to compile the C++ program. But I am getting weired compilation error. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1>------ Build started: Project: HelloPras, Configuration: Debug Win32 ------ 1>Compiling... 1>HelloPras.cpp 1>c:\documents and settings\prash\my documents\visual studio 2008\projects\hellopras\hellopras\hellopras.cpp(15) : error C2819: type 'JavaVM_' does not have an overloaded member 'operator ->' 1> c:\program …

Member Avatar for jencas
0
493
Member Avatar for Thomasio

I´ve been messing around with edit controls like mad, but I can´t get it to work. Only Problem, I don´t like the plain white background Windows gives an edit by default, so I´ve created a graphical one. Now I have a main Window containing some child windows, where one of …

0
62
Member Avatar for TheBeast32

Hi, I'm making a program that can send an SMS message to a cell phone using any number that the user chooses. I have been successful sending a message with an SMTP server that says it's from an email address, but I need to make it show up as a …

Member Avatar for TheBeast32
0
87
Member Avatar for ashblynn02

I need major help on this. I am so lost in C++ and don't understand what is going on. I have the first three done! Please help, I am begging! 1. Draw a UML diagram for the follow class: --Class name is game --Privage integer member called level --Public constructor …

Member Avatar for ashblynn02
0
150
Member Avatar for defychaos

Hey guys & gals, I have a homework problem, and I'm having problems looping the month. I will share the problem, then what I've got so far. Thank you in advance for any advice :) The problem is a typical wolf/rabbit population, but the solution asks for the population every …

Member Avatar for defychaos
0
201
Member Avatar for AutoC

Hi, I need to implement a dynamic array of pointers to structures.Here's what I've done [code] struct node{ int freq; node *lptr; node *rptr; }; class M { private: node **A; int length; public: M() { length=10; A=new node*[10]; } M(int a) { length=a; A=new node*[a]; } [/code] Firstly, am …

Member Avatar for Narue
0
94
Member Avatar for sanfan49er

CIS350 Project Choose one O(n log n) and one O(n2) sorting algorithm. Choose a third algorithm of any time complexity. For each of the three algorithms you have chosen, implement the algorithm. Then, write a short piece of code that will generate the following: 1. A file of 1000 random …

Member Avatar for Alexpap
0
169
Member Avatar for Suetan

Here's my problem. I'm writing a program that has the user input a string. That string is then compared to the values in a string array within a class. Here's a sample of what I'm trying to do (sorry about the spacing. I use tabs, not spaces): This is my …

Member Avatar for Suetan
0
233
Member Avatar for rkumaram

Hi I have created a small program which just adds two char* with the help of overloaded + operator, but getting problem with destructor. [CODE] #include<iostream> #include<string.h> using namespace std; class base { private: char* name; public: base(); ~base(); void display(void); base(const char*); base(const base&); base operator+(base foo); }; base::base() …

Member Avatar for rkumaram
0
111
Member Avatar for kimn

Hi all. I've written a bit of code to open a file and read from it. The simple version works: [code=cplusplus] ifstream conFile("code/constants.h", ios::in); while (getline(conFile, line)) { //etc. Process file.......... [/code] However, I really want the program to look for the file constants.h in the current directory and if …

Member Avatar for kimn
0
57
Member Avatar for Prabakar

I have wrote a simple program in c++ that will constantly read a record from a database. Once there is a change in a field the program will open a executable file. An instance of this program or a copy of this program has to run in [B]at least[/B] 80 …

Member Avatar for Prabakar
0
222

The End.