43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mical700

I need to output in four columns. 1) The first will contain n. 2) The second will contain pi(n) 3) The third will contain n/ln(n) 4) The fourth will contain the ration of pi(n) to n/ln(n). #include <stdio.h> #include <string.h> #include <stdint.h> #define MAXN 100000000 /* maximum value of N …

Software Development c
Member Avatar for mical700
0
195
Member Avatar for pankajmahor663

Hi, so far i have created a program that has a checkbox option 'dont show this again'. When i check the option, the window not displayed again all goes well here. But the problem is when i have uninstalled the application and reinstall it again, the checkbox option window is …

Software Development asp.net display microsoft
Member Avatar for pankajmahor663
0
181
Member Avatar for NidhiSree

According to MSDN: Control.Disposing Property Gets a value indicating whether the base Control class is in the process of disposing. But when I checked, Disposing property of the control is always false (inside the Dispose() method itself). When will this Disposing property become true?

Software Development asp.net
Member Avatar for NidhiSree
0
143
Member Avatar for imBaCodes

DOes anybody here know how to use send key for alt+s . can you please tell me how to do it. thank you!!

Software Development visual-basic
Member Avatar for imBaCodes
0
909
Member Avatar for imBaCodes

The default print area is upto cell H how can i extend it to I? Can anyone here help me .. thank you.

Software Development pdf visual-basic
1
104
Member Avatar for nah094020

Just wondering how do i get all the nessecary files for my project on netbeans because, when i use the add existing item, i tend to forget where i got it from and have trouble organizing it. Is there a way to find where the file is located at?

Software Development c++ java-netbeans
Member Avatar for nah094020
0
196
Member Avatar for G_S

Hello people. I need an explanation about inheritance I got a little confused in class: This is the modelling problem: There are two objects: doctors and patients. They are expected to have only the following attributes: Doctors have: name, age, id, and salary Patients have: name, age, id, and disease …

Software Development java
Member Avatar for G_S
0
197
Member Avatar for Begginnerdev

Hello my fellow Daniwebers. I am to ask for some ideas for a challenge. I want a good challenge for my skills, and even help expand my skills Please post your challenge below. Thanks, Begginnerdev

Software Development vb.net
Member Avatar for Begginnerdev
1
177
Member Avatar for haze man

I have putten together this code for searching a text file for a users string (User's ID), how every i am aving some error that i dont knw how to fix and was hoping someone could help me. Thanks in advance. #include<stdio.h> #include<string.h> #inlcude<stdlib.h> int main() { FILE *fpcust; int …

Software Development c
Member Avatar for Ancient Dragon
0
228
Member Avatar for Koljik

stupid title i know :) But anyways, is there a way to "go to" a previous line. something like this: 1. something 2. something 3. something 4. if a<b: (go to) / (do) third line ty

Software Development python
Member Avatar for Koljik
-1
240
Member Avatar for Suzie999

Hi. I'm having trouble debugging a rather large project. The first issuse is not knowing how to track the bug down. Here is the text from Assertion Error popup while running in debug mode Debug Assertion Failed > Program...nga Path\file.exe > File: f:\dd\vctools\crt_bld\self_x86\crt\src\xtoa.c > Line: 105 > > Expression: sizeInTChars …

Software Development c++
Member Avatar for Suzie999
0
378
Member Avatar for enkitosh

I'm trying to strip only path from a c string char *path = "~/folder/sometext.txt" so I would get only "~/folder/" Anyone got a hint on how to achieve this? I was thinking of something similar to std::string find_last_of so I could just indicate the last "/" or "\" in the …

Software Development c
Member Avatar for enkitosh
0
119
Member Avatar for murtazamzk

[CODE]#include <stdlib.h> #include <stdio.h> #include<conio.h> void main() { int ch; clrscr(); printf("\n\n~~~~~~~~~~~~~~~~~SHUTDOWN MENU~~~~~~~~~~~~~~~~~~~\n"); printf("1.Shutdown\n2.Restart\n3.Logoff\n4.Hibernate\n5.exit"); printf("\nEnter choice : "); scanf("%d",&ch); switch(ch) { case 1:system("shutdown -s"); break; case 2:system("shutdown -r"); break; case 3:system("shutdown -l"); break; case 4:system("shutdown -h"); break; case 5:exit(1); break; default:printf("Invalid choice"); } getch(); }[/CODE]

Software Development c c# c++
Member Avatar for deceptikon
1
467
Member Avatar for ppstyle

