132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for serkan sendur

swap.h : [CODE]#pragma once class Swap { public: Swap(void); public: ~Swap(void); public: void SwapNumbers(int & number1, int & number2); public: void SwapNumbersViaPointer(int * pNumber1, int * pNumber2); };[/CODE] swap.cpp : [CODE]#include "Swap.h" Swap::Swap(void) { } Swap::~Swap(void) { } void Swap::SwapNumbers(int & number1, int & number2) { int tmp = number2; …

Software Development c++
Member Avatar for serkan sendur
0
168
Member Avatar for rosenberg_a

[CODE] const char *getName() { return name; } [/CODE] Looking at the following code which is a member function of a class, why would one pass the array of a person's name as a pointer and lock it so it cannot be modified when they can just pass a copy …

Software Development c++
Member Avatar for StuXYZ
0
154
Member Avatar for Sam_Surrey

Hi everyone, im not competely new to C++ but we are being asked to create a new program for converting celsius to farenheit which is an easy code set, but we have to create it using seperate units, which i have to admit is massivley confusing me ! [code=cplusplus] #pragma …

Software Development c++
Member Avatar for ddanbe
0
138
Member Avatar for gsingh2011

Hi, I'm a beginner at VB.NET and I want to know how to change the appearance of a form when you click a button. Basically, I have a table that holds information. The user can choose between this table view or a preview. If he chooses preview, the table will …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
111
Member Avatar for real_castilla

Hi all, I'm a newbie with C or C++. I have a raw PCM file 16-bit (like a wav file but no header). I need to build a console application that can read the file, store data in an array, modify it (ex: add 100 to each value of the …

Software Development c c++
Member Avatar for rafi867
0
4K
Member Avatar for subhas.236

please tell me how to find stack and heap address range in C programming

Software Development c
Member Avatar for death_oclock
0
107
Member Avatar for devlin021

Hey all Iam new to programming, so please help me with my problem.... I want to take voice input into a Java program and save it in the form of string....?? Plesae help..

Software Development java
Member Avatar for devlin021
0
123
Member Avatar for daviddoria

[code] double P = 3.5/(.1 * sqrt(2.0*3.14159)) * exp(-pow(5.0,2) / (2.0*pow(.1,2))); cout << P << endl; if (P==0) cout << "P is zero!" << endl; [/code] Is this underflowing so it is getting rounded to zero? The problem is that I am taking the log of this, so if it …

Software Development c++
Member Avatar for Rashakil Fol
0
116
Member Avatar for dmanw100

I'm having a pretty weird logic error. It seems that this code is always ending my arrays with 3. It should (being a recursive function) iterate through 0, 1, 2, 3. My test array is of length 4 but I am completely missing the reason. Can anyone else see the …

Software Development java
Member Avatar for dmanw100
0
145
Member Avatar for skisy

Now I'm fairly sure this is a simple answer. And I am sure at some point I knew the answer to this question but I just can't remember it. All I need to do is only allow the users to add new records, I am not using a datagrid rather …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
97
Member Avatar for flipjoebanana

