132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
#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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
how can i copy the parent background(DC) control to child control DC? Software Development c++ | |
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++ | |
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 | |
#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++ | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 … | |
> 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 … | |
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 | |
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 | |
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 | |
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 | |
#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++ | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 | |
!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 | |
**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++ | |
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++ | |
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 | |
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>; } // … | |
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 | |
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 | |
#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++ | |
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 … | |
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 |
The End.