Dim Data1 As String Dim Data2 As String Dim sFinal As String Dim sLeft As String Dim sRight As String Dim quote As String quote = """" Data1 = rtb.SelectedText 'original string Data2 = "<font color=" + quote + codenumber + quote + ">" 'string to insert sLeft = Microsoft.VisualBasic.Left(Data1, …

Software Development vb.net
Member Avatar for G_Waddell
0
166
Member Avatar for l.worboyz

**Task:** "pass these four variables (x,y,w,h) into the getSubimage method of the original_image object." That method returns a BufferedImage, which i need to directly return from my getImageRect method. I have not included my whole code, but i was wondering if anybody could help me out with this? If you …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for pooran.c

import java.text.SimpleDateFormat; import java.util.Date; public class StringtoDate { public static void main (String args[]){ String inputDate = "04.11.2013 11:14:45 GMT 00:00"; Date dat = convertStringToDate(inputDate); } public static Date convertStringToDate(String inDate){ SimpleDateFormat sdf = new SimpleDateFormat("mm.dd.yyyy hh24:mm:ss"); Date date = new Date(); try { date = sdf.parse(inDate); } catch (Exception …

Software Development java
Member Avatar for pooran.c
0
2K
Member Avatar for nova37

i write one windows service working perfect , but when i check it in windows services list then its description tab is empty so i thought to add description to it , but do not know how to add description to it , so any body have any idea how …

Software Development c++ windows-api
Member Avatar for nova37
0
221
Member Avatar for LeNenne

Hi I am going to be crazy I have a txtbox with 1950-04-23 How can I extract just 1950 from that box and take the pc's date ( as today is 2013-04-23) to a label.caption and the result shall be 63 years in the labels caption. Lenny

Software Development visual-basic
Member Avatar for LeNenne
0
132
Member Avatar for dusto

Ok, me again. When I add the records into the database, I am getting the aryFields(#) instead the called index in the array. I look at everything and can't see why I'm not getting the desired data instead of the aryFields() written into the database. Uugh. Private Sub btnLoadFromText_Click(ByVal sender …

Software Development open-source vb.net
Member Avatar for dusto
0
117
Member Avatar for dusto

Ok, so this will be longwinded, but I'll try and explain what I'm trying to accomplish. Our form has 3 buttons. 1. Clear Database (Working) 2. Load database from Text File 3. Load listbox from database (I have this working) Our project has 2 forms, one being the form which …

Software Development display open-source vb.net
Member Avatar for dusto
0
193
Member Avatar for GeoEqual

xlWSheet.Range("C19:K19").Merge xlWSheet.Range("C20:K20").Merge xlWSheet.Range("C21:K21").Merge xlWSheet.Range("C22:K22").Merge up to 54, thanks

Software Development visual-basic
Member Avatar for imBaCodes
0
154
Member Avatar for game06

i am drawing two rect in paint method. 1st rect i want to rotate it but 2nd rect i dont want to rotate it. the code i have should rotate only 1st rect but the problem is that when it rotate it missup the x, y postion of rect. this …

Software Development java
Member Avatar for Ezzaral
0
185
Member Avatar for Tarwit

I have two colums. Both include 8 digits numbers with shorter numbers between. I want to calculate how many rows between two 8 digits numbers have first one and the second one and then I need to add second column next to the first one but with adding missing rows …

Software Development vb.net
Member Avatar for TnTinMN
0
289
Member Avatar for Sammys.Man

Hi guys, im having trouble summing up the column in my (unbound) datagridview, i can add to the DGV fine, but when trying to sum up a column it says "Input string was not in a correct format." heres my code Private Sub btn_Add_Click(sender As System.Object, e As System.EventArgs) Handles …

Software Development vb.net
Member Avatar for TnTinMN
0
148
Member Avatar for bibiki

hey there, I have two classes with a one-to-many relationship. For ilustration: public class Customer { Business business; Date created; } public class Business { } Now, when I do the following: new StringBuilder().append("SELECT business FROM ").append(Customer.class.getName()) it works perfectly fine. However, when I include filtering based on created field …

Software Development java
Member Avatar for bibiki
0
142
Member Avatar for G_S

Hello I am a little confused. I had always thought that a class can have objects from other clases as attributes. My teacher recently told me that this is not true... so I am confused now: if one of the attributes of my class is a String, would that be …

Software Development java
Member Avatar for G_S
0
196
Member Avatar for saurabh.mehta.33234

I have the following code.According to this the values of pointers p[0] and p[1] remains unchanged since the swap is made to local variables in swap function.Now my doubt is how can I swap the pointers p[0] and p[1] inside the function swap?? #include<stdio.h> int main() { char *p[2]={"hello","good morning"}; …

Software Development c
Member Avatar for Schol-R-LEA
-1
197
Member Avatar for MasterHacker110

I made this very simple applet just for fun but it doesn't work: package applet; import java.awt.*; public class Applet extends java.applet.Applet { public void init() { } public void paint(Graphics g) { g.drawOval(0, 0, 250, 100); g.setColor(Color.RED); g.drawString("First Applet", 10, 50); } } And heres my HTML code: <html> …

Software Development java
Member Avatar for JamesCherrill
0
186
Member Avatar for chdboy

I have Class called ConnectionDB and in this class I have Main method and another function in the class ConnectionDB,That is private static Connection DBConnectionstring() In this function I have Connection URL ,Drivers inside this function . I want this function to be used in another class (GUILogin) with main …

Software Development java
Member Avatar for chdboy
0
207
Member Avatar for Ismatus3

Hello , When i call a window from the main one , how to hide this one , after calling the second , and define it as a main window , this is the code of the two windows : def InterfaceDeps(): global interf1 interf1 = Toplevel() interf1.geometry("500x400") interf1.title(' Base …

Software Development python
Member Avatar for Ismatus3
0
139
Member Avatar for joseph.lyons.754

Hey Guys, So I was doin a tutorial and I incorporated it into my code and it works for the most part. The program gives you a list of town names you pick one and hit search. All good so far then the program goes into the database and pulls …

Software Development java mysql sql
Member Avatar for joseph.lyons.754
0
284
Member Avatar for nik701a

**Window1.xaml** <Canvas x:Name="mycanvas"> <Button Width="100" Height="50" Canvas.Left="350" Canvas.Top="50" Click="Button_Click">Click to Display</Button> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="470" Name="cc1" Template="{StaticResource DesignerItemTemplate}"> <Grid x:Name="g1"> <Ellipse Fill="LightGray" Stroke="Black" Stretch="Fill" Name="myElli" IsHitTestVisible="False"/> <TextBlock VerticalAlignment="Center" TextAlignment="Center" Height="61.96" Margin="10,35.02,10,33.02">Simple Ellipse</TextBlock> </Grid> </ContentControl> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="150" Template="{StaticResource DesignerItemTemplate}"> <Grid> <Path Fill="LightGray" Stroke="Black" Name="myPath" Data="M 0,5 5,0 …

Software Development asp.net
Member Avatar for nik701a
0
3K
Member Avatar for ralph.d.abernathy.1

Hello everyone! So I wrote a program that simulates a dice game, almost like the game of Craps. I want to turn this normal console app into a dialogue based MFC. So I would create a button labeled "Roll" and the window would show two die being rolled. Here is …

Software Development c++ gaming
Member Avatar for ktsangop
0
455
Member Avatar for 123mehran

Hi there I wanna **This is a "test".** C code Thanks alot

Software Development c c# c++
Member Avatar for ftangpos
-1
183
Member Avatar for fatalaccidents

Hello all, I'm having trouble writing a spell checker as my recursive function isn't returning what I would like it to. It is meant to chop off the ends of words likes "baker" to bake and check against a predined dictionary. I used recursion for words like "baker's". I have …

Software Development java
Member Avatar for bguild
0
180
Member Avatar for old_apache

i have 2 files, one file created on Windows and another was made on Ubuntu, i want to use this command: comm -12 file1 file2 how do i do that?

Software Development shell-scripting ubuntu
Member Avatar for old_apache
0
186
Member Avatar for old_apache

i got a string var=96.33% from 120 how do i get 96.33 from $var?

Software Development shell-scripting
Member Avatar for old_apache
0
242
Member Avatar for Papa_Don

Hi group, I recognize the today, most people navigate from control to control within a form with their mouse. However some old school people may want to use a "enter" key or a up, down, left or right arrow. I'm curious to know if these kinds of events (if that's …

Software Development vb.net visual-basic
Member Avatar for Maligui
0
568
Member Avatar for TempoGnome

Hi! I've been making this game for fun and have run into a few problems, a friend recommended me to ask you guys for help. I have three problems: 1. The player doesn't recongnize when it's not on a platform and because of this it won't fall down. I've narrowed …

Software Development python
Member Avatar for zjtpjs4
0
352
Member Avatar for shanki himanshu

there is function : int median(int a[], int b[]) { } how do i find the number of elements in a and b? i am doing sizeof(a)/sizeof(int) but it does not give right results. P.S. i need to submit the function only in online compiler so i dont know what …

Software Development c++
Member Avatar for shanki himanshu
0
380
Member Avatar for IsaacMessi10

Public Class Close Inherits Windows.Forms.Button Public Sub New() Me.Size = New System.Drawing.Point(25, 25) Me.FlatStyle = Windows.Forms.FlatStyle.Flat Me.BackgroundImage = My.Resources.CloseNormal Me.BackgroundImageLayout = Windows.Forms.ImageLayout.Stretch Me.BackColor = Drawing.Color.Transparent Me.Font = New System.Drawing.Font("Calibri", 10, Drawing.FontStyle.Regular, Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.ForeColor = Drawing.Color.Black Me.FlatAppearance.BorderColor = Drawing.Color.DeepSkyBlue Me.FlatAppearance.MouseDownBackColor = Drawing.Color.Transparent Me.FlatAppearance.MouseOverBackColor = Drawing.Color.Transparent Me.FlatAppearance.BorderSize = 0 End …

Software Development vb.net
Member Avatar for tinstaafl
0
214
Member Avatar for kyle.mace.35

Alright so I have a problem with EventQueue and Event. In Event my second constructor gets an error saying expected initializer. If anyone can point me in the right direction to what is wrong that would be great. Now if i comment that out i get an error with EventQueue …

Software Development c++
Member Avatar for kyle.mace.35
0
161
Member Avatar for tony75

Hi I have 4 files in directory on my desktop? My question is 1.How can I display for each file only the name, the size and the date in this order? 2. How can I display all files sorted accorded their name? #!/usr/bin/perl use strict; use warnings; my $dir = …

Software Development perl
Member Avatar for tony75
0
4K
Member Avatar for lucky banda

drawing multi-colored warms on a vb form.an individual warm will consist of number of segments and segment will be a line of certain width and colour

Software Development vb.net
Member Avatar for Begginnerdev
0
91
Member Avatar for Aven.Seven

Greetings guys i'm stuck in this problem for 2 days now can you guy tell me the problem? here's the code If errorMsgLbl.Text = "Password match" Then sqlCmd = New SqlCommand("INSERT INTO registered_cust_tbl([customer_fname], [customer_lname], [customer_DoB], [customer_Contact], [customer_Email], " & _ " [customer_Address], [customer_Gender], [customer_Ailments], [customer_Username], [customer_Password], " & _ " …

Software Development vb.net
Member Avatar for Hazuan Nazri
0
219
Member Avatar for jalpesh_007

i have made one program,but it will give none of the port number. Following files i have made **SimpleRead.java** import java.io.*; import java.util.*; import javax.comm.*; import java.nio.ByteBuffer; public class SimpleRead extends SpeedometerExample implements Runnable, SerialPortEventListener { static CommPortIdentifier portId; static Enumeration portList; byte[] readBuffer=null; InputStream inputStream; SerialPort serialPort; Thread readThread; …

Software Development java java-netbeans java-swing open-source
Member Avatar for JamesCherrill
0
338
Member Avatar for LeNenne

Hi I am going to solve a problem and have now idea of how, I will that in the list1 only those people that correspond to the date of the date is showing. No one else than that one of the day the word Prn is standing for birthday in …

Software Development visual-basic
Member Avatar for LeNenne
0
176
Member Avatar for virusisfound

How to divide a number into multiple parts so that the resulting sum is equal to the input? for ex : input from textbox : first input is(txt_val1) :5 second input is(txt_val2) :3 output : 3+2=5 2+3=5 4+1=5 1+4=5 or any other combinations like these. both input are dynamic always.

Software Development
Member Avatar for virusisfound
0
432
Member Avatar for victoria.lim.773124

#include<iostream> #include<cstdlib> #include<string> using namespace std; class Menu { public: Menu(); virtual void showMenu(); private: }; Menu::Menu() { } void Menu::showMenu() { cout<<"\nFood Selection:"<<endl<<endl; cout<<" ~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*\n"; cout<<" Food Category "<<endl; cout<<" __________________________________\n"; cout<<" 1. Appetizer *"<<endl; cout<<" 2. Main Course *"<<endl; cout<<" 3. Drinks *"<<endl; cout<<" 4. Dessert *"<<endl; cout<<" …

Software Development apple c++
Member Avatar for victoria.lim.773124
0
260
Member Avatar for Necrozze

Im doing this game for school and it's supposed to be finished real soon and then of course al the problems start coming up, the game now crashes, sometimes after a few seconds and sometimes directly on start. Don't really know why, a thought is that its doing to much …

Software Development gaming python
Member Avatar for Necrozze
0
389

The End.