132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for top123

hi...i am worjig on project to display numbers entered by user..and display it in random order....i use devcpp.. and here is the code..it does compile but is not working properly..can anyone help me plz as quickly as possible..this is due within 4 days... [CODE]#include<iostream> using namespace std; int main(){ int …

Software Development c++
Member Avatar for top123
0
120
Member Avatar for Sunny89

Write a Java program that will generate random four letter words. The words must consist of only lower case letters. The program will prompt the user to enter the number of words to generate. The program should request that the user enter a number between 1 and 500 and ensure …

Software Development java
Member Avatar for peter_budo
0
814
Member Avatar for leppapuu

Hi! I have a program with two QSpinBoxes with integers in them. When user clicks one spinbox it should affect to the other one. And vice versa. I can't use valueChanged() signal because it causes an endless loop that won't stop until the maximum values of the boxes have been …

Software Development python
Member Avatar for leaffan
0
1K
Member Avatar for JohnnyT

Hi all, I'm just learning C# and completed a book exercise. They had a different answer and I'm not sure the difference between the two. The way I did a method was like this: [CODE]public int ShiftsLeft { return shiftsToWork - shiftsWorked; }[/CODE] However, when I looked at the book …

Software Development
Member Avatar for JohnnyT
0
132
Member Avatar for newbiecoder

I want my code to take two characters and print them, but this code only takes one character, prints it and terminates, can you please tell me what's wrong with it? Thank you. [code=syntax] #include <stdio.h> int main() { char a, b; scanf("%c", &a); scanf("%c", &b); printf("%c %c\n", a,b); return …

Software Development c
Member Avatar for newbiecoder
0
257
Member Avatar for akonful

