132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for angelina_1

hello, i just want to find difference between two dates interms of days by getting dates as a user input. i tried getting user input using raw_input but it shows some erroe message. can anyone tell me the right coding for this one.urgent please...

Software Development python
Member Avatar for Gribouillis
0
387
Member Avatar for <M/>

Is this correct? I wrote a decimal format and it doesn't work. how do i correct this: return sum / myFormatter.format(Math.sqrt(x.length - 1)); I will submit the full code if needed.

Software Development java
Member Avatar for dev90
0
164
Member Avatar for Chrisadams

OS:windows 8,compiler:g++,mysql version:5.6 //bookshop.cpp #include <my_global.h> int main() { return 0; } //bookshop.cpp //Makefile CC = g++ LIBS = -L"C:\Program Files\MySQL\MySQL Server 5.6\lib\" -lmysqlclient INCLUDES = -I"C:\Program Files\MySQL\MySQL Server 5.6\include" all:bookshop bookshop: bookshop.cpp $(CC) -fpermissive -o bookshop $(INCLUDES) bookshop.cpp $(LIBS) //Makefile error: In file included from C:\Program Files\MySQL\MySQL Server 5.6\include/my_global.h:68:0, …

Software Development c++ mysql windows-vista-7-8
Member Avatar for Chrisadams
0
1K
Member Avatar for moudy.mak

I need the way for allow users input text by writing , while users input text they see what's they input when user press enter jump for next line and when user end press on button to finish ?

Software Development c++ opengl
Member Avatar for meta.quota
0
2K
Member Avatar for Junior_1

hello! i want to add 3rd party EXE into form. but problem is i think it almost impossible to change without using dll injection . before i was try several method but all failed. actually i was try with vb or vb.net because i almost don't know c++ but vb …

Software Development c++
Member Avatar for meta.quota
0
321
Member Avatar for [V]

The text I have: > Amiloride-sensitive cation channel, ASIC3 (also called BNC1 or MDEG) which is an acid-sensitive (proton-gated) homo- or hetero-oligomeric cation (Na+ (high affinity), Ca2+, K+) channel. It associates with DRASIC and ASIC1. It mediates touch sensation, being a mechanosensor) (lead inhibited) (Wang et al., 2006). In pulmonary …

Software Development python regex
Member Avatar for snippsat
0
195
Member Avatar for Builder_1

my problem is that how can we intialize a string using cin in output console like this. eg. My class is very good through cin...as the spaces put the null character so only first alphabet is initialized....kindly someone give me solution..

Software Development c++
Member Avatar for Ancient Dragon
0
703
Member Avatar for nay.htet.1481

I learn Java programming language. I have a .exe file that was produced with lunch4j. I can easily run that application in my computer but I can't run it in other computer. I got error ""Window can't access the specified device, path or file, you have the may not have …

Software Development java
Member Avatar for stultuske
0
232
Member Avatar for alina.nazchowdhury

How to save a text information with the formatting italic, bold, underline, small, medium, large? I have a menu, from where I can Save the text as a file, Open a file in my text editor, Exit from my program, but I don't know the coding for Saving and Opening …

Software Development visual-basic
Member Avatar for Minimalist
0
194
Member Avatar for shwetha R Adiga

can you please help us how to apply numerology for any text document in python and say whether the given text file is optimistic or not depending on the numerology applied.

Software Development python
Member Avatar for rrashkin
0
156
Member Avatar for yogesh_6

#include<iostream> using namespace std; int main() { int n;int*p; int i=0,j=0,temp=0; cin>>n; p=new int[n]; for(int i=0;i<n;i++) { cin>>p[i]; } for(j=0;j<n;j++) { for (i=j;i<n;i++) { if(p[i]>p[i+1]) { temp=p[i]; p[i]=p[i+1]; p[i+1]=temp; } } } for(i=0;i<n;i++) cout<<p[i]<<endl; return 0; }

Software Development c++
Member Avatar for Moschops
0
150
Member Avatar for Fedoros
Member Avatar for xXghostXx

I had c# application that has registration form and another from that user use to sigin in into my application i wonder how to check if user its register or not my login form has to textbox username and passpwrd and im trying this code i gusse its wrong can …

