64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lotrsimp12345

My understand is in generic programming you can have multiple containers, which use iterators but use the same algorithm. Wouldn't template be considered a ADT? Really confused.

Member Avatar for kvprajapati
0
299
Member Avatar for ayesha789

Please explain me and when we [ICODE]echo $form;[/ICODE] then it shows. please explain this. [CODE]$form=<<<POST <form method="post" action=""> </form> POST;[/CODE] Thanks in Advance...

Member Avatar for ayesha789
0
106
Member Avatar for sakhi kul

Hi to All, I am accessing text box value and error is operator '-' cannot be applied to operands of type System.web.UI.WebControls.TextBox and int

Member Avatar for sknake
0
95
Member Avatar for jhai_salvador

hey guys.... does anyone here knows how to disable and enable CTRL, Alt, windows keys, or Tab key in keyboard?... because im going to use it in my time cafe client project in vb...

Member Avatar for omoridi
0
1K
Member Avatar for abu taher

in data environment I write code[CODE]SELECT AccountInfo.incategory, Sum(AccountInfo.InAmount) AS SumOfInAmount FROM AccountInfo where Date and Date between DTFr.value and DTTo.vlaue GROUP BY AccountInfo.incategory;[/CODE] in form I write code in a command button like:[CODE]Private Sub Command2_Click() Load DataEnvironment1 With DataEnvironment1 If .Command3.State <> 0 Then .Command3.Clos .Command3 Format(DTFr.Value, "dd/mm/yyyy"), Format(DTTo.Value, "dd/mm/yyyy") …

0
95
Member Avatar for mundetas

I have a form with check boxes, but if some of the check boxes I are not checked I get undefined index is there a why around this please help. I am using $_POST. :-/

Member Avatar for mundetas
0
164
Member Avatar for joshk6656

Hi I have a couple of questions for the first app I am creating. Firstly I am trying to have user input certain things, and it is not working correctly. [code] printf("Object : "); scanf("%04X", &code); printf("Message : "); scanf("%s", input); [/code] Object is working perfectly, but then the Message …

Member Avatar for joshk6656
0
147
Member Avatar for gibson.nathan

what i am supposed to do is calculate the chances of wining a bottle top prize if there is one in five winners. i have to do it a difficult way though. i made a random number that signifies a win when it lands on one. i then have to …

Member Avatar for VernonDozier
0
634
Member Avatar for Teethous

Can someone identify the error in this code for me? The input line gives an error. [CODE]import java.util.*; public class Time_Convert_Test { Scanner number = new Scanner ( System.in ); public static void main(String[] args) { int firstValue; System.out.print( "Please enter time in hours:" ); firstValue = number.nextInt(); } } …

Member Avatar for Teethous
0
112
Member Avatar for slatk3y

I can generate a certificate from terminal using this command: keytool -genkey -keystore myCert -keyalg RSA ... and then you enter name, ... Is there an alternative way to do the same thing in JAVA? Any help is appreciated, thanks

0
81
Member Avatar for SeeTheLite

So basically I'm making a generic class for rational numbers, and I want to do automatic type conversions in comparisons and operations and constructors. How would I go about doing this? Google has only returned results for template functions rational.h [code=c++] #ifndef RATIONAL_H #define RATIONAL_H class rational { public: rational(); …

Member Avatar for SeeTheLite
0
86
Member Avatar for htndrum

I need to find a way to print "Cannot find birthday" if the "searchline" is not found in the "pidigits" file. Maybe using a count somehow. I've tried a lot of different things, but I cannot figure it out. I have attached both files. [CODE]import string def find(): blength = …

Member Avatar for htndrum
0
118
Member Avatar for CFROG

I've been working with a script that allows users to look up other users in their area based on their zip code. I attempted the script myself but the whole lat/long thing was a bit much for me to understand, so I settled for one that I found on the …

Member Avatar for diafol
0
425
Member Avatar for Stefano Mtangoo

Hi All, I have been learning making CMS and you guys have been helpful. I can now post, and view the posts. I need to edit/delete articles. I have read somewhere that you can make a link that appends an id of the article and you can retrieve it via …

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for slatk3y

Hello, I am trying to understand how server and clients work. Can anyone explain it and give an example or link to the tutorial. I greatly appreciate your help

0
146
Member Avatar for Dewey1040

I'm supposed to create a program to read in word by word into a vector. And print out the words connected with '-'... so if the input was hello world the output would be hello-world this is the code ive made so far... right now my input can be hello …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for cavpollo

I got a master page with a content place holder (called: placeForButtons). In one of my forms a panel (called: uxButtonsPanel) is added as one of its controls . Later when the program is running (after it compiled what it had successfully) I try to add a button( called: uxInteractionButton0) …

