132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
[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++ | |
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++ | |
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 | |
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 … | |
please tell me how to find stack and heap address range in C programming Software Development c | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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# | |
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 | |
Hi Can Anybody can give me code for hotmail / live id friend importer and send mail to friend... Software Development c# | |
Suggest a nice college project for subject named Object Oriented software engineering ...preferable coding language is C++............. Software Development c++ engineering | |
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 | |
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 | |
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 | |
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, … | |
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 | |
![]() | 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 ![]() |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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++ |
The End.