Software Development c# open-source oracle
Member Avatar for xXghostXx
0
2K
Member Avatar for eriekasato_1

An InsuredPatient contains all the data of a Patient, plus fields to hold an insurance company name and the percentage of the hospital bill the insurance company will pay. Company : Portion of bill paid by insurance (%) Wrightstown Mutual 80 Red Umbrella 60 All other companies 25 How to …

Software Development c#
Member Avatar for eriekasato_1
0
315
Member Avatar for theonebit

I am confuse about datagrid or table. How do you use grids like explorer, IDM, utorrent uses. are they using data grid or table or something i dont know. cant seem to get it? will post picture if required.

Software Development vb.net
Member Avatar for deceptikon
0
211
Member Avatar for JRDJ12

My requirements are as follows: 1. use main method 2. use the following array- `int[] grades = new int[] {` `82, 70, 99, 90, 92, 75, 87, 85, 91, 100, 91, 87 ` `};` 3. Write code to step through the array of grades and calculate the average grade. Modify …

Software Development java mathematics
Member Avatar for JamesCherrill
0
10K
Member Avatar for iqlas

hi guys... i am working on the project in vb.net in visual studio... my computer's name is homesys(Computer name as shown in MY Computer Properties).... when i try to make crystal report using sql server 2008 database... which i made it in visual studio itself, i am unable to get …

Software Development sql vb.net visual-studio
Member Avatar for Dharsana
0
390
Member Avatar for <M/>