Member Avatar for sknake
0
105
Member Avatar for nateuni

Out of all the possible problems I though I may have in my program, this was not one of them. My menu code is looping twice before stopping for the fgets to take input.. so my menu options are getting printed twice? I have tried flushing the crap out of …

Member Avatar for nateuni
0
601
Member Avatar for Wolf CCMLG

I have having a bit of trouble with this assignment I have to do. The assignment is: [B]"Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to string consisting of the month followed by …

Member Avatar for Lerner
0
1K
Member Avatar for Ineedhelpplz

[CODE]#include<stdio.h> #include <stdlib.h> #define MAXLINE 10000 void reverse(char *str); int main() { int c, i; char j; char S[MAXLINE], *p1; p1=S; for(c=getchar(); c!=EOF; i++) { S[i]=c; } reverse(p1); return 0; } void reverse(char *str) { if(*str) { reverse(str+1); putchar(*str); } } [/CODE] Please help me correct the segmentation fault. [QUOTE]blade71(107)% …

Member Avatar for Ineedhelpplz
0
152
Member Avatar for turbomen

Dear All, Could you tell me how can I read from the hotseat.txt file all the records and sort by first name. Finally, list the sorted results on the screen. Cheers, turbomen

Member Avatar for FlamingClaw
-1
136
Member Avatar for jas05

Hello Guys I am trying create a DataGrid in Windows forms application, but i am unable to fill the data into that. I am using data sets and data adapters for that, but i am getting a empty datagrid. I am quite new to c# so can some body please …

Member Avatar for Geekitygeek
0
102
Member Avatar for uktena

I'm writing a utility for work using forms, then submitting the supplied information into a database with php. The work this intended for is to be performed every thirty days. I need to find a way to automatically check the database and be sure each table in this database has …

Member Avatar for uktena
0
118
Member Avatar for TomRandall

Hi all, I don't use Delphi often so this is probably a stupid question again, but why does Delphi (7) re-index arrays when they're passed to a function, as a simplified example... [CODE]program example; {$APPTYPE CONSOLE} uses SysUtils; var numbers: array[1..5] of Integer = (10, 20, 30, 40, 50); procedure …

Member Avatar for FlamingClaw
-1
180
Member Avatar for wil0022

hi can anyone help me? i cant even run the program I have made... This program should show the distinct numbers after you inputted numbers... I really don't know what to do, hehehe.. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Distinct { class Program { static void Main(string[] …

Member Avatar for Geekitygeek
0
113
Member Avatar for dhavalcoholic

