132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for karodhill

I am trying to calculate a cable bill for a residential and business customer can someone point me in the right direction for my logic?For residential customers it is 4.50 processing fee,30 basic service fee and 5 per channel. For business customers processing fee = 16.50 basicservice fee is 80 …

Software Development vb.net
Member Avatar for Reverend Jim
0
149
Member Avatar for dipankarnalui

i want to use y axes as datetime and x axes as interger. i used zedgraph control. i used the following code Imports ZedGraph Public Class Form6 Dim frames As Integer Dim time1 As TimeSpan() Public Sub New(ByVal no_frame As Integer, ByVal time() As TimeSpan) InitializeComponent() frames = no_frame time1 …

Software Development vb.net
Member Avatar for tinstaafl
0
677
Member Avatar for LulaLulaLula

Hi, There are 50+ textboxes and comboboxes on my form and I created a label to store the tag of each textbox or combobox as it is focused. This is portion of what I had currently. Private Sub cmbCGWPBCl1t_GotFocus() Forms!Main!lblMessage.Caption = Me!cmbCGWPBCl1t.Tag End Sub Private Sub txtSUHal_GotFocus() Forms!Main!lblMessage.Caption = Me!txtSUHal.Tag …

Software Development display vb.net
Member Avatar for Reverend Jim
0
250
Member Avatar for kavitadc

i am bca student,here is my main html page in that there is dropdownlist,in that thre r lots of root websites...n thre is textbox in that we hv to enter keyword,,,n accordind to that keyword after pressing search button it should be give me all weblinks related to that perticular …

Software Development java
Member Avatar for Slavi
0
122
Member Avatar for Mpradeep

Hi..... this is pradeep I'm intrested to create a better operating system than "Wintel"im also learnt the C,C++ languages.is there any possible to create operating system...........?

Software Development java operating-system
Member Avatar for Slavi
0
106
Member Avatar for dipankarnalui

Dim x As Integer Dim y(100) As TimeSpan For x = 1 To frames y(x) = time1(x) list.Add(x, y(x)) Next x what is the solution for this ? is there any other graph or bar chart control in vb.net ? if yes then how to use bar chart in vb.net …

Software Development vb.net
Member Avatar for ddanbe
0
327
Member Avatar for gahhon

1. What is the format for the first line of a method? 2. How can you view javadoc for a class? For the (1.) I am totally understand by depending on the developer design of the method. But how am i going to explain this since the tutor won't ask …

Software Development java web-design
Member Avatar for stultuske
0
247
Member Avatar for prakash2813

Hello, I am evaluating a string expression using recursion. It is not working for parenthesis, please help me. Here is my code // For Addition and Substraction static int evalAS(String e) { int p1 = e.lastIndexOf("+"); int p2 = e.lastIndexOf("-"); int p = Math.max(p1, p2); if (p == -1) return …

Software Development java
Member Avatar for stultuske
0
318
Member Avatar for Mayukh_1

Why the following code is giving me an error like this `make: *** [all] Segmentation fault (core dumped)` the source code is like this #include <stdio.h> int main() { int i; char* ptr = NULL; *(ptr + 0) = 'H'; *(ptr + 1) = 'e'; *(ptr + 2) = 'l'; …

Software Development c
Member Avatar for deceptikon
0
155
Member Avatar for Mohamed_37

#include <stdio.h> #include <stdlib.h> #include <string.h> #include "memo_list.h" void shownotes(Memo item); char * s_gets(char * st, int n); int main() { List Notes; Memo temp; FILE *wfile,*sfile,*lfile,*rfile; char ch; char *line ; /* initialize */ InitializeList(&Notes); /*check IsFull? */ if (ListIsFull(&Notes)) { fprintf(stderr,"No memory available! Bye!\n"); exit(1); } puts("Enter char …

Software Development c file-system
0
106
Member Avatar for Ma Nicole Ydralyn

