132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for EarhawkPH

Here's the problem: Write a program that will input values for A and B. Compare two values inputted and print which of the values is higher including the remark “Higher”. So here's what i've done so far main() { int A, B; clrscr(); printf("Input Value for A: "); scanf("&d", &A); …

Software Development c
Member Avatar for deceptikon
0
188
Member Avatar for Jjajangmyeon

I'm writing a program that stores passwords into a char array then checks for 1 upper, lower, number and allows @ - _ . For some reason it won't read the special chars - unless I include this function, but when I do it only evaluates those in the function, …

Software Development c++
Member Avatar for Jjajangmyeon
0
152
Member Avatar for rama.krishna.9003

Hi All, I need a perl script to generate the following Replace value in a column of one file with a value from second file File1 246 0.668 20.644 20.610 0.000 3 U 1.039e+03 0.000E+00 - 0 1673 1676 1663 1662 18 0.816 22.786 24.906 0.000 3 U 1.815e+03 0.000E+00 …

Software Development perl
Member Avatar for Dani
0
1K
Member Avatar for bnitishpai

I have a textbox to enter date into a MS Access database. I've tried entering 29-02-2000. But it is saved as 28-01-1900 in Access. I've tried entering 02-20-2000. But it is saved as 01-01-1900 in Access. My system shortdate format is dd-MM-yyyy. My system longdate format is dd MMMM,yyyy. My …

Software Development microsoft-access vb.net
Member Avatar for bnitishpai
0
243
Member Avatar for Jjajangmyeon

