132,726 Archived Topics
Remove Filter ![]() | |
Hi, i hve asimple c++ prog written in vc++ editor.I am able to run this in my system when i deploy it in another system which doesn't hve vc++ environment its not working the exe just closes... can anyone just tell me how to deploy the exe into another system. … Software Development c++ | |
Sorry for the rather newbish question. I'm stuck on part of this program, it seems simple enough :-| The user is prompted to enter a phone number in the format of: xxx-xxxx (the hyphen must be included). From there the phone number needs to be stored into an array of … Software Development c | |
#include<stdio.h> #include<conio.h> struct node { int data; struct node *right, *left; }*root,*p,*q; struct node *make(int y) { struct node *newnode; newnode=(struct node *)malloc(sizeof(struct node)); newnode->data=y; newnode->right=newnode->left=NULL; return(newnode); } void left(struct node *r,int x) { if(r->left!=NULL) printf("\n Invalid !"); else r->left=make(x); } void right(struct node *r,int x) { if(r->right!=NULL) printf("\n Invalid … Software Development c | |
Here is the one that I've tried and it works. //It will terminate the loop but it's NOT an Auto Infinite Loop like the you had. //Description: //This program asks the user to terminate an infinite loop //with a sentinel value of any kind. # include <iostream> # include <cmath> … Software Development c++ | |
I'm writing a calculator program that receives a string and returns the result (everything in console mode), using Delphi 6. I use a FOR to advance and evaluate the sub-expressions, but the compiler leaves the FOR without reason (I mean that Delphi does not give me any warnings or errors, … | |
Here is my program with the errors any help would be appreciated. error C3861: 'headTail': identifier not found, even with argument-dependent lookup error C3861: 'results': identifier not found, even with argument-dependent lookup error C2365: 'headTail' : redefinition; previous definition was a 'formerly unknown identifier' error C2365: 'results' : redefinition; previous … | |
Implement a system for a bank. Design it so it can be used by the bank’s staff. It should enable the following: o Opening a new account for a customer o Closing an account o Displaying all accounts An Account o Contains the name of the customer o Contains the … Software Development c++ | |
I'm doing an assignment that implements the following interface [code]public interface MyStackInterface { public Character pop(); public void push (Character c); public boolean isEmpty(); public void clear (); } [/code] The objective is to properly arrange parenthesis, brackets, and braces. I was wondering should I use a data file or … Software Development java objective-c | |
Hi all. I need help creating a prog. in C that can count the occurrence of numbers. The prog. should go like this: Enter input 1 = 223335 Enter input 2 = 2 Output = The number 2 appears twice in "223335". The first input can be any 6 numbers … Software Development c | |
hi guys , I am a first year student! can anyone help .. the code. is . [COLOR=RoyalBlue]main() { char *b="abc"; printf("%s",b); }[/COLOR] the output is :abc. my doubt is : how can we assign a string constant to a pointer.And when we assign like this is a character array … Software Development c | |
Hello; using c# , I want to build a small database in which its data can be stored in Records (struct) , it seems difficult to do so using streamwriter , and I searched binarywriter to find any member doing like that but I didn't find any thing , any … Software Development | |
You heard me, I want to know your guys' techniques for converting data types without using additional headers (such as studio.h). Are there any tricks or intrinsic methods? Can I write my own method? I simply don't like adding unnecessary headers becasue I don't use 95% of the crap that … Software Development c | |
This is really simple code that prints the address of a variable : [code]int main() { int x; scanf("%d", &x ); printf("Address of x : %X, value : %d" ); return 0; }[/code]<< moderator edit: added [url=http://www.daniweb.com/techtalkforums/misc.php?do=bbcode#code][inlinecode][co[u][/u]de][/co[u][/u]de][/inlinecode][/url] tags >> Simple as that. But the thing is this program gives the … Software Development c | |
I'm trying to write a program to simulate a tortoise & hare program. They begin at square 1 of 70. There is a clock that ticks once per second. With each tick, the program should adjust the position of the animals according to a chart I've been given to follow. … Software Development c++ | |
Consider the following code snippet: [code]counter = 0; workOperations = new String [OPERATIONS.Count,2]; foreach ( System.Array o in OPERATIONS) { workOperations[counter,0] = (string) o.GetValue(0,0); workOperations[counter,1] = (string) o.GetValue(0,1); counter++; } ps.Operations = workOperations;[/code] There has got to be a better way to do this! The issue is, the [b]ps.Operations[/b] property … Software Development | |
I'm looking for any information how to open vaw file with java. Thanks in advance for any help. Software Development java | |
im looking on how you can use an object in an array using a "name" instead of a number. this would be just like a DataTable where you can use the tables name instead of its position in the array. anyone have an idea how this is done? or am … Software Development | |
Hi, i am very new to c and was wondering if anybody can help me. i want to create an array of size 1 million bits. i heard you can use malloc or calloc. does anybody know how to do this, thanks in advanced, sc Software Development c++ | |
Hey! I'm learning C++ and pointers are pretty new to me, I can work with them a little but [I]still[/I] don't see the point to them.. ok, well, I do.. For example, passing variables byReference! But that's the only good I see comming from pointers (yup, I'm a n00b).. [B] … Software Development c++ | |
I'm trying to put a status bar on a dialog based app. I have the following code in the OnInitDialog(): [code] if (!m_wndStatusBar.Create(this, WS_CHILD | WS_VISIBLE | CBRS_BOTTOM) || !m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))) { TRACE0("Failed to create status bar\n"); return -1; // fail to create } else MessageBox("Status bar created", "Debug"); // … Software Development c | |
Hi, i'm a bit of a VB-virgin in destress :) I've wrote some vb6 to manipulate words in a text-box. It has some bugs but it does the main job. I like to compare it with a real VB-expert solution. Does any of you can show me a small program … Software Development visual-basic | |
I have an application web based. using Oracle backend and Java front end. App server is in weblogic and Solaris os and two cpu with 8 applications. DB server is oracle 8.1.7 on Solaris This application is getting slow when number of threads are more ( like many users login … Software Development algorithm java oracle web-server | |
Okay, I finally got my external program to open but how do I actually get it to run??? What I am trying to do is open a syncsort file called mjwsorter.srt (I can finally get it to open). Next, however, I want the program to execute... which is done by … Software Development shell-scripting visual-basic | |
Hi everyone, I am trying to make a function such as [CODE]void resetGrid(int grid[][gridSize])[/CODE] The function needs to input the 2-D array and then set each of the values to zero. I know this should be a simple double 'for' loop but what I can't figure out is how far … Software Development c++ | |
I'm sorry I've been posting so much, I'm still learning. :) My question how do you fill a combo using a varible. for example I want to fill my combo box in Visual C++ with something like this. [CODE] char *names[2]; names[0] = "Joe"; names[1] = "Billy"; names[2] = "Bob"; … Software Development c++ | |
I am trying to create a list of nodes and then put numbers in them.. I can do that. But I need help trying to sort the nodes. Here is my program. Thank you, Brian [code]int null = -1; typedef struct Node { int val; Node next; Node(int v, Node … Software Development c++ | |
Hi I am trying to write an app for price calculations what i need to do is make cut off points for different dollar values the values are when a product is over $22.00 the deduction $3.30. When a product is over $16.50 and under $22.00 the deduction is dollar … Software Development | |
I have changes a few things but still seem to be hitting a brick wall. I have been told that my note is drawn at the same position each time. Can anyone help with what i can do regarding this. Otherwise can anyone help with getting this thing to work. … Software Development java java-swing | |
Hi, I am new to c++ and just wanted to know how to split a sting e.g if someone were to enter their details like John age 19 dob 10/06/1986 into a basic cin, how could I split the string to store John 19 10 06 1986 into different strings … Software Development c++ | |
Since i have to go to college i got on idea to preform a simple C# Syntax highlighting for my HP ipaq 1710,dont laugh at me when i tell you that i tried to create just window form without anything else and copy it to my Pocket PC,i use windows … | |
Hi, to everyone. My program to make program to write the application the input a dollar amount to be printed on a cheque, and then prints the amount with eleven position number are available for printing the cheque. And need to run the word equivalent of the cheque amount e.g.: … Software Development java java-swing | |
hi! i use tcpclient to get connections from clients to my server. but i need the information of the ip address of that client. i know that i have to derive a mytcpclient from the tcpclient class, but i get some errors when extracting the socket out of it. the … Software Development c c# c++ client-server | |
Hey e1, I went out of the way to make my project fool-proof. U can c the pic below, I have 2 input textboxes and 1 output text box. Im trying to get my code to where if you enter a [U]Character[/U] i.e. "abc" , then A mSGBox will tell … Software Development visual-basic | |
My program compiles with no errors but when I run the program it asks "Enter the number to be deleted:" if I enter any number other than the first number listed the program crashes with the following error: "An unhandled exception of type 'System.NullReferenceException' occurred in doublyLinkedList.exe Additional information: Object … Software Development c++ | |
This is a simple example of how to use recursion to get a list of all the directories (folders) and file names within them. It also illustrates simple use if std::list, std::vector, std::string, std::cin and std::cout. It was compiled and tested with both VC++ 6.0 and Dev-C++ compilers on XP … Software Development c++ data-structure display file-system linked-list | |
Hello everyone, I have always seen some methods are described as "best practice". I am wondering what means "best practice", an algorithm? Thanks in advance, George | |
I've been trying to find an alternate means of achieving essentially what JSplitPanes can do, except that the hideous-looking splitter bar would be invisible, and you can resize in both x and y dimensions at the same time. My current thought is to subclass a JPanel with listeners that implement … Software Development java java-swing | |
ok as you may know ther is a way to write to the registry and change the title of internet explorer. you add Windows Title as a sub string then set the value data to what ever you want tit to say this is my code [code] RegistryKey regkey;/* new … Software Development microsoft | |
Hey guys and girls, im a n00b at the programming side of PC's but im trying to create not a pop-up but a sub window? does that make sense? like when you get an error message or when you get an information box up! can anyone help me with basic … Software Development c | |
Hi all, I'm needing some help on a program that Im making. When the program opens, I need it to detect whether or not a ftp server is online. I need the program to tell the user if the server is off line. Can someone please help me. Software Development pascal | |
Having troubles handling text from a multiline edit box.. the first part of this algorithm runs fine by itself.. the second part (highlighted in blue) runs fine as a DOS console project using 'char' data types.. but when I add it to this windows project (using TCHAR's) it distorts the … | |
Hello, Is it possible to edit the target of an exe and then once the new target line is executed, it returns to its normal self or something along the same lines as this, using VB? If it is, any help or ideas would be appreciated. Thanks. Software Development visual-basic | |
Hi, sometimes I get this linker error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function _main and sometimes it works OK. Solution is usually to place pragma directive below include directives [code] #pragma comment(lib, "wsock32.lib") [/code] First, can someone explain in simple words what this means? Maybe it's some kind … Software Development c++ | |
Hello! I started this course in Java and we got this assignment to do and it consists of making 2 strings of text and then we are are supposed to write this code that storage the varible "`max_length`" and then print out "The longest string has the length...". I know … | |
Hi everyone, Just thought i would post my program im doing at the moment as im completely stuck. Basically the program takes a user input as a string, uses the tokenizer to break down. The individual strings which will be single characters will be used to draw notes on a … Software Development first-post java java-swing | |
Ok I was wondering if anyone could help me with how to make a python program interact with files. Copying, pasting, moving, things like that, opening. If it cant really be discussed quicky are there any good tutorials? Mainly a organinzing python program.(looks for a certain file extention, then moves … Software Development file-system python | |
Ok, Im still really shaky w/useing python with other programs. So here is my question, is it possible to create just a very small program that grabs my IP adress, copys it, and then sends it to certain IM buddys? The reason I am asking this is beacause my friends … Software Development python |
The End.