I am trying to do an assignment that requires us to do something with pentagonal numbers. This is my code: import java.util.Scanner; public class Pentagonal { public static void main(String[] args) { System.out.print("The Pentagonal Numbers: "); getPentagonalNumber(10); } public static int getPentagonalNumber(int n) { Scanner input = new Scanner(System.in); System.out.print( …

Software Development java
Member Avatar for <M/>
0
1K
Member Avatar for Nebil

Hi all, I just came up with a little problem.I used crystal reports for my reporting. And i used five tables for the report.I've used SQL statement to select the records that i want. But crystal reports displays each record (selected by the sql) on a different page which makes …

Software Development vb.net
Member Avatar for Nebil
0
140
Member Avatar for <M/>

I am trying to reverse the number that is doubled from the user input. Problem is that if they enter a number like 20000 it gets doubled into 40000 but it reverses it to 2 rather than 4. How do i get it to make the doubled number reversed and …

Software Development java
Member Avatar for <M/>
0
251
Member Avatar for <M/>

Okay, so for another assignment I have to find the distance of two points. I understand how that works but for some odd reason, when the program the professor set up tests it, the numbers are way off. This is what i have done: public class Distance { public static …

Software Development java
Member Avatar for <M/>
0
226
Member Avatar for iness.popovcic

#include <stdio.h> #include <conio.h> main() { int i,j,k,l,m,n; printf("Put in n nober of sqeur: "); scanf("%d",&n); printf("Whit wich nomber do you wanna start your squer?: "); scanf("%d",&m); for(j=m;j<=n+1;j++) { for(k=j;k<=n;k++) { printf(" %d",k); } for(l=1;l<j;l++) { printf(" %d",l); } printf("n"); } getch(); } Editor's note: moved to the appropriate forum

Software Development c
Member Avatar for 2teez
0
109
Member Avatar for kamilacbe

HI, Am planning to write a event management for my web application ,where the Admin can schedule a program to one particular channel say like Admin --> BBC channel --> 10Am-12Am program one from 12 Dec2014 - 23DEC 2014 ..Now my question is when i write checking condition as no …

Software Development
Member Avatar for kamilacbe
0
229
Member Avatar for Wael1988

**hello folks, i am new programmer,,,i have studied C# , Asp.net , Ado.net,SQL , Sharepoint Adminstration and development! but i am still junior..i mean i still ddnt get a job!! sumtimes i feel that its hard to go on programming..like i do always study but always forget..i feel sumties like …

Software Development c c# c++ sharepoint
Member Avatar for Wael1988
0
203
Member Avatar for twelve12

Hi, guys im a 2nd yr college taking up Information technology, now i have a project i need to make a POS of a water station with the information of the consumers. what my problem is i dont know what should i do, since my professor didnt teach us on …

Software Development vb.net
Member Avatar for Reverend Jim
0
674
Member Avatar for khader(ldo)

what can(++)and(--) do in c++ source code?

Software Development c++
Member Avatar for Ancient Dragon
0
143
Member Avatar for <M/>

This is how you calculate the area of a triangle, hope you guys find this useful. import java.text.DecimalFormat; import java.util.Scanner; public class Exercise2_15 { // find the area of a triangle public static void main (String [] args) { double side1 = 0; double side2 = 0; double side3 = …

Software Development java
Member Avatar for JamesCherrill
0
208
Member Avatar for davorka.tonkovic_1

hi. i'm trying to convert program from c++ to pyhton, but i don't have any experience with python. can someone help me? #include <stdio.h> #include <conio.h> main() { float uplata,i; do { printf("Unesite pocetnu uplatu:"); scanf("%f", &uplata); if(uplata>3000) { printf("Pocetna uplata ne smije biti veca od 3000 kuna."); } } …

Software Development c++ python
Member Avatar for Ancient Dragon
0
676
Member Avatar for Lee_2

Hi basically I am creating a zombie survival game using Irrlicht. I have a base class Survival.cpp with my game loop in a method called `Survival::Run()` I am trying to call a `Shoot()` method from within the game loop from another class within Bullet.cpp I have included the `Shoot()` method …

Software Development c++ gui microsoft-access
Member Avatar for L7Sqr
0
304
Member Avatar for darrylnuyda

Hi Everyone, Can I ask your favor, I have a code that I customize. DBConnect.CS //here ismy db connection using System; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data; using MySql.Data.MySqlClient; using System.Windows.Forms; using System.Data; namespace PAIRDevelopment.Classes { public class DBConnect { public static string csConnect = "uid=root; database=membership; pooling …

Software Development
Member Avatar for deceptikon
0
2K
Member Avatar for CreatorZeus

okay i have a file with data orgainzed like this in a dat file to be read: apple.0.0.end. and i want it to be read by char until it sees "." then print that, then read again repeated until the end of the line. so i can show the data …

Software Development apple c++
Member Avatar for deceptikon
0
260
Member Avatar for kothaisaravan

Hi, I have a requirement to save images from local system to server through windows application using c#.net. How can I do this in windows application?

Software Development c# windows-server
Member Avatar for anthonydaly
0
400
Member Avatar for S.M. Murad Hasan

I have a problem with my newly application where i want to execute a c/java program file. And after executing the file i want to work with the output of that file. Please anybody give me the solution for that how can i do this?

Software Development c# java
Member Avatar for lolafuertes
0
403
Member Avatar for Learner010

i'm using VS 2008 for window application and made an http web request and it returns result in json([click here for json result](http://www.daniweb.com/api/articles/448095)). I am not much familiar with JSON and also newbie in vb.net . So , i don't have any idea to deserialize the JSON result. would you …

Software Development api daniweb-api json vb.net
Member Avatar for Learner010
0
397
Member Avatar for valleymorning

Dear all, I'd like to learn C#, but not sure which tool to start with, i.e .NET Framework or Visual Studio .NET., or eslse, and where could I download a latest free version. I'd greatly appreciate any suggestions. Thank you, VM

Software Development c# visual-studio
Member Avatar for Fenrir()
0
172
Member Avatar for Learner010

I don't know APIs? but i heard of Daniweb API. what it is ? Now i am playing with basic controls of vb.net but i hope after getting about API i'll be able to guess what kind of application i create in vb.net using Daniweb API? So , i won't …

Software Development api daniweb-api vb.net
Member Avatar for Dani
0
311
Member Avatar for ACE--

Hi, In Form 3 I have one Text box and Button. Question #1: If I enter 200 value in Form3 Texbox.1 And button1 click and then next I want to create 200 Textboxes in the form3. I already the code but it is not working. It is creating the text …

Software Development vb.net
Member Avatar for Reverend Jim
0
613
Member Avatar for heftytest

what does the DIM mean in this code? I understand everything else. Process 1. Display “Salary Average” as program title 2. Prompt user for employee names 3. Prompt user for employee salary 4. Convert average salary 5. Count salaries above average salary 6. Count salaries below average salary 7. Post …

Software Development
Member Avatar for Learner010
0
308
Member Avatar for hemanshurpatel

Hi friends, I want to implement code which can take input from some other application. Like say for example ls | less Here, less is the application/utility which takes input from ls via pipe. I want to implement the same in C. I Did following things 1. Created PIPES using …

Software Development c c++
Member Avatar for Tumlee
0
715
Member Avatar for ArashVenus

I've tried lots of times to get this to work but , no luck . the problem is this program shows white screen , and It doesn't display the polygon . Here's the code , take a look : /*Headers*/ #include <GL/glut.h> /*End of headers*/ /* Check Compiler*/ #ifdef __FLAT__ …

Software Development c++ opengl
Member Avatar for ArashVenus
0
8K
Member Avatar for <M/>

Hi guys, i am trying to find the area of a triangle and for some odd reason i can't get it to produce the right numbers. Here is my code: import java.util.Scanner; public class Exercise2_15 { // find the area of a triangle public static void main (String [] args) …

Software Development java
Member Avatar for <M/>
0
471
Member Avatar for Mike Bishop

I have data already populated in a datagrid I have three textbox txtCustomername, txtPartcode, txtinvo I want the user to be able to input text into the txtcustomername text box which will result in the datagrid only showing the rows that relate to that customer. Then I want the user …

Software Development sql vb.net
Member Avatar for kRod
0
123
Member Avatar for Aisha_1

A queue is a restricted data structure that allows only the following operations: a.Enqueue" an item at the end" of the queue. b.Dequeue" an item from the beginning" of the queue. These should correlate with your intuitive notion of a queue (line) in the physical world. In queues the first …

Software Development c++ data-structure queue
Member Avatar for nahi
0
247
Member Avatar for samer.aboufakher.3

// my problem is in the playerscore and computerscore always gives me 0 or 1 // i cant know who finally won plz i need ur help //at the end of the program it should gives me the score of computer and the user out of 5 of the total …

Software Development c++
Member Avatar for samer.aboufakher.3
0
190
Member Avatar for eriekasato

Write a method named CustomerCreditLimit() that accepts a double as a parameter and displays the value as the amount of credit granted to a customer. Provide a default value for the method so that if a program calls the method without using an argument, the credit limit displays $500. Write …

Software Development c c# c++
Member Avatar for tinstaafl
0
419
Member Avatar for haider885

Helloo... I am making a simple notepad program. I don't know how to move cursor using ASCII Table. I am using Two way doubly Linked List method to insert characters. And file handling to save on file. I don't know how to move cursor on up, down, right and left. …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
678
Member Avatar for Bo_1

Just started to use Delhi XE4 and found that LongMonthNames wouldn't compile. Error E2003 Undeclared Indentifier 'LongMonthNames'. Went to XE3 with the same error, Delphi 2009 with no problem. Just create a new VCL project with only statment S:=LongMonthNames[12]; will give the error. System.SysUtils is used and the definition is …

Software Development delphi pascal
Member Avatar for Bo_1
0
271
Member Avatar for salah_saleh

Hi, I have followed the tutorial in this link: http://www.cs.ucla.edu/~zhu/tutorial/Using_MS-MPI.pdf to use MPI on my local windows machine with vs. The simple Hello wold work as expected, I have 2 processors and I get the expected result. The problem is when I try a very simple send receive program I …

Software Development c++ pdf
Member Avatar for salah_saleh
0
189
Member Avatar for haider885

Can Any body do it???? These are Some Info..... Create a notepad that allows the user to write text on the console. For this purpose, the user should be able to control and track the movement of the cursor. The user can access, add and delete any part of the …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
767
Member Avatar for zebnoon

Dear Bodies! I am developing a Cold Store Managemen system. I need to count days according to dates.for example 5 ton petato put in cold store room on 01/12/2013 .when i exit this 5 ton peteto on 10/12/2013 system should show me that 10 days i have to charge ?

Software Development
Member Avatar for zebnoon
0
199

The End.