199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anisha.silva

Hi, i am new to groovy language. I was wondering if there will be anyone who will be able to help me understand the below code. static analyzeAPI(pkgname) { def refs = Yaml.load(new File(output_base + "/${pkgname}_PackageRefs.yml").text) refs.Classes.each { analyzeClassRef(pkgname, it.name) } } static analyzeClassRef(pkgname, name) { println "=== Analyze class …

Member Avatar for anisha.silva
0
223
Member Avatar for sundeep.gurroby

Hello, I have successfully created a login page(username+password) that links to an account page. But i would like to insert a middle page (post login) where the user need to type 2 or 3 random characters of a memorable name to finally log into his account. Any idea how to …

Member Avatar for sundeep.gurroby
0
164
Member Avatar for Sajjad_1

i want to run this Query with **ADODC control** and show result in **Datagird View** Private Sub Command1_Click() Dim Sell_tbl, Stock_Bottle, res As String Sell_tbl = "SELECT Sum((Quantity)*12) FROM Sell_Detail Where Cateogry='Large'" Stock_Bottle = "Select Sum(No_Of_Bottle) FROM Add_Bottle Where Cateogry='Large'" res = ((Sell_tbl) - (Stock_Bottle)) Adodc1.RecordSource = Sell_tbl Adodc1.Refresh Adodc1.Caption …

Member Avatar for abelingaw
0
379
Member Avatar for Webbsta

Hello, I am new to C++ and have been writing a server program to help me learn. I am currently stuck on how to get a couple of classes passed by reference. I have been searching on forums for hours now and I just can't figure this out. I would …

Member Avatar for Webbsta
0
235
Member Avatar for ramrokers
Member Avatar for Schol-R-LEA
0
172
Member Avatar for brandon66

Hey everyone, i was suppossed to convert my array notation over to pointer notation in my functions, but am i missing something? i though this would be correct. Can someone point me in the right direction #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; //function prototypes void …

Member Avatar for Ancient Dragon
0
157
Member Avatar for mixelplik

I'm parsing a date into three ints, then manipulating them. I then want to convert them back into strings so I can concactenate them with the slashes so I can search an array of dates saved in string format. I looked around and this code seems like it should work, …

Member Avatar for mixelplik
0
320
Member Avatar for Kent55

This has seriously baffled me. I have two text files one with keywords and one with definitions. What I need to do is read the textfiles into an array (or two) and assign the keyword from one with the correct definition. Then on one form the randomize the the keywords …

Member Avatar for Reverend Jim
0
284
Member Avatar for mattyd

[This is theoretical at this point - No code is written for this] On the project I am building (A forum of sorts) I will be the Admin: I will be the only person able to edit posts. Even the User, save for a 15-minute window (after posting), will **not** …

Member Avatar for iamthwee
0
98
Member Avatar for Pyler

Node inside a linkedlist SomeInterface has an addLast() method that should add a node at the end of the list public LinkedList<T> implements SomeInterface<T>{protected class Node<T>{ privateT data; private Node<T> head,tail; protected Node(T data,Node<T>tail){ this.data=data;head=null;this.tail=tail;} private T getInfo(){return this.data;} private void setTail(Node<T>newTail){this.tail=newTail;} private void setLink(Node<T>newHead){this.head=newHead;} private Node<T> getLink(){return tail;} }} …

Member Avatar for Pyler
0
200
Member Avatar for ebanbury

Hi I had an field to upload pdf's only, which worked well. I want to add the option to add docs as well as pdf's and now it is not working: if (!empty($_FILES['pdf_main']['name']) && ($_FILES['pdf_main']['type']!="application/pdf" || $_FILES['pdf_main']['type']!= "application/msword")){ echo '<p class="white">Please check the certificate uploaded. It should be a PDF …

Member Avatar for cereal
0
191
Member Avatar for Emma_3

I'm really struggling with this assignment. Here's what I have to do: Write a program that uses an array to store 10 elements, representing 10 students' test scores that will be entered from the keyboard. Given the following grading scale (given in my if statements) determine the letter grade each …

Member Avatar for Moschops
0
297
Member Avatar for ColeTechInc

Free IOS and Android App Software? Anyone know where i can find Free Software to create and app for IOS And Android i was wanting to design and create a game or something but i was hoping for a visual creator not just coding. i only know of the MAC …

Member Avatar for peter_budo
0
167
Member Avatar for blazemadej

I need to read these numbers from a file: 2 10.5 5 20 10 30.2 It is not working. It skips over numbers. The first row (2,5,10) is supposed to be Hours and the second row (10.5, 20, 30.2) is supposed to be Pay.Any help is appreciated.Thank you. Note: This …

Member Avatar for blazemadej
0
178
Member Avatar for custurd122000

I need a code that reads in a text file into an object Computers and sorts the specific indexes in descending order, as you can see the first one vendors is already sorted so you just need to print that one. Then in my case 2 I need to print …

Member Avatar for cgeier
0
512
Member Avatar for anisha.silva

Hi, I have a parser in .madl language in a txt format and I want to implement the code completion in java in eclipse plugin project. Fro ex: code completion is in a java editor if you press Ctrl+space a popuo window appears with relating option that are available, I …

Member Avatar for anisha.silva
0
420
Member Avatar for kCoder

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class collectinexample { ArrayList mylist = new ArrayList(); mylist.Add("apple"); mylist.Add("grapes"); } } this is my code but m getting an error "Error 1 Invalid token '(' in class, struct, or interface member declaration " plz help

Member Avatar for JorgeM
0
133
Member Avatar for Siberian

Hi, why is my #div not [hiding](http://jsfiddle.net/WildWind/Lcx78/) when it's clicked, maybe placing it within a document.ready function wasn't needed ?

Member Avatar for Siberian
0
218
Member Avatar for gsgikgsgik

A program that can sort a list of names and telephone numbers alphabetically. Persons are sorted alphabetically by their first names. Persons with the same first name are sorted by their last names. Plz give me its code,I tried a lot but failed.

Member Avatar for Schol-R-LEA
0
160
Member Avatar for Arizal

{ #include "stdafx.h" #include <iostream.h> #include <stdio.h> #include <string.h> class inventory { private: int prodID; char prodDescription[20]; int qtyInStock; public: inventory()//default constructor { prodID=0; strcpy(prodDescription,"-"); qtyInStock=0; } inventory(int a,char *b,int c) //constructor that initializes a new Inventoryobjects with the values passed as arguments { prodID=a; strcpy(prodDescription,b); qtyInStock=c; } }; int …

Member Avatar for Schol-R-LEA
0
175
Member Avatar for abu taher

for save I write this........ With rs .Open "Select * from Dad", con, adOpenDynamic, adLockOptimistic .AddNew !SrNo = cmbbillno '!SrNo = GetNewNo("Dad") !DadItems = cmbIName !DadSize = cmbISize !Dad = txtDadIQty !Dadby = cmbOrTkBy.Text !DadDate = DadDate !deliverydate = deldate !partyname = cmbPartyName !amount = txtamount.Text !due = txtdue.Text !Receive …

Member Avatar for abu taher
0
217
Member Avatar for mell.mattingly

I am having a little trouble with my class Person program. It runs and builds without error...Yay....except I am getting 0 output. Anyone have any advice? #include <iostream> #include <string> #include <vector> #include <stdlib.h> using namespace std; class Person{ private: string name; int age; public: Person (string n, int a); …

Member Avatar for rubberman
0
183
Member Avatar for SivaKing

In my windows8 system conio.h header file is not working.Can any body tell me any idea about working of this header file.

Member Avatar for rubberman
0
311
Member Avatar for justin22

<?php session_start(); include 'connect.php'; <?php session_start(); include 'connect.php'; if(isset($_POST['submit'])) { //$username = $_POST['username']; $password = md5($_POST['currentpassword']); $newpassword = md5($_POST['newpassword']); $confirmnewpassword = md5($_POST['newpassword1']); $user_id = $_SESSION['user_id']; var_dump($user_id); $sql = "SELECT * FROM user WHERE user_id=$user_id "; var_dump($sql); mysql_select_db($dbname) or die(mysql_error()); $result = mysql_query($sql); //mysql_fetch_assoc($result); while($data = mysql_fetch_assoc($result) ){ $userPassword = $data['password']; …

Member Avatar for Mike_danvers
0
194
Member Avatar for Isabella Angeliese

Hi! I have just started on c++ and have encountered Expression: (unsigned)(c+1) <=256 Error when I am trying to run the program. The program is suppose to generate an array of letters (lowercase and uppercase) of size from 15 to 25. After the generation, using ONLY one while-loop, try to …

Member Avatar for Ancient Dragon
0
814
Member Avatar for gsgikgsgik

A program that can sort a list of names and telephone numbers alphabetically. Persons are sorted alphabetically by their first names. Persons with the same first name are sorted by their last names. Following are the guidelines for program,program must include these things. Input: names and telephone numbers, Output: list …

Member Avatar for WenLiang
0
145
Member Avatar for sykopwinx

write a program to take decimal number and to print equivalent character?

Member Avatar for Ancient Dragon
0
106
Member Avatar for sk8ergirl

I have combo box and two type of employee in my db I want to display full time emplyee in the combo box however when I tested the code I this line is executed ` test = conn.prepareStatement("select * FROM Employee WHERE EmployeeType = " + "'" + "Part Time" …

Member Avatar for JamesCherrill
0
162
Member Avatar for jayturner

import java.util.*; public class Node { int costs[][]=new int [4][4]; int mincosts[]=new int [4]; int dest[]=null; ArrayList packets=new ArrayList(); Simulator sim=null; /** *@param args */ public RoutingPacket creatertpkt(int srcid, int destid,int mincosts[]) { RoutingPacket oRPacket =new RoutingPacket(); oRPacket.setSourceid(srcid); oRPacket.setDestid(destid); oRPacket.setMincost(mincosts); return oRPacket; } void rtinit(int srcid,int dest[], int initcosts[][],int initMinCosts[],Simulator …

Member Avatar for JamesCherrill
0
270
Member Avatar for Владимир_1

Hi to all! May be it's a very very stupid question, but I am stuck on it... So my problem is the second - I have array $pacient[$val['pacientid']][] = $val['f_name']." ".$val['s_name']; And I want to compare values in this array, so how I go throught array: $pacient = array_unique($pacient); foreach($pacient …

Member Avatar for cereal
0
322
Member Avatar for niyasc

hei May I know how to handle dev cpp; It shows error even for simple programs which I had successfully run in turbo c 3.0

Member Avatar for Ancient Dragon
0
339
Member Avatar for Mazi007

Hey guyz. It's my task to write a code in C++ which indents a pre-written code. Can any one here help me writing this ?

Member Avatar for Moschops
0
81
Member Avatar for emorjon2

Hi everyones! I have explore and development on many programming languages as C++, python, perl, java(a little bit) and Assembly (a little bit),and web languages like html, javascript(a little bit) and PHP. Now I'm wanna create my own OS. My OS will have a simple boot file as starting up …

Member Avatar for muazzamalikazmi5
0
397
Member Avatar for b.moattar

a program to play Rush Hour. the board is supposed to look like this: -------- |GG...Y| |P..B.Y| |PRRB.Y> |P..B..| |O...TT| |O.FFF.| -------- then You may assume the user enters either upper-case or lower-case input, with or without intervening spaces. and The program ends when the red car touches the '>' …

Member Avatar for rubberman
0
255
Member Avatar for man.chester.581

1- implement a double linked list (node contains data and left pointer to the previous node and right pointer to the next node)

Member Avatar for rubberman
0
178
Member Avatar for laaus001

I have worked extensively with dBASE III+ and Clipper Compiler years ago. I cannot get things to work on my Windows 7 PC. I found a program named dbDOS PRO 2 online and marketed by a company dBASE LLC. I am inquiring as to whether any of you have purchased …

Member Avatar for Ancient Dragon
0
135
Member Avatar for rbyrd

Can anyone tell me how to get rid of the white boxes around the buttons? I want the boxes to be blue so the buttons appear on an entirely blue panel at the bottom of the ffame. I'm using OSX 10.6.8 and Python 2.7. Thanks in advance. from Tkinter import …

Member Avatar for rbyrd
0
275
Member Avatar for ben.juarez.773

Hello, I'm a beginner using Python 3.3.3. I'm working on a little text-based rpg using the skills I've learned thus far, but am wondering what the problem is with my code. When I enter the first input response, like 1, everything seems to be fine, but when I enter 2, …

Member Avatar for ben.juarez.773
0
184
Member Avatar for roni137

Dear All Master, please help me for my first program that i want to create...i have problem for save from datagridview to access database...everytime i try to save , only first line have save...another not save...sory for my bad english language...thank's here my code.... Sub simpen() Dim i As Integer …

Member Avatar for oussama_1
0
305
Member Avatar for rajendher

dear programmers, how to show urls `(http://example.com/mtfiles/2014/2014.html)` from to `(http://example.com/2014.html)`. server at plesk panel anybody please tell me . thank you

Member Avatar for rajendher
0
315
Member Avatar for showman13

This may sound strange, but I'm having an issue I can't explain... and have been researching why for the past day and a half with no results. All of a sudden on Friday Morning I was unable to log into a members back office, which is based on session variables. …

Member Avatar for showman13
0
125
Member Avatar for fiddler80

Hello. I have a php script that will backup my databases and ftp them to another server. All works fine via a cron job - but the backups are piling up and I'd like to add some code to the script to delete all the old backups - and just …

Member Avatar for fiddler80
0
498
Member Avatar for Dang_1

I try copy a string to another string, but it has error with "_ps->copy(_pt,_beg,_end);". This is my code( but it is not full code): string* find_The_Longest_Word(string* _ps, int _beg, int_end) { string* _pt; _pt =new string(); _ps->copy(_pt,_beg,_end); return _pt; }

Member Avatar for Dang_1
0
110
Member Avatar for rpv_sen

Hi I am trying to enable the fileds with help of radio button is selected below are my code, its working fine for inserting a value in database. I can able to fetch the datas from database for display except the radio button is not getting selected from the database …

Member Avatar for rpv_sen
0
1K
Member Avatar for Kevin_7

I'm having trouble compiling a short amount of code to the "Hello World" programming and am needing assistance. This is the error message that I get: no input files C:\Dev-Cpp\My World\Makefile.win [Build Error] n\make.exe: *** ["Hello] Error 1

Member Avatar for Ancient Dragon
0
222
Member Avatar for johnef_sh

I am trying to use PHP with Google map JavaScript this is my JavaScript code I have with the PHP the file name is face.php <?php if(isset($_GET['p'])){$p=$_GET['p'];} ?> <!DOCTYPE html > <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Property Map</title> <link rel="stylesheet" href="../../../../css/960.css" type="text/css" media="screen" charset="utf-8" /> …

Member Avatar for johnef_sh
0
1K
Member Avatar for Vikram Sehgal

hello again, so i want to make a programme where the file saved is saved with different names at every loop.. like at first loop it will save as file1.txt, 2nd loop file2.txt, so on... so this is my code... #include <iostream> #include <fstream> using namespace std; int main() { …

Member Avatar for deceptikon
0
517
Member Avatar for Jjaus

Write a class that accepts a user's hourly rate of pay and the number of hours worked. Display the user's gross pay (gross pay = hours worked * hourly rate), the tax withheld (tax withheld = gross pay * tax rate) and the net pay (net pay = gross pay …

Member Avatar for Jjaus
0
147
Member Avatar for Abdul_23

This is a program..to create and search for Binary Tree.. An error is occoured for class tree ..as " Too many types in declaration". I would be glad if anyone can tell me to solve this problem. Thanks for all the support. #include<iostream.h> #include<conio.h> struct node { int data; node …

Member Avatar for Abdul_23
0
201
Member Avatar for Vikram Sehgal

hello guys, i found a piece of code in the net.. this code is a progress bar loop programme. I am new to programming, and i am not able to understand this code. PLEASE can anyone explain it or tell a simpler version of it. thanks(sorry for my english) #include …

Member Avatar for Vikram Sehgal
0
204

The End.