Trying to figure out why code wont work. Its gets 2 errors for String newS1 = s1.sort; String newS2 = s2.sort; I dont know how know whats wrong [CODE]public class anagram { public static void main(String args[]) { java.util.Scanner input = new java.util.Scanner(System.in); System.out.print("Enter the first string: "); String first …

Software Development java
Member Avatar for javaAddict
0
150
Member Avatar for hery

hello all, i want to question how to i get value query sql in asp.net c# example: this is my sample code: [CODE] string no_hp = ""; string queryNoHP = "SELECT NO_HP FROM REF_OWNER WHERE ID = '" + ID.Text + "'"; [/CODE] i want to how to get value …

Software Development asp asp.net c# sql
Member Avatar for amitshrivas
0
146
Member Avatar for digitalsindhx

Help With Add, Delete, Edit and Update Record (with Datatable Method) I Created a Software with OleDb .mdb database previously Using Dataset Method, but I was unable to Connect Datagrid with it on real Basis, I mean when I Clicked Next Record Button it only Moves in TextBoxes (Which were …

Software Development dataset vb.net
0
131
Member Avatar for alvalany

hi friends, From many days I wanted to create some application in Windows. Now which IDE would be better (I am also a bit confused with the term IDE ) Turbo c or Borland C++ bulder or Visual c Whatz the difference between these things?? Please someone clear my confusion. …

Software Development c++ ide
Member Avatar for Ancient Dragon
0
971
Member Avatar for bornwith

I am trying to teach myself C#. I was working on an example when I came across something of interest (to me anyway), and none of my resource material explains why this happens. Can some one explain why this happens. The code below works as it should [CODE] //calc test …

Software Development
Member Avatar for apegram
0
127
Member Avatar for herrstarr

[CODE]#include <iostream.h> #include <stdlib.h> #include <conio.h> #include <iomanip.h> #define FALSE 0 #define TRUE 1 float table_req(void); //Gets Multiplication Number int lines_req(const float); //Gets number of lines void print_out(const int, const float); //Print out of Table int quit(void); //Check Continue request y/n float input_number(void); void main() { int exit = FALSE; …

Software Development c++
Member Avatar for mattjbond
0
133
Member Avatar for redbluffsandi

I am trying to complete an assignment in C#. I have buttons for name, address and zip code. I have Buttons for Display Label Info, Clear and Exit. I can type whatever I want into the form and I can clear them and exit with them. My problem is with …

Software Development
Member Avatar for ddanbe
0
116
Member Avatar for Masterace

Hi people need codes for displaying serial number in a receipt (ie a unique number after every transaction) here is the receipt code am working on [code] Private Sub CmdPrint_Click() 'printing a receipt If MsgBox("Print Receipt?", vbYesNo, "Receipt") = vbYes Then Printer.Print Tab(30); Printer.Print Tab(30); "TIKMASH MANAGEMENT LIMITED" Printer.Print Tab(30); …

Software Development printer visual-basic
Member Avatar for Masterace
0
2K
Member Avatar for thebluestar

Account.java [CODE=java] package btclass; import java.util.Scanner; public class Account { private float amount;//actual amount private static float balance;//balance amout Scanner keyboard = new Scanner(System.in); public void deposit() { System.out.println("Enter the amount you want to deposit: "); float depos = keyboard.nextFloat(); if (depos < 0) { System.out.println("Amount you entered is < …

Software Development java
Member Avatar for javaAddict
0
158
Member Avatar for aravinda reddy

I have implemented Google search in my web application. It is asking for license key.... where i should sign up... how to get license key? Plz its very urgent Plz do reply

Software Development api asp.net google google-api
Member Avatar for aravinda reddy
0
83
Member Avatar for lagspike

I have a program which connects to a remote MySQL Server. When i try running the program on other PCs (ones with nothing more than the .NET Framework) I tried using ODBC, which would run the program, but not be able to connect to the database because of the lack …

Software Development mysql
Member Avatar for lagspike
0
222
Member Avatar for tquiva

When this program prompts the user for input, it works fine for the correct input. But for the wrong inputs, it returns a zero for every character, including the white spaces. My goal of this program is to return a roman numeral as an integer. For the wrong inputs, I …

Software Development c
Member Avatar for WaltP
0
337
Member Avatar for tquiva

I'm trying to get this program to ignore leading tabs and blanks, but I just can't seem to figure out how. What can I further do to improve this program? [CODE]/* Read a command, skipping over leading blanks and any trailing * characters. */ #include <stdio.h> /* Declare functions */ …

Software Development c
Member Avatar for WaltP
0
297
Member Avatar for xxxSuperTrooper

hey can anyone help this is the code i have. i need to ouput the even and odd integers between two integers. i think what i have might work but when i run it it keeps running and never stops. also first num needs to be less then second anyone …

Software Development c++
Member Avatar for WaltP
0
745
Member Avatar for Tapas Bose

Hello. I want to find numbers lies in between (x, y) and [x, y]. I Googled for this and saw that it can be done using boost library. But I can not understand the synopsis. Please help me.

Software Development c++
Member Avatar for Tapas Bose
0
90
Member Avatar for TotoTitus

Hello everyone, i 'built' a simple windows forms application, with 2 buttons and 1 picturebox. One button is used for invoking an open file dialog, which prompts for a BMP from the harddisk, which is inserted on the picturebox. The other button should do 'stuff' to the image, in a …

Software Development multithreading
Member Avatar for Sals
0
123
Member Avatar for yabuki

Hello, I just only want to ask.How to connect MS access database to a C program.See the code below: #include<stdio.h> char firstname[20], middlename, lastname[20]; main() { clrscr(); printf("Enter your First Name: ");scanf("%s",&firstname); printf("Enter your Middle Name: ");scanf("%c",&middlename); printf("Enter your Last Name: ");scanf("%s",&lastname); getch(); } This is what I want to …

Software Development c
Member Avatar for shiv1
0
182
Member Avatar for BEBELINDO

Hi .. Provably I'm setting this up the wrong way in Netbeans.. I open a new projetc and use the default main...then open a new empty java file and type my code , when I run this it runs fine but it doesn't ask for input ! [code]import java.io.*; public …

Software Development java java-netbeans
Member Avatar for javaAddict
0
188
Member Avatar for mgern26

Hi i am having an issue using Math.pow its telling me that math.pow wants (double,double) and im giving it (double[] , double) is there away to use an exponent on an array package project2; public class project2 { public static void main(String[]args){ double x [] = { -2.0,-1.0,0,1.0,1.5,2.5,3.0,4.0,8.0,12.0,16.0,20.0,24.0}; double f=0 …

Software Development java
Member Avatar for javaAddict
0
65
Member Avatar for akssps011

The following code when compiled gives the error: "i[B]nvalid conversion from `void*' to `f*' "[/B] What is wrong with it ? [CODE] typedef struct a { int* value; struct a* p; int r; }f; f* m(int* value) { f* node = malloc(sizeof(f)); node->value = value; node->p = NULL; node->r = …

Software Development c
Member Avatar for akssps011
0
114
Member Avatar for cool2

hi i m doing a project on ftp server..i need some basic codes to start with the program..i ve got few codes but it has some package,enumeration all such stuff which is complex..so i need a simple progrm...plz help me in getting it......

Software Development java
Member Avatar for jwenting
0
78
Member Avatar for deepugtm

I'm doing my bachelor of engineering in computer. I do not know whether to post this thread here or not. Sorry for my poor English. I have the knowledge of C/C++. Now i have started learning Java. Some of my friends says that C# is better than Java., is it …

Software Development engineering java
Member Avatar for jwenting
0
98
Member Avatar for matt.clark.228

I am trying to develop an on screen keyboaard for a UMPC. I have everything built and for each button click i have code for my sendkeys, however, i have not a clue where to start when it comes to focusing the application. I need to know how to after …

Software Development vb.net
Member Avatar for Hollandtech
0
740
Member Avatar for sirko

Hi! Does anybody know how to write a Pascal app that would remove blank lines from a text file. function RemoveBlankLines(OldFile: string): string; var fi,fo: Text; s,NewFile: string; n: integer; begin result:=EmptyStr; if FileExists(OldFile) then begin //rename old file .bak, n:=Length(OldFile); while (n>1) and (OldFile[n]<>'.') do Dec(n); n:=Length(OldFile)-n; NewFile:=Copy(OldFile,1,Length(OldFile)-n)+'bak'; RenameFile(OldFile,NewFile); …

Software Development pascal
Member Avatar for FlamingClaw
0
266
Member Avatar for ubi_ct83

i have this code: [code] int main(int argc, char* argv[]) { remove(debug_file); count=0;//count d number of seeding for (int i = 1; i < argc; i++) { /* Check for a switch (leading "-") */ if (argv[i][0] == '-') { /* Use the next character to decide what to do. …

Software Development c
Member Avatar for ubi_ct83
0
121
Member Avatar for student02

Hi guys.. Im still working on my project, it is a payment and enrollment system. Ive been thinking what to do with the Student ID since it requires a format like xx-xxxx, its possible that ill make two fields right? i mean the first xx on xx-xxxx to make it …

Software Development visual-basic
Member Avatar for cid777
0
294
Member Avatar for abdulraqeeb33

Hi, I have few weblogs, example below 65.96.112.177 - - [27/Jan/2007:00:02:10 -0500] "GET /~jking/images/ralph.jpg HTTP/1.1" 200 66196 65.214.44.44 - - [27/Jan/2007:00:02:27 -0500] "GET /~jkabara/Research.htm HTTP/1.0" 200 4696 207.46.98.52 - - [27/Jan/2007:00:02:29 -0500] "GET /~mweiss/new/background.htm HTTP/1.0" 200 3905 207.46.98.52 - - [27/Jan/2007:00:02:35 -0500] "GET /%7Epaws/project_pacer.htm HTTP/1.0" 200 15645 207.46.98.52 - - …

Software Development perl session
Member Avatar for abdulraqeeb33
0
89
Member Avatar for dondajr

Hi guys o/ ! I'm trying to make a program that write in text file some datas. Then, i wrote a header that have all functions I need to write in this file. thas is my header: [CODE] #ifndef _SNAPSHOT_H #define _SNAPSHOT_H #define LAST_PRICE 0; #define BEST_ASK 1; #define BEST_BID …

Software Development bsd c open-source
Member Avatar for jephthah
0
152
Member Avatar for SoulMazer

Hi, so I've been programming with Python (2.x) for a while now, and I was wondering about what people thought of 3.x. From just a few quick searches, some people recommend that people get used to it quickly as it is the future, and others say to just stay with …

Software Development python
Member Avatar for SoulMazer
0
159
Member Avatar for mani_singh

hello all, i am trying to make a program using nested for loops that outputs a triangle made of *. so far i have part of the triangle, but am having diffuculty finishing it. my code so far: [CODE] #include<iostream> #include<conio.h> using namespace std void main() { int n = …

Software Development c++
Member Avatar for Galf
0
115
Member Avatar for PRINCE01

//am having errors on this portion of my code // am require to implement Icomparable interface with my rational class[code]// public int CompareTo(Rational opnd1,Rational opnd2 ) { if (Rational opnd1 < Rational opnd2) return -1; else (Rational opnd1 == Rational opnd2) return 0; else return 1;[/code]

Software Development
Member Avatar for apegram
0
123
Member Avatar for jxmst32

I am currently writing a program which will perform binary to decimal, decimal to binary, hexadecimal to decimal, decimal to hexadecimal conversions, 1's compliment, 2's compliment, and show the list of boolean algebra rules. I have created the JFrame and the JButtons to create the GUI however, I cannot figure …

Software Development gui java java-swing
Member Avatar for BestJewSinceJC
0
380
Member Avatar for smeghead007

My problem is that when i run the program i ask the user to select a month from a menu then input a year. I then calulate the first day and janaury for that year. Then i have to find the first day of the month the user selected but …

Software Development c++ ios
Member Avatar for smeghead007
0
142
Member Avatar for pythonNerd159

Does anyone know the code to click a button widget and get the value of that button to show up on an entry screen. I'll show you my code. [CODE]class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.createEdit() self.createView() self.createHelp() self.createQuit() self.createOnOff() self.createDelete() self.createClear() self.createSeven() self.createEight() self.createNine() self.createDivide() self.createFour() self.createFive() …

Software Development python tkinter
Member Avatar for pythonNerd159
0
129
Member Avatar for ashish81sharma

Hi, I have a weired problem. I developed a multithreaded WinForm application using VB.Net, and SQL Server 2008. The application works perfectly fine if I am using Visual Studio IDE to run the same. But, if I run the exe file created by VS the application hangs in case I …

Software Development ide vb.net visual-studio
Member Avatar for kvprajapati
0
428
Member Avatar for nateuni

Hi, I transferred Uni, and got an advanced standing for some prior study, but the current unit I am enrolled in builds on an advanced understanding of ADTs (and link lists etc). Problem is that - I have not previously learned this information. My unit text - Algorithms in C …

Software Development c c# c++
Member Avatar for Etherwind
0
98
Member Avatar for sjn21682

hi everyone, im having a hard time with my loop, what i want to do is to print f1, f2, f2,f2... till it finishes to read, then f1, f2, f2... , whats happening to my output is f1,f2, f2..., then f1, f1 till end, i want to ask, how will …

Software Development
Member Avatar for kvprajapati
0
212
Member Avatar for Jeff_5_7

Is there a way to find the length of char i enter from the keyboard? I am entering single digit numbers 0-9 as chars. So i cant enter over 20 chars but i need to find the size of what i enter. Like if i input 123456 i need to …

Software Development c++
Member Avatar for WaltP
0
79
Member Avatar for timtalk

I am still pretty new to Visual basic, but have been working to write a program for Excel that will interact with a Javascript based website and extract data from this website. The site is not mine but I have approval to extract the data I need. The problem that …

Software Development html-css visual-basic visual-studio
Member Avatar for timtalk
0
405
Member Avatar for Kombat

Ok so for my program it prompts the user to enter 32 bits each separated by a space. But while debugging I would like to be able to load a txt file or something that contains the 32 bits instead of having to enter it each time I test it. …

Software Development c++ visual-studio
Member Avatar for WaltP
0
81
Member Avatar for neodregan

I want to try to understand the method of using POSIX threads to interact with a sorting algorithm such as the odd-even transposition sort. I have written my program to do a odd-even transposition sort without threads and this is my current result: ./sort data File opened successfully. The numbers …

Software Development algorithm c
Member Avatar for Banfa
0
181
Member Avatar for Encrypted

I'm trying to write a program for class and I can't get my fractional exponent to work. I've tried using 2/3 2.0/3.0 and I've tried entering 2/3 into a separate variable, but nothing seems to work. I don't get any errors while building 2/3 but the logic does not come …

Software Development c
Member Avatar for MosaicFuneral
0
392
Member Avatar for Syphilis

What's Up? OK, So this has been driving me crazy over the last few weeks, All I need to do is edit a file so that it runs without showing any windows (I.E Runs in background) The window is created by means of Delphi, (So WS_EX_TOOLWINDOW Won't work) The only …

Software Development api assembly delphi windows-api
Member Avatar for MosaicFuneral
0
160
Member Avatar for gms_019

Good day! hi! I'm Glenn! I'm working a Project on System Analysis and Design. I'm using Visual Basis on my project entitled Payment System. Can you help me on how to change the Page setup from portrait to landscape on the Data Report? Thanks in Advance........... ;-)

Software Development visual-basic
Member Avatar for gms_019
0
87
Member Avatar for litchi

Hi :) I was hoping someone could point me in the right direction to create a grid of clickable objects/images/shapes. My problem is this, I have to create a grid of 100+ characters that, when you click on one, appends a JTextArea with a specific, different, character. The only idea …

Software Development java
Member Avatar for litchi
0
1K

The End.