Hello friends, I am trying to make a simple search box in ASP. I am using a text box, where the user enters his query. And besides it, I am using drop down menu (<select>.. <option>.. </select>) in which the user selects what he want to search (Song name, Artist, …

Member Avatar for dhavalcoholic
0
203
Member Avatar for makaman

hey guys, i'm making a kool program for a game but when i debug the program it keep coming up with expected = , when i tried this code: [CODE]Shell ("Ping start" + Combo1.Text + ".blahnin.com -t", vbhide)[/CODE] is there a way to fix it? or is there another way …

Member Avatar for omoridi
0
106
Member Avatar for lotrsimp12345
Member Avatar for JasonHippy

Hey all, This isn't so much a question as a heads up... After using python for a few years (mainly doing blender scripts and random console/command-line apps and tools) I've recently started looking into doing some GUI based stuff using wxPython. I've had a look at a few of the …

Member Avatar for JasonHippy
0
533
Member Avatar for Altairzq

Hello, I would need to upload two files from two different iframes, but they have to be treated at the same time by the same server script, so I'd need to send them with a unique submit. Is this possible? For what I have seen, the submit targets a single …

Member Avatar for Altairzq
0
76
Member Avatar for Ineedhelpplz

Instructions: Trailing blanks and tabs are defined as blanks and tabs that precede a '\n' character or an EOF to terminate a line, without any intervening characters of other kinds. You should copy a getline() function of the kind you see in the text to read in lines from stdin …

Member Avatar for Ineedhelpplz
-1
532
Member Avatar for NT.

Hi, I am new to c# and I am trying to read a file which is of format: 1 2 3 3 4 5 6 7 8 1 2 3 4 the problem is I am not able to read file in given format, I am not able to tell …

Member Avatar for Antenka
0
216
Member Avatar for redreed
Member Avatar for redreed
0
308
Member Avatar for Geekitygeek

I have a Panel on a form to which i have added a selection of controls with (x,y) coordinates. The panel has Autoscroll enabled. If there are enough controls to require a scrollbar, and the bar has been scrolled down when the paint event fires, the controls all move down …

Member Avatar for Geekitygeek
0
722
Member Avatar for EvilLinux

Hi, been working on this project and just confusing the heck out of myself with classes and stuff and was hoping maybe someone could lend a hand on what I might be doing wrong? The general idea of this is to get the arrow (int 231-234) to point in the …

Member Avatar for ddanbe
0
658
Member Avatar for Xamas

I wrote a Java program, and it successfully compiles and runs in NetBeans, but I'm not able to do the same in the [B]command line[/B], on Windows XP. It works ok with 1 class, but when I have few files 'package' I have a problems. 1.Start -> run -> cmd …

Member Avatar for Xamas
0
176
Member Avatar for DEATHMASTER

Hi everyone. I'm new here and would like some help with some Python code. I'm trying to use modulus to shift decode an input line (regular sentence or word like "Bill") but I keep going over the regular alphabet in ascii and the "B" becomes an "=" How do I …

Member Avatar for jlm699
0
183
Member Avatar for Zaad

Hi; Im on the way of doing a concurrent application in java command line. I want is a way to stop a transaction in the middle of it when the transaction is happening in the application. In the GUI there is the KeyListener to handle the key inputs and invoke …

-1
75
Member Avatar for facadie

Hi, I'm using a table template[header and side] to display all my detail etc in the content place holder. how can i make the web application auto scale to the size when we minimize and maximise..

0
76
Member Avatar for konohastar

hi guys, I am a new student in learning C, I have about a month of experience on it and i am learning now how to use loops. I wanted to write a program using loops in which i ask them to guess a password to a question i ask. …

Member Avatar for konohastar
0
241
Member Avatar for LinkMaster03

I packed a Python script (that uses pyGTK) into an .exe with py2exe. It runs fine, except that the normal GTK theme does not show up. This is what it looks like when I run the script: [url]http://img33.imageshack.us/img33/4080/16sepwed1827.png[/url] And this is what it looks like when I run the .exe …

Member Avatar for Stefano Mtangoo
0
583
Member Avatar for haggis-man

I wish to pass an array of arbitrary content via a hidden field in a form which uses the POST method [CODE]$targets = any old array; ... build form to include ... <input type=hidden id=targets title=targets name=_targets value=\"".htmlspecialchars( serialize( $targets ))."\">[/CODE] Clearly this requires some use of the htmlspecialchars() or …

Member Avatar for haggis-man
0
106
Member Avatar for ddanbe

Hi all, Left of a TextBox I have a Label and the text changes during a run so I want the text to be right aligned. So I used the TextAlign property of a Label and set it to MiddleRight. It does not work. Looked for an answer, could not …

Member Avatar for ddanbe
0
232
Member Avatar for dorkwad

I'm attempting to output a 7 digit number in a space 7 columns wide with cout, where loan is my 7 digit number: [code] cout << "$" << setw(7) << fixed << showpoint << setprecision(0) << loan;[/code] Any attempts fiddling with this result in the number being converted to 1e+006. …

0
65
Member Avatar for Darth Vader

How is it possible to check if a String is a valid number. The number can be both an int or a double like: [code] String^ ValidInt = "5"; String^ ValidDouble = "5.01"; [/code]

Member Avatar for Darth Vader
0
196
Member Avatar for low1988

I have try to get used to the database -java connectivity with a simple address book application below : [CODE] import java.awt.*; import java.awt.event.*; import java.sql.*; import java.applet.*; import javax.swing.*; /////////////////////////////////////////////////////////////////////////////// //Creates the main window with top Menu toolbar. //This is also the class for the main declaration ////////////////////////////////////////////////////////////////////////////// public …

Member Avatar for masijade
0
90
Member Avatar for AutoPython

Okay, I was thinking about making an encryption algorithm, now the thing with most algorithms is that they follow specific steps. Well, I was thinking, what if you made an algorithm that generated random characters (the kind you see on your keyboard, excluding characters that could crash the program), and …

Member Avatar for ov3rcl0ck
0
574
Member Avatar for sakhi kul

Hi All, I want to show user registration information which he fill up in registration form & he can edit it. So I use details view. but I want to hide some fields like user_id(Primary key) etc. & some fields that he can't edit. How can I manage it..?

Member Avatar for majestic0110
0
100
Member Avatar for Gatayo

Design a drawing application (have a look at Microsoft Paint application on your Windows system). The application must have menus, and must be able to draw one or more sharps (e. g. point, line, rectangle, oval, etc). The application should use GUI components.

Member Avatar for majestic0110
0
101
Member Avatar for george21

I can't figure out why this won't put buttons 1, 2, and 3, on the top of the frame, with buttons 4, 5 and 6 on the bottom? I realize there should be space between the top row and the bottom row. import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; …

Member Avatar for majestic0110
0
157

The End.