Can I ask on how to use the goto statement because here in my program I am using Function and inorder to go back from the top I use goto statement.. Why isn't it working?? #include<iostream> using namespace std; void rankE(){ cout<<"Rank: E "<<endl<<endl; } void rankD(){ cout<<"Rank: D "<<endl<<endl; …

Software Development c++
Member Avatar for deceptikon
0
393
Member Avatar for andreas.petrou.967

Sort numbers random in array import java.util.*; class FillAndSort { public static void main( String[ ] args ) { if ( args.length != 1 ) { System.err.println( "java FillAndSort <number of doubles>" ); return; //*** exits main and, therefore, the program stops } int n = Integer.parseInt( args[ 0 ] …

Software Development java
Member Avatar for JamesCherrill
0
184
Member Avatar for necrovore

Hi, I am trying to explore PoDoFo for parsing PDF files. So I tried to build it on Visual studio following the procedure in the ReadMe.html that came with the package. So i used the following cmake command: cmake -G "Visual Studio 9 2008" -DCMAKE_INCLUDE_PATH="D:\PoDoFo_VS\CmakeRefer\ft245\freetype-2.4.5\include;D:\PoDoFo_VS\CmakeRefer\libjpeg\build\include;D:\PoDoFo_VS\CmakeRefer\libjpeg\build;D:\PoDoFo_VS\CmakeRefer\zlib\build\include" -DCMAKE_LIBRARY_PATH="D:\PoDoFo_VS\CmakeRefer\ft245\freetype-2.4.5\objs\win32\vc2013;D:\PoDoFo_VS\CmakeRefer\libjpeg\build\lib;D:\PoDoFo_VS\CmakeRefer\libjpeg\build;D:\PoDoFo_VS\CmakeRefer\zlib\build\lib" -DPODOFO_BUILD_SHARED:BOOL=FALSE -DFREETYPE_LIBRARY_NAMES_DEBUG=freetype245MT_D -DFREETYPE_LIBRARY_NAMES_RELEASE=freetype245MT .. …

Software Development c++ pdf visual-studio
Member Avatar for necrovore
0
2K
Member Avatar for Erica_2

I have been hitting a brick wall with this program. I am new at c++ and the text only shows really really easy examples. the deposit function works fine, but i am running into problems with the checking function and doing the final output. 1. when i type in 'C …

Software Development c++ visual-basic
Member Avatar for Erica_2
0
928
Member Avatar for tucker001

Hi everyone I am fairly new to programming VB. Net I have a program I have written to calculate the totals of snowfall for an each month and make it a yearly total for snow fall. Here is the code I currently have. Public Class Form1 Private Sub Button1_Click(sender As …

Software Development vb.net
Member Avatar for Reverend Jim
0
144
Member Avatar for Mazahir

I have problem to understand threads. Can someone help me to know how i can do rest of this program. Here is program text first: The program will read a file where the first line contains the number of words in the rest of the file, one word on each …

Software Development file-system java
Member Avatar for overwraith
0
326
Member Avatar for cambalinho

how can i copy the parent background(DC) control to child control DC?

Software Development c++
Member Avatar for cambalinho
0
112
Member Avatar for preslav_milev

Hello ! I have a task that is difficult for me to handle. The task is: Create recursive function that can be generate a string of length N (N <= 100), formed by the letters 'A', 'B' and 'C' and does not containing two identical adjacent substring. For example: enter …

Software Development c++
Member Avatar for preslav_milev
0
632
Member Avatar for rola theo

Hi I have code in VBA i want to convert it to VB.NET the code Dim lastrow As Integer Dim curRow As Integer Dim newrow As Integer lastrow = exWS2.Cells.Rows.End(XlDirection.xlDown).Row exWS2.Cells(8, 6).Value = "Max" exWS2.Cells(8, 7).Value = "=Max(B2:B" & lastrow & ")" newrow = 8 For curRow = 2 To …

Software Development vb.net
Member Avatar for rola theo
0
2K
Member Avatar for nitin1

#include<iostream> using namespace std; int add(int x,int y) { int ans=0; int carry=0; for(int i=0;i<=31;i++) { int p = (1<<i)&x; int q = (1<<i)&y; int r = p ^ q; r = r^(carry<<i); ans = r | ans; if(p&q || p&(carry<<i) || q&(carry<<i)) carry = 1; else carry =0; } …

Software Development c++
Member Avatar for rubberman
0
165
Member Avatar for Ma Nicole Ydralyn

Hi I just wanna know what is wrong in my program I'm a little bit confused using FUNCTION... Thank you... #include<iostream> #include<cstring> using namespace std; struct Name{ char* names; int grades; }; int main(){ int a, Jo; Name John; Name Alvin; John.names; John.grades; Alvin.names; Alvin.grades; std::cout<<"Student Name: "; cin>>John.names; cout<<endl; …

Software Development c++
Member Avatar for Ma Nicole Ydralyn
0
161
Member Avatar for masterinex

i have a code which asks creates a structures and then for each it will check if the asks the user to enter a name and it will check if the name already exists within the database. if the name can be found , it will asks the user to …

Software Development c storage
Member Avatar for deceptikon
0
450
Member Avatar for jamesjohnson25

Is there any way to reflect the value of n in cost function globally . so that the value of n in getLeastCost function with be changed instead of n = 0 class TheShuttles: def getLeastCost(self,baseCost,seatCost,cnt): n = 0 def cost(x): n = sum( m / x + (m % …

Software Development python
Member Avatar for jamesjohnson25
0
244
Member Avatar for Suzie999

Earlier I posted a snippet which showed [how to create a 2 dimensional string array from an SQLite database table](https://www.daniweb.com/software-development/csharp/code/494083/sqlite-database-table-to-2-dimensional-string-array-). This snippet is the reverse, if you will, where we create an SQLite database table from a 2d string array. It should be noted that this code has it's limitations, …

Software Development sqlite
Member Avatar for Suzie999
0
3K
Member Avatar for Njay19

Not sure how to put my code in to excel. 1.#include <iostream> 2.using namespace std; 3. 4.int main() 5.{ 6. const int n = 20; 7. int Array[n] = { 3, 5, 2, 9, 6, 12, 16, 11, 18, 4, 14, 8, 1, 15, 17, 7, 19, 13, 20, 10 …

Software Development c++ microsoft-office
Member Avatar for Njay19
0
317
Member Avatar for StarTrekCafe

hi. can klp please contact me. on the software development chat, he says he is helping me out with a project. have not heard from him, can any one help. patiently waiting, as in australia. marvin from adelaide, australia.

Software Development
Member Avatar for rubberman
0
134
Member Avatar for Trench37716

I have this gigantic query that returns certain data from my MSSQL Database (working perfectly- Courtesy of djjeavons). I want to sort and arrange this data in order. I want if the user selects a range of dates from the form (ex. November 1, 2014 - November 9, 2014), the …

Software Development microsoft sql vb.net
Member Avatar for J.C. SolvoTerra
0
409
Member Avatar for chevy_1

> So basically I just started learning to use Windows forms with c++. I am creating an inventory/point of sale system. I have done the inventory part but now I want to do the sales part but I'm not sure how to go about it. I want to create a …

Software Development c++ microsoft
Member Avatar for mlesniak
0
295
Member Avatar for johans22

I am very new to vb6.0. I got these questions: in vba 6.0, how to check if time is between today 6:00 PM and next day 6:00 AM then do something. in vba 6.0, how to check if time is between today 1:00 AM and 6:00 AM then do something. …

Software Development visual-basic
Member Avatar for mlesniak
0
118
Member Avatar for rayhan85

Hi , here is my code where i tried to separate the computation into a process and the I/O into another process. when i do compile there is no error, but when i run it; it goes spinning and spinning without stoping.. even i declared the lock variabe in a …

Software Development c
Member Avatar for rubberman
0
107
Member Avatar for TekknoDraykko

I'm trying to change the form icon on an app I'm creating but I've forgotten how. Does anyone remember how to create a winform icon from an image file (i.e.- jpeg, bmp, etc)?

Software Development
Member Avatar for ddanbe
0
246
Member Avatar for rayhan85

Please l have single processor C code and I need to write it in multiprocessor with mutul exclusion. Can any ony one help me. I have uploaded C code as attachement

Software Development c
Member Avatar for Schol-R-LEA
0
254
Member Avatar for sabaheen

#include<iostream> usingnamespacestd; constint MAX_SIZE = 200; int compare(intone[], inttwo[], intsize) { for(inti = 0; i<size;i++) if(one[i] <two[i]) return -1; elseif(one[i] >two[i]) return 1; return 0; } void main() { intN; cout<<"Enter the array size: "; cin>>N; //size must be less than MAX_SIZE int one[MAX_SIZE]; int two[MAX_SIZE]; cout<<"Ente the elements of …

Software Development c++
Member Avatar for rubberman
0
1K
Member Avatar for J.C. SolvoTerra

Hello Dear DaniWeber's. I've been away for some time, and have recently made the transition from VB to C# (Finally). Using C# has opened my eyes to many things that I had either not fully understood, or had a lazy attitude towards. I find myself visiting the core of OOP …

Software Development data-structure oop user-interface
Member Avatar for DaveAmour
0
273
Member Avatar for loldafuq

Create a program that contains the following functions: -create two dynamic stacks with integer data contained in an external file. -Sort items in stacks by the selection sort method -Record outputs in an external file. Main function main ()-menu selection functions and check the status of the data I dont …

Software Development c++ ios
Member Avatar for loldafuq
0
434
Member Avatar for Wuhoo

I managed to disable %, $, #, | in my application using the script below: 101 ACCELERATORS LANGUAGE LANG_KOREAN, 0x1 { VK_F4, 40002, NOINVERT, ALT, VIRTKEY VK_RETURN, 40001, NOINVERT, ALT, VIRTKEY "%", 104 "#", 104 "$", 104 "|", 104 VK_NUMPAD0, 104, NOINVERT, ALT, VIRTKEY VK_NUMPAD1, 104, NOINVERT, ALT, VIRTKEY VK_NUMPAD2, …

Software Development vb.net
Member Avatar for cgeier
0
311
Member Avatar for Ma Nicole Ydralyn

Hi there... I'm having some difficulties in my studies. We were asked by our teacher to make a program on how to calculate Frequency Distribution Table and also with the calculations of Mean, Median, and Mode. Can I ask some help ??

Software Development c++
Member Avatar for Ma Nicole Ydralyn
0
101
Member Avatar for jamesjohnson25

Value of set(sum(french,())) = set(['mardi', 'pass\xc3\xa9', 'voyez', 'envoy\xc3\xa9', 'membres', 's\xc3\xa9lection', 'peut', 'remplissaient', '\xc3\xa9t\xc3\xa9', 'prononcent', 'travaux', 'd\xc3\xa9terminent', 'trop', 'lib\xc3\xa9raux', 'd\xc3\xa9clar\xc3\xa9', 'dont', 'le', 'mais', 'la', '(', ',', 'internationales', 'Les',.....]) tm = {('se', 'est', '-', 'il', 'pass\xc3\xa9'): [phrase(english='has happened', logprob=0.0)], ('pos\xc3\xa9e',): [phrase(english='asked', logprob=-0.261521458626)], ('le', 'cours', 'de', 'les', 'deux', 'prochaines'): [phrase(english='the next two', logprob=0.0)], …

Software Development python
Member Avatar for Gribouillis
0
250
Member Avatar for shahera.arafat

Hi everyone :)))) there is a problem here !this code should draw a rectangle whenever I presse on the mouse ! but actually it doesn't do that !! when I execute the prog. it gives me the frame window ! but when I presse the mouse ,it should draw a …

Software Development java java-swing
Member Avatar for shahera.arafat
0
111
Member Avatar for Suzie999

Hi guys. I have a date in format "2015-04-04 10:50" (yyyy-MM-dd hh:mm) I'm having a tough time finding a way to alter this date if a condition is met. The condition is not the problem, I can get a true of false but the conversion is proving difficult to fathom …

Software Development
Member Avatar for DaveAmour
0
248
Member Avatar for matjojo

!using python 3! first of all, i am a rather noobish python coder, so please dont make the answers too hard to understand. I was trying to get an input from the user with raw_input(), that input had to be the same as a predefined string, i came at: x …

Software Development python
Member Avatar for matjojo
0
269
Member Avatar for Mica_1

**Hi! How do I put the random number generated in an array so that I can make each number in it unique? Thanks! :)** #include <cstdlib> #include <ctime> #include <iostream> using namespace std; int generateRandomNo(int randomNumber){ srand(time(0)); randomNumber = rand()%10000; return randomNumber; } int main(){ int randomNumber; cout << generateRandomNo(randomNumber); …

Software Development c++
Member Avatar for phoenix254
0
220
Member Avatar for mimi_1

I really don't know what the problems occurs inside this coding. I do not have any idea what this error means. If anybody can help me I would be so grateful. #include<string> #include<iostream> #include<stdlib.h> using namespace std; int num=1; int counterforanalog=0; int counterfordigital=0; int counterforsmartwatch=0; class watch private: int watch_id; …

Software Development c++
Member Avatar for mimi_1
0
458
Member Avatar for fatalaccidents

Hello all, I was hoping to figure out a code that could find out whether a point was inside a group of points. I already noticed that I could create a convex hull from the points with the scipy.spatial.ConvexHull module. What I'm trying to do is then find a way …

Software Development python
Member Avatar for snippsat
0
1K
Member Avatar for ddanbe

Is it possible to let an overridden method from a base class to return the type of the derived class? What I mean is: namespace test //with some "pseudo" code { class Base<T> { //fields ... //properties ... // ... public virtual Base<T> BaseMethod() { //return new Base<T>; } // …

Software Development c# oop
Member Avatar for DaveAmour
0
304
Member Avatar for TObannion

So I wrote this program this evening...it was working just fine and when I started trying to tweak the display I started getting syntax errors on my global elif's. Here's my code, somebody please tell me what is going on. # Rock Paper Scissors, Project 2, Tadd O'Bannion import random …

Software Development python
Member Avatar for TObannion
0
252
Member Avatar for Seandean_1

I cant get my intended result I want my program to display can anyone help me. The program is to print the workers name who are listed in the struct and if you don't enter any of those names I should print worker name doesn't exist. Can someone tell me …

Software Development c
Member Avatar for Seandean_1
0
218
Member Avatar for Njay19

#include <iostream> using namespace std; int main() { const int n = 20; int Array[n] = { 3, 5, 2, 9, 6, 12, 16, 11, 18, 4, 14, 8, 1, 15, 17, 7, 19, 13, 20, 10 }; cout << "Not sorted: \n"; for (int i = 0; i < …

Software Development c++
Member Avatar for Njay19
0
140
Member Avatar for Kenneth_3

I am in my first semester of computer program and this my third project. I am taking this class online so I do not have the in-class benefit of working with others. I have completed all of the code and the program works the way I believe it should. I …

Software Development algorithm c++
Member Avatar for Schol-R-LEA
0
249
Member Avatar for jd3189

I did a previous program takes scores from the user and computes the total of the scores, score count, and score average.Now I am supposed to add an array that will store the scores the user inputs and display them in a message box more detailed instructions below: 2. Delete …

Software Development
Member Avatar for deceptikon
0
3K

The End.