Hello, I am trying to as the title says within linux environment within my C program this is what I have so far: [code] int file_out = open(filename_var,O_RDWR|O_CREAT); if((child_pid = fork()) >= 0) /* successful fork */ { if(child_pid == 0) { /* Child process */ close(1); dup(file_out); close(file_out); f(execvp(command_var,command_args) …

Software Development c
Member Avatar for csurfer
0
79
Member Avatar for daviddoria

I wrote a pause function: [code] void Pause(void) { printf("Paused...\n\n"); fgetc(stdin); } [/code] It generally works fine (hit enter to continue). But one program doesn't seem to want to stop at all... [code] if(P == 0) { cout << "P=0!" << endl; //just as another attempt to stop it , …

Software Development c++
Member Avatar for Nick Evan
0
150
Member Avatar for sskelton

I'm trying to make the data display as compact as possible so thought to use response.write (data) & "<br/>" instead of using a gridview or detail view. this sort of works (I can get something out of the DataTable) but the output is from the top of the page, which …

Software Development vb.net
Member Avatar for Comatose
0
82
Member Avatar for SubProf

Hello Everyone, I have three forms, Form1, Form2 and Form3. Form3 runs first and has a button that when clicked runs Form 1 and a webBrowser window. Form1 has two buttons. When one is clicked it runs Form2 and the other button calls a function in Form3. Form2 has two …

Software Development
Member Avatar for Ramy Mahrous
0
204
Member Avatar for Rashakil Fol

From [url]http://www.daniweb.com/forums/thread172120.html#post791196[/url] : [quote=Ezzaral]On a side note, never throw exceptions from main(). Use a try-catch block.[/quote] Why?

Software Development java
Member Avatar for ~s.o.s~
0
151
Member Avatar for The Idiot

I’m building a tagger that searches through a corpus of IM data and tags any instances of words that occur on a wordlist. I've run into a problem and was hoping to find help. I'd like to try and understand exactly why it's not working, so I've laid out everything …

Software Development dataset python
Member Avatar for The Idiot
0
92
Member Avatar for Wiizl

I have written windows application for managing specific win service. it can start, stop install and uninstall. also i have setup project ( in the same solution of course). the problem is that after i uninstall the application (add/remove programs) the service of course remains in the service list, if …

Software Development
Member Avatar for Wiizl
0
176
Member Avatar for caroll

sir, pls help me to write a coding in c for algebraic reconstruction method..... 1 2 3--------->6 4 5 6--------->15 7 8 9--------->24 | | | | | | | | | 12 15 18 Its a three dimensional one in dat first row addng threenos get into 6 and …

Software Development c
Member Avatar for devnar
0
161
Member Avatar for EvilOrange

I have written this Parser for a formal grammar, to me it looks like it should be ok but when i tried to run it a Segmentation Error comes up - i have run valgrind its got leaks but it does come up with an error. Can anyone spot what …

Software Development c
Member Avatar for mad93
0
124
Member Avatar for are_nice

can u give me an example of a program like this? write a program that allows the user to play the game called the secret number with the comp. the user will try to guess the secret number, a number known only by the comp. this secret number is an …

Software Development c++
Member Avatar for Nick Evan
0
69
Member Avatar for adarrell

Hi, I have been trying for several hours without success to write a function that takes a filename, opens the corresponding file, populates a std::vector<double> with values from the file, and returns the std::vector<double>. I can't get past the passing the filename stage unfortunately, despite reading about this here there …

Software Development c++
Member Avatar for Nick Evan
0
209
Member Avatar for mona515

Hi, I'm new to the whole programing world, so I'm a bit lost. The problem is: Enhanace the "BankAccount" class by, 1.) Rejecting negative amounts in the deposit and withdrawl methods. and 2.) Rejects withdrawals that would result in a negative balance. (Simply return from the method without modifying the …

Software Development
Member Avatar for Ramy Mahrous
0
116
Member Avatar for skaterz

Hello, I have a script written in C# (.NET) and within this script I have an IF statement and when this IF statement is TRUE I want to execute the following external script that I placed just under the </head>: <script id='name' type='text/javascript' src='https://xx' integration='jscart-wizard'></script> How can I do that? …

Software Development c#
Member Avatar for LizR
0
143
Member Avatar for AaMar

Hello! Experts i want to build an app like dictionary (e.g Babylon, Urdu dictionary). Only one text box and button when i wrote a word in text box and click button then display meaning in other label. I confused. Thanks

Software Development vb.net
Member Avatar for Ramy Mahrous
0
93
Member Avatar for nikesh.yadav

Hi Can Anybody can give me code for hotmail / live id friend importer and send mail to friend...

Software Development c#
Member Avatar for nikesh.yadav
0
109
Member Avatar for ishaanarora

Suggest a nice college project for subject named Object Oriented software engineering ...preferable coding language is C++.............

Software Development c++ engineering
Member Avatar for Freaky_Chris
0
120
Member Avatar for atsirk

hello guys, am a newbie here.. and i just want to ask for some help.. if any1 knows more on visual basic and how can i interface it with some hardwares (e.g. 7seg, LED, fan, Buzzer) some stuffs like that. Can you help me understand how can i make a …

Software Development visual-basic
Member Avatar for cguan_77
0
131
Member Avatar for hieuuk

If you’re an enthusiastic developer, sure you have done a lot of personal projects. The problem is that what you will do when you want to start a serious medium size project (which could take month(s)). I don’t think there is a best way to start a project however there …

Software Development database-design engineering web-design
Member Avatar for LizR
0
109
Member Avatar for john_prince

Hi, My CSV files contains embedded double quotes, as it does not conform to the RFC 4180 standard and results in parser complication. I tried using Perl Module "Text::CSV_XS" to properly escape with double-quotes, the output file gives me the result as desired, however some of the line breaks into …

Software Development perl
Member Avatar for john_prince
0
186
Member Avatar for Gizmo89

Hello Everyone, At the moment i'm look for some software that will help me document my code using xml comments and the integrate these help files in to VS 2008. I've had a certain degree of success with Doc-O-Matic which seems to work well, but there it one small catch, …

Software Development vb.net xml
Member Avatar for Gizmo89
0
77
Member Avatar for legendarya49

Does anyone know any good books for introduction to assembly? I have a class with it next semester and would like to get a head start.

Software Development assembly
Member Avatar for Singh001
0
145
Member Avatar for leegeorg07

hi again i have been assigned a project to create a web crawler in python but i have no idea where to start so all help will be welcome.

Software Development python
Member Avatar for leegeorg07
0
126
Member Avatar for yasserovic

who can find the Errors in this statments ; 1-[CODE]Assume that: char str[ 5 ]; cin >> str; // user types "hello" [/CODE] 2- [CODE=c]int *zPtr; // zPtr will reference array z int *aPtr = 0; void *sPtr = 0; int number; int z[ 5 ] = { 1, 2, …

Software Development c++
Member Avatar for Murtan
0
183
Member Avatar for w32.sysfile

i have a jtextpane now, i want that some text on it become bold, and not all how can i possibly do this, for exmple, i want to bold all the word "cool" found in my textpane.. i know that i should use a DocumentListener(Do I need??) but i really …

Software Development java
Member Avatar for zawert
0
130
Member Avatar for madurai07

Hi, I want to read a line in the file and check the content in the line, for example if the line starts with the text "sample test ..." i want to check wether the line starts with sample, but my code always return no result even thou the file …

Software Development python
Member Avatar for madurai07
0
136
Member Avatar for glamiss

i have a couple of servers that are changing perms on /dev/null so that "other" can't access it, at random (well, i'm sure SOMETHING'S causing it, but the timing is random), so i wrote a script to go in the inittab so it'll respawn if it dies (bash shell) the …

Software Development shell-scripting web-server
Member Avatar for eggi
0
143
Member Avatar for AllenB

Hello, Is there a way to take a String, for instance "4 * 5" from a JTextField and convert it into an expression where I will get a result? Thank you.

Software Development java
Member Avatar for sciwizeh
0
139
Member Avatar for BobLewiston

Within a C# program, is there any way to tell if a file is a text file or not? I mean a real way, not just basing your conclusion on a file name extension.

Software Development
Member Avatar for Ramy Mahrous
0
114
Member Avatar for kateblossom

Hi I would like to create a crawler using java with mySQL as backend. It must work in such a way that it will crawl to a site and grab the data from that site. And then store that data in the database. So can anybody tell me a way …

Software Development java
Member Avatar for sciwizeh
0
510
Member Avatar for computercobra

Heres my problem. I can add a node to my linked list in the front and middle, and at the end. But if I add a node to the end of the list and try to print it out, the program crashes. I studied the code and didn't find any …

Software Development c++ linked-list
Member Avatar for computercobra
0
123
Member Avatar for serkan sendur

i tried to see the preprocessed file after it is preprocessed. i created den.cpp : [CODE]#define PROC_ERR(MSGSTR, DO_ACTION) \ { \ cerr << MSGSTR << endl; \ DO_ACTION; \ } PROC_ERR(error,action)[/CODE] i run the following command on unix command prompt to create the preprocessed file : [CODE]g++ -E -o den.i …

Software Development c++ unix
0
60
Member Avatar for jdbarry

Can somebody help tell what they think is the matter with this code. It is supposed to be a random password generator. You will see what is the matter with when it runs. Thanks in advance [code] /** * This program generates random passwords based on the user selecting the …

Software Development java
Member Avatar for markhogg
0
121
Member Avatar for ejubenville

I'm porting a program that used stdio file facilities to use an std::ofstream instead. The original program uses fsync to force a file's buffers out to the disk. The fsync() is used because I'm writing a logging file, and want to ensure that data is written ASAP (i.e., before a …

Software Development c++
Member Avatar for Freaky_Chris
0
3K
Member Avatar for Jaycee

Hi to all. I'm new to all IT stuff but well intersted and I have learn a lots those past few days reading all the Forum tipsand also the Programming FAQ by Iron_Dross. I'd like to become a programmer and I learnt a lot allready but if you can tell …

Software Development c# visual-studio
Member Avatar for LizR
0
260
Member Avatar for RyFo18

So I'm trying to create my first ever Makefile and have run into some issues. My program is broken down like this: filter.c - contains main() includes.h - #defines io/file_io.c - contains some functions that main() uses io/file_io.h - included in filter.c and file_io.c Hopefully that is clear enough. Now …

Software Development c
Member Avatar for RyFo18
0
138
Member Avatar for SAZAR

Is there a utility which you load with a .txt file which is a list of files and directories you made previously, so it generates, sort-of, a virtual directory tree (explorer-like, with icons and all)? _______________________________ For example: You have a list, a .txt file, which has this text in …

Software Development c++ hard-drive
Member Avatar for GDICommander
0
136
Member Avatar for smashpumpkin

Hi everyone, I've been having a little trouble with an assignment I've been given and I'm looking for a little help. The assignment requires me to read in a line of text from the user, and then use Parallel Arrays (both iteratively & recursively), An Array of Object (iteratively, recursively, …

Software Development c++
Member Avatar for smashpumpkin
0
123
Member Avatar for drsmith

We have a script that creates a .csv file that in turn is fed into a python script. Our .csv file is being generated with a line feed at the bottom, and this is hammering the python script. Is there a way to get rid of that extra line that …

Software Development perl
Member Avatar for KevinADC
0
133
Member Avatar for LucyB

Do you do the flow chart first or go straight to the code? I find it easier to do the code first for some reason, maybe this is bad?

Software Development c++
Member Avatar for Rashakil Fol
0
104
Member Avatar for PaulThomas

Hi, iam new to MFC programming and i was just wondering if someone could help me. Iam after creating two resources called menu and dialog. After creating then i ran into problems. I wanted to be able to click on the menu command that will then display the dialog box, …

Software Development c++
Member Avatar for PaulThomas
0
73

The End.