132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nottoshabi

I'm getting this error from this code. I never seen this before. [code=c] #include <cstdlib> #include <string> #include <iostream> #include "../incl/rect.h" #include "../incl/position.h" using namespace std; // function prototypes void displayRectangleAttributes( const RectangleShape &r ); void displayRectangleAttributes( const RectangleShape &s ); string convert( const color &c ); // int main() …

Software Development c++
Member Avatar for Ancient Dragon
0
162
Member Avatar for raj157

well the problem is i want to write the person's name from preson class to instructor class using inhertiance, i have come up with the following code but gives error .. can someone tell me what am i missing or what can be done. its like sharing from person class …

Software Development c++
Member Avatar for raj157
0
121
Member Avatar for Hellodear

[COLOR=gray][B]hello guys,[/B][/COLOR] [COLOR=gray]I am a newb in VB.net. Can anybody suggest the website providing basics and tutorials of this language. I have had a look at the net. But didn't find any loop. Hope somebody would respond.[/COLOR] [COLOR=gray]regards,[/COLOR] [COLOR=gray][B]indian[/B][/COLOR]

Software Development vb.net
Member Avatar for jbennet
0
140
Member Avatar for revenge2

Hello there, I have started learning c++ and the book im reading shows different ways of writing the "hello world" programme, i just want to know how and why these are different. [CODE] #include <iostream.h> int main (); int main () { cout <<"hello world!!"; return 0; } [/CODE] in …

Software Development c++
Member Avatar for jbennet
0
165
Member Avatar for kpack08

Warning 1 warning C4390: ';' : empty controlled statement found; is this the intent?

Software Development c++
Member Avatar for Salem
0
209
Member Avatar for Lisi

I have home work due soon and have written most of the code there are only two parts i am having trouble with: 1.Can anyone tell me how to read the even values of an array, add them and then add the amount of even numbers there were in the …

Software Development java
Member Avatar for Lisi
0
68
Member Avatar for fonzali

hi , below is my program which is supposed to accept 3 different numbers , add them up and print the result but what it does is that it takes the first number and mutiplies that by 3 , where have I gone wrong ? [code=python] from Tkinter import * …

Software Development python tkinter
Member Avatar for fonzali
0
870
Member Avatar for katzumi_r

hi, im new in programming and C++ and i have a homework and i need a little help on how to do it will u please just tell give me some suggestions on what i should do and ill try to do it myself This is what i have to …

Software Development c++ queue
Member Avatar for vijayan121
0
157
Member Avatar for winbatch

Is there a way using file handling functions to search within a text file to find the position of certain text WITHOUT having to read each character/line and evaluating it? For example, let's say I have a file of 'messages', where a message has a distinct start and end characters. …

Software Development c c# c++ file-system
Member Avatar for vijayan121
0
365
Member Avatar for civil1

hi. can you please tell me how to count digit which has genatreted by random number program? i.e= each time occurance of every digit means1,2,3,4........in a genareted random number? if you want to saw my effrot in this stuff,i can saw you it. thanks in advance to any one who …

Software Development c
Member Avatar for Lerner
0
82
Member Avatar for yaya_star

