43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tiwas

Hi, This is vaguely related to my last post, but not entirely so I'll make a new one. Hope that's consistent with the board rules :) I have a path [CODE]String path = "C:\\test\another\\directory\\";[/CODE] It seems the trailing slash is appended automatically when using the OpenFileDialog, so I used to …

Software Development
Member Avatar for Rashakil Fol
0
146
Member Avatar for Samyx

[code]void swap (int *first, int *second) { int temp = *first; *first = *second; *second = temp; } int main () { int i = 5, j = 6; swap (i, j); printf ("i=%d j=%d\n", i, j); } [/code] warning: [37] $ gcc -o ex321 ex321.c ex321.c: In function `main': …

Software Development c
Member Avatar for Samyx
0
81
Member Avatar for Vallnerik

I have a question that pertains to any programming language but since C/C++ is my primary language I'll ask it here. I'm designing a test program that will simulate the outcome of a 12 round fight between 2 boxers. Now my question is, is there a limit or number I …

Software Development c++
Member Avatar for mrnutty
0
130
Member Avatar for Samyx

I am using the file ex3test.c to run the following program, but the UNIX gives the errors: [38] $ gcc -o ex3test ex3test.c Undefined first referenced symbol in file discrete_uniform /tmp/scratch.hYayTQ/ccRDoT1o.o printFirst /tmp/scratch.hYayTQ/ccRDoT1o.o addToList /tmp/scratch.hYayTQ/ccRDoT1o.o printSecond /tmp/scratch.hYayTQ/ccRDoT1o.o disparity /tmp/scratch.hYayTQ/ccRDoT1o.o clearList /tmp/scratch.hYayTQ/ccRDoT1o.o ld: fatal: Symbol referencing errors. No output written to …

Software Development c unix
Member Avatar for Samyx
0
175
Member Avatar for GDICommander

Hi, everyone! I am using Interop.Photoshop.Dll from my C# Windows Forms application. I am using a com object that Adobe Photoshop CS4 provides to use Photoshop in my C# program. I'm using the ApplicationClass class to launch Photoshop. I have Photosoft CS3 and CS4 on my machine. When I do …

Software Development adobe c#
Member Avatar for sknake
0
982
Member Avatar for procomp65

Hi I need to format a decimal value to time and then display it in a textbox in the proper format. eg: double value = 1.25 to "1:15" I do not have a clue how to go about it Thanks

Software Development mathematics
Member Avatar for procomp65
0
3K
Member Avatar for chris5126

Hi Guys, I have a file with lots of similar records example shown at end, I want to be able to delete one of the records and have the following line of code which finds the record I need to delete, my question is now I have found the record …

Software Development dns shell-scripting unix
Member Avatar for chris5126
-1
130
Member Avatar for markrezak

//Binary Search Tree Program #include <iostream> #include <cstdlib> using namespace std; class BinarySearchTree { private: struct tree_node { tree_node* left; tree_node* right; int data; }; tree_node* root; public: BinarySearchTree() { root = NULL; } bool isEmpty() const { return root==NULL; } void print_inorder(); void inorder(tree_node*); void print_preorder(); void preorder(tree_node*); void …

Software Development c++ programming-construct
Member Avatar for dkalita
-1
439
Member Avatar for phoenix911

hey every1 im struggling with something simple, that i cant figure out, or im on the wrong track. the user must enter an id of any sort, 1 - 8 numbers, if it is less than 8 numbers it must be left padded with 0s. and the 1st character must …

Software Development
Member Avatar for phoenix911
0
606
Member Avatar for lotrsimp12345

[CODE] void my_int_sllist::pop_back() { //head and tail pointers cout<<"enter pop_back"; //contains one node if(head==tail) { cout<<"enter head==tail?"; delete head; head=tail=0; siz--; } else { cout<<"enter's other condition"; my_int_node* temp; for(temp=head; temp->next!=tail; temp=temp->next) { delete tail; tail=temp; tail->next=0; } siz--; } } [/CODE]

Software Development c++ linked-list
Member Avatar for lotrsimp12345
0
1K
Member Avatar for samir_ibrahim

I am creating a form that will filter datagridview while typing in a textbox. I came through this error and I would like to know why is occur. [CODE=vb.net] Dim dt As DataTable = Ds_Pos.Employees Dim dv As New DataView(dt) 'findcrit is declared as string public and it contain a …

Software Development vb.net
Member Avatar for samir_ibrahim
0
151
Member Avatar for Creator00

Hello! Could You please help to solve this? My question is how to reverse a number in decimal notation using recursive function. 1234 => 4321 2 => 2 20 => 0 20000 => 2 (yes!) 0 => 0 The maximum length of test input is 5 numbers. No need to …

Software Development c
Member Avatar for Creator00
0
123
Member Avatar for lotrsimp12345

the problem seems to be in the show_int_sllist(). main [CODE] #include "My_Int_Sllist.h" #include <iostream> using namespace std; int main() { //Test1 my_int_sllist b; b.push_back(10); b.show_int_sllist(); return 0; } [/CODE] INTERFACE NODE [CODE] //class used to create a node class my_int_node { public: //member that stores the nodes data value int …

Software Development c++ linked-list
Member Avatar for lotrsimp12345
0
129
Member Avatar for gianrocks

hey everyone im sort off new on .net and i was wondering if u can help me bigtime.. i am having problems with editing records when i do a search. example i was to search a specific record but then when i try to edit it, it turned out that …

Software Development vb.net
Member Avatar for gianrocks
0
116
Member Avatar for facadie

Hi ALL I'm having trouble figuring out.. I have one BTNCANCEL here and cmb1,cmb2,cm3, tb1,tb2. How do i program so that it detect changes in cmb1,cmb2,cm3, tb1,tb2 and then when i click BTN cancel it will PROMPT to save yes/no [which i have already programed] if there is a change …

Software Development
Member Avatar for facadie
0
2K
Member Avatar for facadie

How do i make validation. To check if the eg textbox is type with certain character like we want this text box to have at least 7 character. and then when we click button OK[save button as usual] it will not save and it validates at the side with * …

Software Development
Member Avatar for facadie
0
108
Member Avatar for Samyx

Hi everyone, I am a beginner in java. I am still trying to learn the structure and other basic stuff. I am trying to add some code so that the methods in main() work correctly. [code]class Complex { double real, img; void setValues(double i, double x){ real=i; img=x; } public …

Software Development java
Member Avatar for Samyx
0
115
Member Avatar for shopnobhumi

i am trying to compile it (ms visual c++) but it is not compiling, i guess there is some errors but visual c++ is only saying fatal error which i have no idea what it is.Any idea? [code]#include "stdafx.h" #include <iostream> using namespace std; int nbs=0; void Queens(int nn, int …

Software Development c++
Member Avatar for NathanOliver
0
116
Member Avatar for Raik.48

SOMETHING IS WRONG WITH MY CODE, IT GETS COMPILED BUT ONLY PROBLEM IS WHEN I INPUT THE NUMBERS THE OUTPUT COMES AS "Area@9664a1" ! // Implement a class Area which has three attributes length, breadth and Area. use attributes constructor to initilize length and breath. implement a method calcArea to …

Software Development java
Member Avatar for Raik.48
0
145
Member Avatar for jatin24

Hi, Im trying to transfer some text from the richTextBox into an existing MS word template at a specific location. I am able to transfer text to any location i like, but i want to retain the formatting of the text from the richTextBox. Im trying to copy the text …

Software Development microsoft-office office-suite
Member Avatar for jatin24
0
2K
Member Avatar for gampalu

Hi, I am trying to implement an applet. The idea is to create the applet, then connect places where I single-click with the mouse with black lines until we give a double-click. With a double-click I should clear the applet. To clear the applet I am trying to set the …

Software Development java
Member Avatar for gampalu
0
171
Member Avatar for NathanOliver

Hi all. I am currently writing a large number class and was curious if I should use a template. I am setting up my constructors and I have one for a string and i was thinking i could use a template for a constructor so it can take in an …

Software Development c++
Member Avatar for NathanOliver
0
144
Member Avatar for OneDreamCloser

hi all, i have a file that contains the following data (just a sample) : [code]501 0 0.932 0.933 0.931 0.931 0.929 0.933 0.93 0.928 501 1 0.974 0.98 0.978 0.976 0.974 0.974 501 2 0.953 0.949 0.944 0.951 0.942 0.942 0.942 0.948 501 3 0.933 0.934 0.934 0.935 0.931 …

Software Development python
Member Avatar for OneDreamCloser
0
163
Member Avatar for markrezak

.the program is running .display the frequency of words and sort them from highest count to lowest. my problem is about the duplication of the counts or value of the words.if the value of the word are same it only display the first word&value ...can some one help here is …

Software Development algorithm c++
Member Avatar for markrezak
0
188
Member Avatar for nateuni

Hi, In c if I have a return value and do not catch it, will this cause any problems in my program? Or should I just catch it in some dummy variable and discard it? In spite of googling.. I can't find any info in how c behaves in this …

Software Development c c# c++
Member Avatar for gerard4143
0
131
Member Avatar for vileoxidation

Okay, I am working on a homework assignment for my class in which we are supposed to use pointers for all of the arrays in the functions. Here is what I have so far for the printArray function, which is supposed to print the members of the array horizontally. It …

Software Development c
Member Avatar for Golam Kausher
0
193
Member Avatar for fafi_ali

hi everybody, do you know how to deploy crystal report? actually i took the exe only to the clients computer (as it's the first time i work on crystal report) but when i try to run it it thraws exception:- couldn't load file or assembly 'CrystalDecisions.CrystalReports.Engine,Version=10.5.3700.0,Culture=neutral,PublicKeyToken=692fea5521e1304'or one of it's dependencies.The …

Software Development assembly
Member Avatar for fafi_ali
0
111
Member Avatar for shahanakazi

Hi, I'm a beginner of C++ programming. I am trying to write a void funtion for the following question but in vain. Please help me. Here's the question: Suppose we want to display the following figure containing the alphabetic character V on yhe screen: #^^^^^^^^^# ^#^^^^^^^#^ ^^#^^^^^#^^ ^^^#^^^#^^^ ^^^^#^#^^^^ ^^^^^#^^^^^ …

Software Development c++
Member Avatar for Barefootsanders
0
160
Member Avatar for chico2009

Hi folks I have just completed my first programme with help from yourselves. I cant understand why the code , if x ==1 or 2, wouldn't work in my programme below [code=python] # Convert C to F or F to C and return with result select = True while select: …

Software Development python
Member Avatar for chico2009
0
187
Member Avatar for mem81

Hi there, I have been struggling with this for quite a while now. I am a novice in .net so no wonder I can figure it out. I have a tab delimited file, where the sequence of lines should be 01UN1........................ 04UN1.......................... 09UN1........................ 01UN2.................... [COLOR="Red"]04UN2.............[/COLOR] 04UN2............... 09UN2................ However sometimes in …

Software Development file-system vb.net
Member Avatar for mem81
0
197
Member Avatar for laghaterohan

hey folks, i have a button named btnnext and a picturebox pbox . On the click of the next button i want that picturebox should display image one by one on the next button click.. how to do this ?? pl give me idea...plz....

Software Development display
Member Avatar for laghaterohan
0
472
Member Avatar for alex-VX

is there any way to disable a loop when the user is inactive / when the screen saver is on?

Software Development python
Member Avatar for alex-VX
0
108
Member Avatar for samm22

Does anyone know how to truly select random element from a vector v? I tried this: int rnd; rnd = v[ (int)floor( (double)rand()*( (double)v.size() / (double)RAND_MAX ) ) ]; cout<< "Random element: "<<rnd; But every time it's selecting only one particular element from my vector. It should be random right. …

Software Development c++
Member Avatar for samm22
0
144
Member Avatar for gabanxx

i created a form with 4 textbox tht user can insert their data and stored it in sql server 2000 databse..than i manage to display the data when user starting the program... i also create an update button for user to update their data... the problem is when i want …

Software Development dataset vb.net
Member Avatar for obicerno
0
541
Member Avatar for yorro

How do I use the User-Controls as a form within a Form? This is my answer to my problem located on [URL="http://www.daniweb.com/forums/thread214973.html"]this thread[/URL] As seen in the original thread's solution, I've used solution #2. Instead of switching forms, I've used switching panels and the controls are contained in those panels. …

Software Development oop vb.net
Member Avatar for yorro
0
2K
Member Avatar for darkocean

Hi all, Now i dont remember what we say about this method, i am so sorry for that anyway... I want to write in textbox when i am writing on it, it shows similar info to me. For example if i write dan it must be show daniweb, dance, danny, …

Software Development
Member Avatar for DdoubleD
0
111
Member Avatar for marygreen

Hello to guys/girls on the forum. Question I have is following. How to speed this loop? [code] begin var i:integer; begin for i:=1 to 9999999 do begin //do something Memo1.Lines.Add ((floattostr(a1.value))+' + '+(floattostr(a2.value))+' + '+(floattostr(a3.value)); //do something Memo1.Lines.Add ((floattostr(a1.value))+' + '+(floattostr(a2.value))+' + '+(floattostr(a3.value)); //do something Memo1.Lines.Add ((floattostr(a1.value))+' + '+(floattostr(a2.value))+' + …

Software Development pascal
Member Avatar for jng
-1
107
Member Avatar for blueness25

Hello, I know this is a very simple problem, but I am about to give up... Why couldn't I get the control keys do their job? Maybe someone whose eyes are more rested than mine can tell me. I will appreciate any help. I am dealing with pygame, and I …

Software Development python
Member Avatar for blueness25
0
804
Member Avatar for lotrsimp12345

When i run a black screen with cursor appears but nothing prints THANKS INTERFACE [code] //my_int_vector.h class my_int_vector { public: //destructor ~my_int_vector(); //copy constructor my_int_vector(const my_int_vector& b); //constructor that create an empty vector my_int_vector(); /*constructor that create an vector with capacity specified as a parameter but doesn't assign values to …

Software Development c++ user-interface
Member Avatar for mrnutty
0
253
Member Avatar for papanyquiL

This is really frustrating me, I know it's something stupid that I missed. I have a combo box that loads all available fonts when the app starts up. When the user selects a font from the combo box, it should change the label to the font they selected. Here's what …

Software Development
Member Avatar for papanyquiL
0
115
Member Avatar for anetbegin

Hi, I am developing a lookup page i.e when i provide a zip code in the textbox and submit the button it should display the details like city,state etc. I've created two tables in the database, one with zip code and other with details city,state etc. how can i display …

Software Development asp.net
Member Avatar for anetbegin
0
110
Member Avatar for Doughnuts

Hello, I am a newbie a C++. I was doing a program where you calculate prime numbers, and it prints prime and non-prime numbers. Here is my code, [CODE]#include <iostream> #include <conio.h> using namespace std; main() { int n = 1; int i = 2; bool IsPrime; int Max; int …

Software Development c++
Member Avatar for Doughnuts
0
284
Member Avatar for tiwas

Hi, I've beeb playing around a bit with files and stuff to learn some of the aspects of C#. In order to not make it too convenient and easy I opted for using a String to hold my path, and then use DirectoryInfo to use it. In one of the …

Software Development
Member Avatar for tiwas
0
111
Member Avatar for jp12861

Here is the code static void Main(string[] args) { int qty, prodNum; double totalRetail; Console.WriteLine("Enter product number 1, 2, or 3. "); prodNum = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter in quantity sold of this product or enter -1 to quit: "); qty = Convert.ToInt32(Console.ReadLine()); totalRetail = 0; while (qty != -1) { switch …

Software Development
Member Avatar for papanyquiL
0
75
Member Avatar for kahaj

I'm using documentation on sun.com to try and learn Java. I was trying a simple Notepad type program but cannot get the menus to display. I'm receiving no errors and cannot figure out what I've done wrong and/or left out. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class NotepadInJava …

Software Development java java-swing
Member Avatar for majestic0110
0
237
Member Avatar for julia2009

Hy there, I'm a newbie so be patient pls. I have a small but useful class (let's call it Class1), and another class, more complex (let's call it Class2). I need to use in the Class2 instances of the Class1. I need to declare objects of Class1 both in private …

Software Development c++
Member Avatar for StuXYZ
0
199
Member Avatar for mikeHL

Hi, I want to process the following xml: [COLOR="Green"]... <a> HHHHeader 1 : xxx <it> yyy </it> zzz HHHHeader 2 : aaa bbb <it> ccc </it> </a> ...[/COLOR] And I want to get via a xslt the following xml [COLOR="Green"]... <a> <Header hd="1"> xxx <it> yyy </it> zzz </Header> <Header …

Software Development regex xml
Member Avatar for mikeHL
-1
139
Member Avatar for JainishP

I'm kind of stumped on a project. The purpose of the project is to decode a floating point number to find it's sign, exponent, and significand, etc... So far I've been able to get a user input float number into binary32 format using few lines of assembly code(professor told us …

Software Development assembly c++
Member Avatar for JainishP
0
190
Member Avatar for Darth Vader

I have a native code snippet that I am going to write in managed code instead. The native snippet code look like this: [code] std::string RClammer = "]"; std::string BigLine = "aaaaaaaa]aaaa"; int pos = 0; while(std::string::npos != (pos = BigLine.find(RClammer, pos))) { BigLine.insert(pos + 1, " "); pos = …

Software Development c++
Member Avatar for Darth Vader
0
282
Member Avatar for evilguyme

ok so i read about file I/O and the that only allows me to edit files... let's say i have a program that needs login info. the user creates his username and password and can then login with it. but when he closes the program, obviously the info. is lost.. …

Software Development c++
Member Avatar for evilguyme
0
172

The End.