43,549 Solved Topics
Remove Filter ![]() | |
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 | |
[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 | |
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++ | |
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 … | |
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 … | |
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 | |
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 | |
//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 | |
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 | |
[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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
.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 … | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
is there any way to disable a loop when the user is inactive / when the screen saver is on? Software Development python | |
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++ | |
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 … | |
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. … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 … | |
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++ | |
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++ |
The End.