199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
I am trying to dynamically add checkboxes to a panel depending on if a file exists. My code is: [CODE]While d1 <= d2 If File.Exists("C:\bnb\" & m1 & "-" & d1 & "-" & y1) = False Then rm1CheckBoxes(rm1I) = New CheckBox() rm2CheckBoxes(rm2I) = New CheckBox() rm1CheckBoxes(rm1I).Location = New Point(20, … | |
pleaseeeeeeee hepl meeeeeeee!!!!!!!!! i have 2 tables : time1 (noo integer,days varchar,times varchar,Tindex integer,primary key (noo,Tindex)) timetable1_1(COn integer,coursename varchar,dayss varchar,timess varchar, primary key(COn)) i have created a new table temptime1 and tried to fill it with the rows in time1 which their days and times are not available in timetable1_1 … | |
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 … | |
Hi everyone, Can anyone tells me what this error means: error: decrement of read-only location. thanks | |
I have a stored procedure in SQL Server 2008 that follows: USE [Numbers] GO /****** Object: StoredProcedure [dbo].[thenextnum] Script Date: 09/23/2009 15:35:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER procedure [dbo].[thenextnum] @descrip varchar(50) as begin declare @t table (nextseq varchar(100)) update number_definition_table set Current_Number=Current_Number+1 output inserted.prefix_format +(Case … | |
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 … | |
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 … | |
Please share with me which direction to head on the following PHP work environment i.e. Which IDE browser addon etc. Base application development directory and subs Base files for a typical site any help in rapid app dev Thanks to all that share "THEIR" configuration.... | |
Heyy im a 12th grade student trying 2 put pictures in my cricket project i have 2 display pics of all players i have a code but it works only for some pictures at times it crashed down and pc shuts down any1 has a proper code to display 256 … | |
How to create an installable exe with vb.net 2005? i'm a novice to .net and let me knw a it simply.. Thnkx in advance | |
I was just wondering if anyone could help me get a good compiler for C. Im taking a intro to c class and my compiler is not the greatest. The key word is i need a good free one. If anyone know of some good ones please let me know … | |
how can i add the items in combox?i want to add item and then if user select that item it will open new form containg item which we selected.i want to make combox in which i want to select all browser which i have installed in my system and then … | |
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 * … | |
hello I want to change language from regional language by code. how I would be able to do this? | |
I am trying to print out hello fred and I managed only to print out hello. what change do I need to make to print fred too. [code] #include <stdio.h> #include <string.h> #include <stdlib.h> // // A short program to print the string "Hello, Fred" // int main (int argc, … | |
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 … | |
Load a user generated character set, should work on computers equipped with VGA cards. Assembles with 16-bit NASM as an absolute binary image (.COM). [code] bits 16 org 100h jmp word drip0_start char_set: times 416 db 0 msg db '0o l0^d user char generated',0xd,0xa db 'bitmaps can also be used....',0xd,0xa,0x24 … | |
Hello I am unsure of the correct way to make this function below(multiply) stop if a condition is true? The reason why is because of the function type, its not an int, string, void etc, I am unsure how to stop a function whos type is the class name? Do … | |
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 … | |
hello I'm haveing alot of trouble here, i couldnt figure out how to get the pie to reflect my amoritization output using on only 2 slices and I haev to hand in something today so I thought I would jsut color the 4 sections with representative colors. If a person … | |
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 … | |
Hi all I have a datagrid filled with data from Oracle database, I have a textbox and a button search and on the textbox a person/user can enter the Title of the book he/she wana search the the results should be displayed in the datagrid here is the code on … | |
Hello all, I recently started using Python to test a Bluetooth Push application prototype and everything was working great until threading. I wonder if someone knows how to start multiple threads of connectpush() with Obexftp running under Linux? So far with the code below I have to wait until the … | |
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 … | |
Hey guys, I have written a recursive function mazeTraverse which finds the path of the mouse to find its food which is placed inside the maze. I am given a maze of of 15 rows and 25 columns. Mouse's starting position is (8,1)[eighth row and 1st column] and the food … | |
[CODE] template<class T, int size = 50> class genClass { T storage[size]; ...... void menberFun() { ...... if (someVar < size){......} ...... } } [/CODE] which uses an integer wariable size as a parameter to template to a declaration of genClass, which does not include size as a parameter to … | |
Hi , i wanna learn more about N-Tier Applications ASP.NET/C#.NET !! any Video Tutorials about how to Develop N-Tier App. ?? i need any simple Tutorial about this , please !! Thanks alot | |
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 … | |
Hi all, i had Web Page include [B][U]DataList [/U][/B]control , [B][U]TextBox [/U][/B]and [B][U]Button [/U][/B].. [B]DataList1 [/B]: Getting Data from SQLDB [B]TextBox [/B]: for Editing Selected Field in [B]DataList [/B] [B]Button [/B]: Submit Editing when i Click [B]Button [/B]it Editing Data Succefully in [I]SQLDB [/I], but in same Time [B]DataList [/B]Control[COLOR="Red"] … | |
Hi all, I am trying to execute a windows command from within my java program, but I can't get it to execute the DOS command. Here's my code: [code=java] try { Process p = Runtime.getRuntime().exec("cmd.exe /C cls"); } catch (IOException e) { // catch exception } [/code] But, the code … | |
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 … | |
I doing the common 'enter scores, total, average and display" problem as I'm learning VB (see screenshot). It works great with the following code: ___________ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim score As Integer = score Static scoreTotal As Integer = scoreTotal Static … | |
[size=5][b]1.- WTF![/b][/size] The most repeated sentence in code reviews… [img]http://www.makinggoodsoftware.com/wp-content/uploads/2009/09/wtfm.jpg[/img] [size=5][b]2.- It works in my machine![/b][/size] We all have used this one when blamed for some error… [size=5][b]3.- D’oh![/b][/size] - Hi Homer, have you removed the debug code from production? [img]http://www.makinggoodsoftware.com/wp-content/uploads/2009/07/homer-simpson-doh.jpg[/img] [size=5][b]4.- It will be ready tomorrow.[/b][/size] The problem with … | |
How can I have a selected item in a combobox display the entire row in a data gridview using vb.net. | |
Hi All I have a problem with a a page with 2 forms on it. The first form controls the input from a drop down list and the second has a series of text boxes. When I submit the form I cannot get any values from the second form. I'm … | |
I'm having trouble understanding coordinate space using perspective in OpenGL. Basically I can't figure out how many units will represent the entire screen given a specific z-value or how spacing should be done, etc. In all the tutorials I've seen they plot these nice shapes placed evenly apart in different … | |
Hi friends, Now I feel that I am pretty good in C. Want to do something really interesting.Does any one have ideas of creating useful 'softwares' in C :) Pls guide me.. ![]() | |
Okay, it's been a long time since I've programmed in C++! Languages change considerably in the last 5 years or so. In reviewing some source code I often see statements like this: [CODE] wxString label; if (name == wxT("Undo")) { label = _("Undo");[/CODE] obviously, I snipped out a lot of … | |
Hello DaniWeb. Just brushing up on some Java and got a quick syntax question. What does the this code do? [CODE]LoginForm formBean = (LoginForm)form;[/CODE] Now I know that a formBean object of type LoginForm is being created but I dont know what its being declared with. Whats happening on the … | |
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 … | |
ok so i am suppose to write a program that displays binary and hexadecimal as so 0000 1010 A, but some of my code shows 1C and i dont know how to fix it. please help [code=c++] /* */ #include<iostream> using namespace std; int main() { int arr[8]; char p … | |
Hello, I want to create reports in php, but i have no clue where to start from. Could you list me some good softwares to generate reports in php? It would be of great help ! Thanks ! | |
Write a unit conversion program that asks the user to identify the unit from which they want to convert and the unit to which they want to convert. Legal units are inches, feet, miles, millimetres, centimetres, meters, and kilometres. Convert from? Inches Convert to? Millimetres Value? 10 10 in = … | |
I am creating a scripting engine that would execute my own scripting language. The engine does a double pass through the script, the first pass parses the file and builds the data structure and the second executes the script. The error I am getting is when I try to read … | |
ok ok i got it now right i copy it to vector and sort it..... here is the code #include <iostream> #include <fstream> #include <algorithm> #include <string> #include <map> #include <vector> using namespace std; typedef map<string,int> word_count_list; struct val_lessthan : binary_function < pair<string,int>, pair<string,int>, bool > { bool operator() (const … | |
.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 I want to create a simple bi-directional variable binding in java. assume having a String and a jTextField [CODE=java] String stringVariable; JTextField jTextField; [/CODE] I bound the jTextField.text property to the stringVariable using this code : [CODE=java] org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create("${stringVariable}"), jTextField, org.jdesktop.beansbinding.BeanProperty.create("text")); bindingGroup.addBinding(binding); bindingGroup.bind(); [/CODE] any … | |
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 … | |
What is need of default arguments in function overloading in C++? |
The End.