When a user enters multiple keystrokes the meny prints multiple times. It should spit out an error and reprint the menu once...what gives? void mainMenu(char entries[], int index[]) { char choice; cout << "Please choose 1, 2, or 3.\n"; cout << "1. Save a new password\n"; cout << "2. Display …

Software Development c++
Member Avatar for Jjajangmyeon
0
116
Member Avatar for Praveen_10

I need to insert a cobobox value ,date value into database but am not sure if this is the method...i keep getting an exception saying 'Incorrect syntax near '@Numberpassengers'.' private void button1_Click(object sender, EventArgs e) { string c = ""; string s = ""; string d = ""; string t …

Software Development open-source
Member Avatar for Praveen_10
0
418
Member Avatar for mcdczzz

how can i write this in case select syntax? please help If cboSearchType.Text = "Accredited Month" Then With grdSearchResults .Rows = .Rows - .Rows + 1 End With If rs.State = 1 Then rs.Close SQL = "SELECT * FROM BusinessInfo WHERE " & " AccreditationDate " & " like '" …

Software Development visual-basic
Member Avatar for mcdczzz
0
186
Member Avatar for liq

Hi all.... I'm using visual studio 2005 with vb.net. I've got a radio button and if you check it it loads data from my database into my lisbox. that works fine. but i want to use it as a little search function so i have a textbox and if i …

Software Development vb.net visual-studio
Member Avatar for Reverend Jim
0
769
Member Avatar for moaz.amin.37

first se these methods setForeground(Color.cyan); setBackground(Color.red); these methods are defined in Component class like this java.awt.Component and we pass parameters of an other class this is very confusable for me that we pass class members as parameters to method of a different class, i mean `setForeground(Color.cyan)` i defined in Component …

Software Development java
Member Avatar for stultuske
0
218
Member Avatar for silent lover

dear all daniweb users, i start using xamarin to create ios software. in mainstoryboard, i navigate passcodevc view controller to songlistvc view controller. i use scandit barcode scanner script in passcodevc.cs . after barcode scanner script, i want navigate from passcodevc view controller to songlistvc view controller. i use this …

Software Development ios xamarin
0
206
Member Avatar for yuimikazuki

from sys import argv from os.path import exists script, from_file, to_file = argv print "Copying from %s to %s" % (from_file, to_file) # we could do these two on one line too, how? in_file = open(from_file) indata = in_file.read() print "The input file is %d bytes long" % len(indata) print …

Software Development python
Member Avatar for David W
0
224
Member Avatar for kiail

Hello, I have multiple networks with a changing amount of devices on each. What I'm trying to do is have those devices report their ip address to a website where I can enter in their mac address and determine which ip address it's coming from so that I can control …

Software Development
Member Avatar for kiail
0
304
Member Avatar for analys

Hi, I'm new to python. I'm creating python script that will copy file from different destination to another destination. It will copy as well the access for different user. I'm trying to output any results to the logfile but it didn't seem to output it. Here's my code. Hope anyone …

Software Development microsoft-access python
Member Avatar for analys
0
419
Member Avatar for daniela.valkanova

> *no instance of function template*maximum* matches the argument list argument types are: (int,int,int)* #include <iostream> using namespace std; template <class T> T maximum(T value) { T maxValue; if (value >= maxValue) maxValue = value; else value = value; return value; } int main() { int number1 = 1; int …

Software Development c++
Member Avatar for Sarkurd
0
6K
Member Avatar for nitin1

Main.cpp #include <iostream.h> #include "functions.h" int main(){ print_hello(); cout << endl; cout << "The factorial of 5 is " << factorial(5) << endl; return 0; } hello.cpp #include <iostream.h> #include "functions.h" void print_hello(){ cout << "Hello World!"; } factorial.cpp #include "functions.h" int factorial(int n){ if(n!=1){ return(n * factorial(n-1)); } else …

Software Development c
Member Avatar for L7Sqr
0
136
Member Avatar for gagun

I am trying to write a output for my log in file on the desktop but for somereason, it is not doing that.It says the file cant be instantiated. I have the code and console output below. Any help would be much appreciated. thanks in advance. ### direct log messages …

Software Development apache file-system java
Member Avatar for ~s.o.s~
0
2K
Member Avatar for justinelinz.sonenclar

THis is my question and I have no idea how to do it. Write a GrowSquarePrinter program that constructs a Rectangle object square representing a square with top-left corner (100, 100) and side length 50, prints its location by calling System.out.println(square), applies the translate and grow methods, and calls System.out.println(square) …

Software Development java
Member Avatar for iamthwee
0
321
Member Avatar for oanahmed

Hi! I'm a student learning C language. During my exercise I have faced a weird problem(atleast to me). I have encountered two declarations: int size; int arr[size]; I'm unable to figure out the actual dimension of the array and its lenght as the variable `size` is only declared not defined; …

Software Development c c# c++
Member Avatar for oanahmed
0
350
Member Avatar for moaz.amin.37

i am very confuse about java applets so please solve my questions my question is that when we write applet then we write only methods defination not method calling so i am confuse about this that who call the methods of applets.and second is that we call the methods of …

Software Development java
Member Avatar for JamesCherrill
0
261
Member Avatar for kxjakkk

I'm trying to write a boolean function that takes two Mytime objects, t1 and t2 as arguments, and returns True if the object falls inbetween the two times. This is a question from the How to Think Like a Computer Scientist book, and I need help. What I've gotten so …

Software Development python
Member Avatar for David W
0
452
Member Avatar for jalferez1

program 1. create a program that accepts strings and syntactically analyze it whether it belongs to the language defined by the BNF below: BNF: <VD>-><DT><VL>; <DT>->char|float|int|double <VL>-><V>|<V>,<VL> <V>->'any valid variable name' program 2. valid assignment statement BNF: <AS>-><ID>=EXP>; <ID>->a|b|c|d <EXP>-><EXP>+<TERM>|<EXP>-<TERM>|<TERM> <TERM>-><ID>|'('<EXP>')' I NEED HELP. THANKS:)) I'M FINE WITH ENGLISH SPEAKING …

Software Development c++
Member Avatar for David W
0
2K
Member Avatar for mikewyatt

Hey everyone...... Sorry I havent been around for a while... had a heart-attack and havent been here for a while. Doing much better now! I am needing research material for networking multiple computers together that allow data transfer/updating in both directions. Note this is not for databases, even though there …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
193
Member Avatar for Daneos

Anyone can help me? I have inventory system which works with item-bags. There are 4 different item-bags. 1 bag have 4 other 8, 12, 16. Now for the NPC shop I need to check if there is a free place in my inventory. Lets say, I have 2 bags. 1 …

Software Development c++
Member Avatar for David W
0
212
Member Avatar for Centorpe

I have two items which can be selected from two seperate comboboxes. I need to populate a 3rd combobox with range calculated from selection of first two. Default for this 3rd box must be 0 with plus and minus range. A little help would be much appreciated.

Software Development vb.net
Member Avatar for Centorpe
0
255
Member Avatar for Jack_9

In my opinion, python is a fantastic language, but is it possible to develop an operating system with python, BUT one thing that I do know is that if you were going to develop something with python it would probably have to be the gui. Because python dosen't even really …

Software Development assembly gui operating-system python
Member Avatar for mike_2000_17
0
264
Member Avatar for Jjajangmyeon