can someone tell me how can i fix the error in : [COLOR=#0000ff]Imports[/COLOR][COLOR=#000000] System.Web[/COLOR] [COLOR=#0000ff]Public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Class[/COLOR][COLOR=#000000] Form1[/COLOR] [COLOR=#0000ff]Private[/COLOR] [COLOR=#0000ff]Sub[/COLOR] Button1_Click([COLOR=#0000ff]ByVal[/COLOR] sender [COLOR=#0000ff]As[/COLOR] System.Object, [COLOR=#0000ff]ByVal[/COLOR] e [COLOR=#0000ff]As[/COLOR] System.EventArgs) [COLOR=#0000ff]Handles[/COLOR] Button1.Click smtpMail.Send([COLOR=#800000]"someone@microsoft.com"[/COLOR], [COLOR=#800000]"jesse@contoso.com"[/COLOR], [COLOR=#800000]"Subject line"[/COLOR], [COLOR=#800000]"Message text."[/COLOR]) [COLOR=#0000ff]End[/COLOR] [COLOR=#0000ff]Sub End[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Class[/COLOR] [COLOR=#0000ff][/COLOR] [COLOR=#0000ff]the error in smtpMail [/COLOR]

Software Development vb.net
Member Avatar for yaya_star
0
98
Member Avatar for rapperhuj

Ahmmm .. I'm a newbie in C++ programming, and my BOSS wants me to do a program that accepts a COUNTRY CODE and its output must be the COUNTRY NAME of that COUNTRY CODE and following on the COUNTRY NAME is there Biggest TELEPHONE OPERATOR..:?: ****************************************************************** OUTPUT: Please Enter Country …

Software Development c++ open-source
Member Avatar for Sturm
0
81
Member Avatar for civil1

hi,this is sandy patel. i need simeone's help as soon as possible. i discribe my problem as under: [B]Problem Statement: [/B]This problem requires you to generate a series of random numbers. There are many algorithms that have been developed for this purpose. One scheme generates pseudorandom numbers by performing a …

Software Development algorithm c
Member Avatar for Ancient Dragon
0
248
Member Avatar for avi_new

Hi Everyone I am new to vc++ 6.0 graphics programming. I am getting some errors of a program which i am trying to compile. i have added all the dependencies but not able to figure out why I am getting the following errors. Any suggestions. Threading.cpp C:\Programming\Projects\MX - MSVC6\Threading.cpp(2118) : …

Software Development c++
Member Avatar for Ancient Dragon
0
194
Member Avatar for himanjim

Hi.. I'm trying to write a simple program to include a c file in another one.. TEST1.c #include<stdio.h> #include<conio.h> #include<test.c> void main() { printf("%c" str); getch(); } test.c #include<stdio.h> #include<conio.h> extern char str; void main() { str='A'; } Is somethin like this is possible??? Code didn't run successfully

Software Development c
Member Avatar for himanjim
0
105
Member Avatar for 7arouf

hey i have a problem... i am working on a car dealership object-oriented program project and i am working on the (admin part) in which i can add cars, delete cars, and modify cars... so that as soon as i change info on cars, other users can see the changes... …

Software Development gui
Member Avatar for iamthwee
0
79
Member Avatar for revenge2

Hello there. which compiler would you recommend out of these 1. bloodshed dev c++ 2. Visual c++ express edition 3. code: blocks studio one more question whats the .net framework?

Software Development c++ visual-studio
Member Avatar for iamthwee
0
114
Member Avatar for ShaneUniStudent

Hey guys, i am about to throw it all in because i just cannot get this to work :S. All i wanted to do is search through a file and find a string and replace with an argument from the command line. So basically i have a file which has …

Software Development file-system shell-scripting
Member Avatar for ghostdog74
0
206
Member Avatar for shmay

This is from my C mid-term study guide so you geniuses should be able to crack it easily: Write a function that will return a random double number. The function takes two parameters (both integers). The first parameter is the maximum whole-number value that number can be (the minimum is …

Software Development c
Member Avatar for Rashakil Fol
0
177
Member Avatar for AngeloBaro

[COLOR=#000000]Hello, [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I learn newly Java programming. [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Because of this I have this small following question on it: [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I must create several points from different 3 components (x, y, z), values. [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]e.g: I must create 2 points and (2, …

Software Development java
Member Avatar for arunjain_in
0
129
Member Avatar for sirkraven

[COLOR=#555555]Hey, I’m trying to put a c++ project together using Dev-c++. Is there any reason why I can’t define 2 NEW different classes in different .h files in the same project? [/COLOR]

Software Development c++
Member Avatar for John A
0
105
Member Avatar for Duki

This program works unless I input 's' for marital status. Does anyone see my logic error? #include <iostream> #include <iomanip> using namespace std ; void getData ( int& numChild , double& grossSalary , double& penPay , char& maritalStat ) ; double taxAmount ( int& numChild , double& grossSalary , double& …

Software Development c++
Member Avatar for Duki
0
123
Member Avatar for victor Thomas.D

Hi, Some one help me, I want create a new mail message with to address ,cc address and with the subject. I want standard message in the mail also. Please help in this issue. Regards Victor

Software Development microsoft visual-basic
Member Avatar for victor Thomas.D
0
67
Member Avatar for kendell

hay i am reading strings from a file and I have to store the first six char into string array. I used this to get the file and the first six char input. while (getline(inFile, list )) { line.substr(0, 6) } there are also some blank lines for the first …

Software Development c++
Member Avatar for Lerner
0
95
Member Avatar for kendell

hay i really need some help here.First i need to know how to have a live chat with someone. Can someone please give me the direction on how to do that?

Software Development c++
Member Avatar for Lerner
0
97
Member Avatar for raj157

Can someone help me to start this assignment. i am totally lost on what needs to be done .. can someone provide me with some input ... would be great help .... not asking for someone to write me the code .. just tell me what needs to be done …

Software Development c++
Member Avatar for vijayan121
0
314
Member Avatar for civil1

hi,this sandy patel i have problem related to random number genre. ter . i don't understand from which is number from i have to start my program? and,upto witch number i have to go? The following steps describe the algorithm. Step 1: Enter an odd 4-digit integer seed number that …

Software Development algorithm c++
Member Avatar for civil1
0
213
Member Avatar for Soraji

Hello everyone! I am a first year student studying computer science and I am having a little trouble figuring out how to implement this part of a program. I am writing a word search puzzle generator that takes in a list of words and dimensions (such as "cat", "animal", "fish", …

Software Development algorithm java puzzle
Member Avatar for Soraji
0
102
Member Avatar for pjakubo86

Hey guys, I was hoping you could help me with a little problem I'm having. I'd like to create a priority queue from the STL of Node objects. Node is a class I've written myself. From what I understand, the STL uses the < (less than) operator (well, it uses …

Software Development c++ queue visual-studio
Member Avatar for vijayan121
0
408
Member Avatar for omoz4real

Pls i am a new member of dani web and i need help on implementing random images. I have got six gif images on my frame ,a JComboBox and a Button.the JComboBox displays the images if each one is clicked.I want to add an actionlistener to the Button so that …

Software Development java
Member Avatar for omoz4real
0
1K
Member Avatar for squinx22

what site could I get complete tutorials in making a program for symbian application?? your help is highly appreciated.. tnx...

Software Development c++
Member Avatar for vijayan121
0
99
Member Avatar for Eko

I have a class , named Set,and I want to overload the operator - so I can get the difference between 2 Set object. [COLOR=Blue]i.e. A={1,2,3,4} , B={ 3,4,5,6} , A-B={1,2} [/COLOR] In header file I declared the operator function like this : [code] Set operator-(const Set & ) ; …

Software Development c++ visual-studio
Member Avatar for GreenDay2001
0
113
Member Avatar for mailsteam

Can somebody give me the reason why the integer i is not getting incremented. Here is the code: main() { int i=10; i=i++; printf("%d",i); } and the output is 10. Here my doubt is that, i know that i is post incremented. Eventhough i is not incremented at the time …

Software Development c first-post
Member Avatar for deng_cen
0
197
Member Avatar for Adriel1990

i need help i dont know what to do, heres the psudocode and java code Function (BinaryNumber is String) returns Integer Var DecimalNumber is Integer initialized as 0 Var Power is Integer initialized as 0 Var BinaryDigit is Integer For (I (start value is length of BinaryNumber) to (end value …

Software Development java
Member Avatar for lucky1981_iway
0
91
Member Avatar for Legoland

Hi! I hope someone can help me out with this.I have one task left on my homework that i´m struggling with. The assignment is: Create a program in which you can put 10 words into separated by enter in the command window after that print the words backwards in the …

Software Development java
Member Avatar for Legoland
0
94
Member Avatar for it_dude

[B]Help with C++ project[/B] 59 Minutes Ago | [URL="http://www.daniweb.com/techtalkforums/reputation.php?p=343564"]Add to it_dude's Reputation[/URL] vbrep_register("343564") | [URL="http://www.daniweb.com/techtalkforums/report.php?p=343564"]Flag Bad Post[/URL] | #[URL="http://www.daniweb.com/techtalkforums/post343564-1.html"][B]1[/B][/URL] I am a beginning [URL="http://www.daniweb.com/techtalkforums/thread75095.html#"]programmer[/URL] and urgently need help with a project that requires me making a game consisting of a "gameboard". It looks something like this: 1 2 3 1 …

Software Development c++ first-post
Member Avatar for thekashyap
0
95
Member Avatar for Dado++

Hello, im having abit of a problem, I'm trying to compare two strings for matching characters, so far I have used the '[B]strpbrk[/B]' function but this is only returning the first instance of a match. Can someone please tell me what I could use to find all the matches. thank …

Software Development c++
Member Avatar for Day Brown
0
122
Member Avatar for squinx22

below is my program. I want to link the implementation file to main function. // implementation file // imp.cpp #include "myClass.hpp" #include <iostream> using namespace std; int display(void) { cout<<"hello"<<endl; } // main function //main.cpp #include "myClass.hpp" int main() { myClass sub; sub.display(); return 0; } // header file. //myClass.hpp …

Software Development c++
Member Avatar for John A
0
194
Member Avatar for CRD

I am trying to write a program to print a file to a printer. havent gotten fery far till I started to go ary, here is the listing so far. [code=c] // This Program is to print a file listing with line numbers to Printer. #include <stdlib.h> #include <stdio.h> #include …

Software Development c++ file-system printer
Member Avatar for WaltP
0
213
Member Avatar for raj157

i have a question Write a function that returns a pointer to the maximum value of an array of floating-point data: double* maximum(double a[], int a_size) If a_size is 0, return NULL. first of all i don't want the code for the entire program .. can someone tell me how …

Software Development c++
Member Avatar for raj157
0
106
Member Avatar for ravenous

Hi there, I am trying to make a piece of code in C that: 1. opens a specified file, 2. Reads the data in the file and separates it into two arrays, based on the position of commas, 3. Converts the strings into doubles and then perfoms some manipulation on …

Software Development c file-system
Member Avatar for WaltP
0
1K
Member Avatar for Atsnipes

Hi, I need to write a program in the LC-3 assembly language to convert hex to dec. Here are the exact guidelines: "Your program begins at x3000. Beginning at x4000 is a list of any length of positive numbers, terminated with a -1. Your program must display each number in …

Software Development assembly
Member Avatar for Atsnipes
0
151
Member Avatar for youngone

[code] #include <iostream> // stream #include <cmath> // math functions #include <cctype> // toupper using namespace std; int main() { int jul1; int jul2; int diff; int jdate; int toupper; char ans = 'Y'; do { jul1 = jdate(); /* Term does not evaluate to a function */ jul2 = …

Software Development c++
Member Avatar for John A
0
200
Member Avatar for example303

My code dose not work its: *//Extract code1.exe to... *//Extract code2.exe to... *//Extract Intro.wav It wown't extract and if you wanted to know why the code is so short its because i did it all in 2 other code files.

Software Development c++
Member Avatar for John A
0
89
Member Avatar for squinx22

how could I link the implementation file to the header file and to the main function. I made this program; // This is my implementation file.. (imp.cpp) #include <iostream> using namespace std; #include "CRectangle.hpp" output() { cout<< "hello"; return 0; } // This is my header file.. #include <iostream> using …

Software Development c++ file-system
Member Avatar for John A
0
169
Member Avatar for vivek.a.84

Hi Im working in an application which will track the click made in any web based application. For Eg: If u click on a link "mail" in yahoo.com.. this application should be able to detect the link clicked. silmilarly for other radio buttons, check boxes.. etc. can someone tell me …

Software Development java java-swing
Member Avatar for jwenting
0
102
Member Avatar for Witzbold

Hello, I am kind of new to programming in VB (and programming in general). I am trying to program a (what I assume to be simple) action of having a form when clicked open up a Excel Document. I need the path of the file it reads from to be …

Software Development visual-basic
Member Avatar for Witzbold
0
241
Member Avatar for the-new-guy-

[inlinecode] hi in school we have been set a homework task of making a game with a few simple programs! Our teacher asked us to team up and make a game lol just like that we have one month and we have sketched out some plans backgrounds ideas etc please …

Software Development java
Member Avatar for jwenting
0
109
Member Avatar for eyad212

i have a small project with oledb (access) connection how can i make exe file to allat the same meaninig i have to deploy the project to work on any pc without change the path or the connection. i did it but i get errors cuase it was belong to …

Software Development vb.net
Member Avatar for attya hassan
0
92
Member Avatar for MenloDeveloper

How can I find out where the class files are installed in a programmtic way? Thanks, Menlo

Software Development java
Member Avatar for jwenting
0
114

The End.