It's giving me an error telling me my reference variable hasn't been initialized. What does that mean, what's wrong with my code here? /* ------ FUNCTION: NEW ENTRY ------------------------------------ ----------------------------------------------------------------*/ void newEntry(char entries[], int index[]) { char buffer[256]; char password[8]; bool val = 0; int &length; cout << "\n------ New …

Software Development c++
Member Avatar for Jjajangmyeon
0
6K
Member Avatar for archie.herbias

I want to build an own interpreter using c programming and I want to call it in command prompt. How would i do this? I just want to start a command "display" which can display the contents of a file like type in cmd.

Software Development c
Member Avatar for archie.herbias
0
2K
Member Avatar for asaidi

Hi i m trying to get selected from jradiobutton..i m using eclipse and windowbuilder for java please check my code JRadioButton btn1 = new JRadioButton("By Trading Name",true); btn1.setBounds(22, 48, 149, 23); contentPane.add(btn1); JRadioButton btn2 = new JRadioButton("By Overshop",false); btn2.setBounds(22, 75, 149, 23); contentPane.add(btn2); JRadioButton btn3 = new JRadioButton("By Address",false); btn3.setBounds(22, …

Software Development java
Member Avatar for JamesCherrill
0
227
Member Avatar for Abeeha sheikh

Hi everyone, please anyone help me... My program is correctly compiled but not runnig? What would be the problem in my program??

Software Development c++
Member Avatar for Ancient Dragon
0
148
Member Avatar for hhm_pro992

Hi! I want to know, how to delete empty or blank row in DataGridView in Vb.net.......... "When i click Button the all empty or blank row in DataGridView will be remove......" LIKE this : " Before Button Clicked " ![cccfb5927324360a697c76844a521720](/attachments/large/3/cccfb5927324360a697c76844a521720.png "cccfb5927324360a697c76844a521720") " After Button Clicked " ![be990ddb7744e1b53a444eeda94e8064](/attachments/large/3/be990ddb7744e1b53a444eeda94e8064.png "be990ddb7744e1b53a444eeda94e8064")

Software Development vb.net
Member Avatar for hhm_pro992
0
10K
Member Avatar for Sh4dowz

Hi,I was wondering if anybody had some good C++ tutorial or Books. I want to learn C++ really badly.I really want to start learnig at and early age. I know Java,VB.net but, I need a more powerful language that can do much more.I'm 13 but, don't get me wrong I'm …

Software Development c++ pdf streaming-service video
Member Avatar for mudasar44
0
381
Member Avatar for Mr.M

Hi Dw I'm planing on creating a system that will share the same database over internet. There will be one core server where the database will be located and there will be a thousands of client programs that will modify the database simultaneously over internet. I've never done something like …

Software Development microsoft-access vb.net
Member Avatar for Mr.M
0
227
Member Avatar for iConqueror

I have been coding in c# on and off since I started my first year of the degree in IT two years ago. Of course you use the (), [] and {} brackets **very** frequently but I have never took the time to actually look where you apply each type …

Software Development
Member Avatar for Diamonddrake
0
234
Member Avatar for rela

// How can I rewrite this loop to C++ from C // I dont know how to define vectors x, z, and v! // x, z, and v are vectors, and N is the number of vectors x and z (N=2). c:= 10; N:= 2; p:= 3; b:=5; for r:= …

Software Development c++
Member Avatar for rubberman
0
800
Member Avatar for mehul12345

Hi, i need help creating a fuel volume calculator to estimate the gallons of fuel required to travel 5 distances so far the 5 distances in miles the user enters are stored in an array, however i need a sum to find the average of the five numbers here is …

Software Development java javascript
Member Avatar for mehul12345
0
871
Member Avatar for Jjajangmyeon

This is just a simple menu and I have no clue why it doesn't work. using namespace std; #include <iostream> #include <iomanip> #include <fstream> // ------ Prototypes --------------------------------------------- void mainMenu(); void newEntry(); void display(); void exit(); // ****** MAIN *************************************************** int main() { mainMenu(); return 0; } /* ------ MAIN …

Software Development c++
Member Avatar for Jjajangmyeon
0
175
Member Avatar for bella.twins.94

Assuming that a text file named FIRST.TXT contains some text written into it, write a function named vowelwords(), that reads the file FIRST.TXT and creates a new file named SECOND.TXT, to contain only those words from the file FIRST.TXT which start with a lowercase vowel (i.e., with 'a', 'e', 'i', …

Software Development c++ file-system
Member Avatar for Lucaci Andrew
0
3K
Member Avatar for kxjakkk

I wanted to format this string but I don't know how I can do the formatting part at all. class MyTime: def __init__(self, hrs=0, mins=0, secs=0): self.hours = hrs self.minutes = mins self.seconds = secs if self.seconds >= 60: self.minutes += self.seconds // 60 self.seconds = self.seconds % 60 if …

Software Development python
Member Avatar for sepp2k
0
265
Member Avatar for kxjakkk

This is my code: class MyTime: def __init__(self, hrs=0, mins=0, secs=0): self.hours = hrs self.minutes = mins self.seconds = secs if self.seconds >= 60: self.minutes += self.seconds // 60 self.seconds = self.seconds % 60 if self.minutes >= 60: self.hours += self.minutes // 60 self.minutes = self.minutes % 60 if self.hours …

Software Development python
Member Avatar for kxjakkk
0
285
Member Avatar for kdejan87

What according to you is the simplest and best way to send your QUERY???

Software Development vb.net
Member Avatar for Ancient Dragon
0
148
Member Avatar for elmbrook

Hi I would like to create a method for opening up a form by passing across a string. e.g. Something along the lines of the below code. Is this possible in C#? [CODE] Public void OpenForm (string formname) { formname myform = new formname(); myform.show(); } [/CODE]

Software Development
Member Avatar for mohamed.a.salim.31
0
949
Member Avatar for ChrisHunter

What is the best way to get the object, within a list of that object type, that has the highest ID number? I've been trying to figure it out and I can manage to get the highest ID number but not the object containing that ID number. Any help would …

Software Development asp.net
Member Avatar for Ketsuekiame
0
241
Member Avatar for iConqueror

I am wondering if a struct is like an object or is an object. For example a struct: struct Books { public string title; public string author; public string subject; public int book_id; }; Defining this struct: public class testStructure { public static void Main(string[] args) { Books Book1; /* …

Software Development
Member Avatar for Ketsuekiame
0
161
Member Avatar for tanuja vykuntpu

i want to create online discussion forum using python but i dont know what type of tools to use,i want to maintain database and builtin board myself without interference of third parties,please anyone help me

Software Development python
Member Avatar for tanuja vykuntpu
0
120
Member Avatar for michaelEW

Hello guys, Pls help me, I really need your help! In my workplace we've got a Micron SCORPION Z4120C alarm system that's been connected to the Central Station. But my boss would rather like to monitor the system on his own. And I'm in charge of finding out the best …

Software Development c# visual-basic
0
143
Member Avatar for mbowenitj

Hi guys, I need help in refreshing the data in datagrid view, I’ve tried datagrid.refresh but nothing happens, I have to close the form and open it again to view the data. I need the data that I add to automatically show on the datagrid without having to close the …

Software Development vb.net
Member Avatar for OtepTheThird
0
1K
Member Avatar for mixelplik

I'm trying to read a keyboard entry into a 256 char buffer then extract from just the chars entered (trying to restrict it to just 8 characters) I am fundamentally not understanding how the #$%#$^ing char arrays work: #include <iostream> using namespace std; int main() { char buffer[256]; char pw[8]; …

Software Development c++
Member Avatar for mixelplik
0
298
Member Avatar for kent.johnstone_1

Hi, What is the difference between "__inline__" and "inline"? I have programs with both. "inline" works, "__inline__" has an error "Unable to resolve identifier __inline__" thanks

Software Development c
Member Avatar for kent.johnstone_1
0
345
Member Avatar for VIPER5646

Hi all I just started using Crystal reports in vs2010. I have created a Dataset in the Designer and pulled data from an access DB. The dataset is being populated fine. My Issue is when I assign the dataset to crystal database expert and drag the columns to the report …

Software Development dataset microsoft-access vb.net
Member Avatar for VIPER5646
0
1K
Member Avatar for Yogesh_9

#include<iostream> #include<stdlib.h> using namespace std; int readInt() { int cc=getc(stdin); for(;cc<'0'||cc>'9';) cc=getc(stdin); int ret=0; for(;cc>='0'&&cc<='9';) { ret=ret*10+cc-'0'; cc=getc(stdin); } return ret; } int main(void) { int p=readInt(); cout<<p<<endl; return 0; }

Software Development c++
Member Avatar for mike_2000_17
0
193

The End.