132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gahhon

as we know the code of scanner is like this, [CODE] ... Scanner scan = new Scanner(System.in); System.out.print("something is something: "); [COLOR="Red"][type] [variable name] = scan.next();[/COLOR]... [/CODE] so here is my problem, how can we scan char type?

Software Development java
Member Avatar for stevanity
0
90
Member Avatar for crazygamer49

"You should present students with a menu where they can repeatedly choose to practice addition, subtraction, multiplication, and division problems or to exit the program."

Software Development python
Member Avatar for TrustyTony
0
94
Member Avatar for sadiya

can anyone help me in writing a program for RAIL FENCE CIPHER in C lang??

Software Development c
Member Avatar for Adak
0
223
Member Avatar for bettybarnes

hi guys pls. help me with this. I want to limit the times when the user would guess the word for 3 trials only. How will i do that? PLs. see my code below: [CODE] TRYAGAIN: mov cx, 12 mov bx, 0 AGAIN: mov ah, 01h ; read a char …

Software Development assembly
Member Avatar for bettybarnes
0
186
Member Avatar for vegaseat

The function Delay() allows access to other events during the delay. For instance a certain key could be used to interrupt a lenghty delay. The Win32 API function Sleep() ignores events, maybe it should be called DeepSleep().

Software Development api pascal
Member Avatar for Duoas
0
1K
Member Avatar for TrustyTony

The need for efficient storing of IP numbers came up in discussion thread. With help of this conversion to/from the 32 bit numbers that IP numbers (the old ones) represent I could push the time of finding unique IP numbers from 10 million random numbers down to under two minutes …

Software Development lan-wan python
Member Avatar for mrkbbk
0
824
Member Avatar for NormR1

Is there an easy to use tool that OPs could use to find variable's whose class level definitions are Shadowed by local definitions of variables with the same name. I see that problem a couple of times a week. Do the standard IDEs have options that would warn about the …

Software Development java
Member Avatar for ~s.o.s~
0
182
Member Avatar for hsiaoyk901201

I am a beginner of C++. i want to print out the list like the following [ATTACH]22433[/ATTACH] but what i get is this [ATTACH]22435[/ATTACH] and this is my code [ATTACH]22436[/ATTACH] It looks like i did something wrong when i trying to assign the value that i calculated to the array …

Software Development c++
Member Avatar for hsiaoyk901201
0
148
Member Avatar for Ruchi224

Hello.. I have a form and i have used a combobox along with datagridview and textbox.. I have various values in combobox namely Mechanical, Electrical, Etectronics etc.. When I select the option Mechanics, I wish only few fields of the table be updated in the gridview, with the type mechanics. …

Software Development open-source vb.net
Member Avatar for Mitja Bonca
0
191
Member Avatar for Rileyh

Could someone please tell me how to compile an assembly program. I have the code, but I can't compile it. Also, my "Hello, world!" program does not run when using Flat Assemble, a compiler I got off the internet. Here is my code: [CODE].386 .model flat, stdcall option casemap :none …

Software Development assembly
Member Avatar for AceStryker
0
164
Member Avatar for bettybarnes

hi guys just want to ask about how to translate this c code into assembly language: [CODE] int x = 1; while( x <= 3 ){ x++; printf("Sorry try again!"); }[/CODE] any help would be greatly appreciated! God bless!

Software Development assembly
Member Avatar for AceStryker
0
324
Member Avatar for theCompiler

[CODE]#include<graphics.h> #include<conio.h> int main() { int gd = DETECT, gm; int x1=50,y1=50,x2=200,y2=100; initgraph(&gd, &gm, "C:\\TC\\BGI"); setcolor(9); line(x1,y1,x2,y2); getch(); closegraph(); return 0; }[/CODE] here's my code in drawing a simple line in C . but it has errors it said that "undefined symbol _closegraph in module LINE.cpp (LINE is the name …

Software Development c
Member Avatar for D33wakar
0
684
Member Avatar for torbecire

I am using an assembly compiler to try and print the first 12 numbers. I have succeeded in adding, but it won't print some of the numbers. I want. 1 1 2 3 5 8 13 21 34 55 89 144 BUT GET. 1 2 5 13 34 89 233 …

Software Development assembly
Member Avatar for ynahneng
0
16K
Member Avatar for Raja Pandiyan

Hi, this will work in Edit button click,Getting values from combobox and given input to query.Oprdgv is my Datagrid. I got the error Like, "unable to cast the type 'system.int32' to type 'system.data.datatable" [CODE] Private Sub EditButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditButton.Click Dim mcode As String …

Software Development vb.net
Member Avatar for peter_budo
0
297
Member Avatar for mail2shrid

If i'm scanning from keyboard using getch(), how do i check which arrow key has the user pressed??(Arrow keys have ASCII values same as some other keys so we can't directly check for ASCII values)

Software Development c
Member Avatar for ashok1514
0
4K
Member Avatar for fullarmorzz

[CODE]#include<stdio.h> #include<conio.h> main() { char c; printf("Enter the code for the chart: \n"); do { scanf("%c",&c); switch (c) { case 'A':printf("Area Chart\n");break; case 'B':printf("Bar Chart\n");break; case 'U':printf("Bubble Chart\n");break; case 'C':printf("Column Chart\n");break; case 'N':printf("Cone Chart\n");break; case 'Y':printf("Cylinder Chart\n");break; case 'D':printf("Doughnut Chart\n");break; case 'L':printf("Line Chart\n");break; case 'I':printf("Pie Chart\n");break; case 'P':printf("Pyramid Chart\n");break; case …

Software Development c
Member Avatar for ashok1514
0
133
Member Avatar for braindope

guys pls help me to creat a progam using array that will display the ff sequence 1,1,2,3,5,8,13,21,3,55 after displaying the fibonacci series tha program will ask for an array psition & will display its corresponding value this is done continnously... please...

Software Development c
Member Avatar for ashok1514
0
118
Member Avatar for Marissak

The question I'm trying to answer is: Write an object oriented C++ program to translate an infix expression to postfix. I have done much of it but after I debug the only output is "Postfix:" and I cannot figure out why. This is my code so far: #include <iostream> #include …

Software Development c++
Member Avatar for GouseKSyed
0
234
Member Avatar for fullarmorzz

[CODE] #include<stdio.h> #include<conio.h> main() { char c; printf("Enter the code for the chart: \n"); do { scanf("%c",&c); switch (c) { case 'A':printf("Area Chart\n");break; case 'B':printf("Bar Chart\n");break; case 'U':printf("Bubble Chart\n");break; case 'C':printf("Column Chart\n");break; case 'N':printf("Cone Chart\n");break; case 'Y':printf("Cylinder Chart\n");break; case 'D':printf("Doughnut Chart\n");break; case 'L':printf("Line Chart\n");break; case 'I':printf("Pie Chart\n");break; case 'P':printf("Pyramid Chart\n");break; …

Software Development c
Member Avatar for ashok1514
0
153
Member Avatar for techlawsam

Ok so while reviewing this code which is meant to convert yards, and feet to inches I found on lines 17-19 , and 32. There are "string data" (if that makes sense) as parameters in each method? What do they denote, serve , and their purpose? MSDN usually has convoluted …

Software Development
Member Avatar for Mitja Bonca
0
364
Member Avatar for SCass2010

Hi everyone again :) Bit of a weird problem, but is there any way of counting how many keys are stored within a multimap? Say for example I have the keys A, B, C and D. Each of these keys have say 100 values for each, so there should be …

Software Development c++
Member Avatar for vijayan121
0
1K
Member Avatar for diyez treze

can you help me to fix this code?? i made that one but there's a problem in searching once you enter the form it just paste all the reservation. but i need to be categorize by name, address, roomtype and email [CODE]Imports MySql.Data.MySqlClient Public Class search Public conn As New …

Software Development vb.net
Member Avatar for Teme64
0
165
Member Avatar for J-Dub

I am trying to build an animation. It just has two pictures or scenes. I want it to start at one picture and end at another. When I run my project all I see is a blank screen. I have checked and made sure that my Image paths are correct. …

Software Development image java java-swing video-card
Member Avatar for J-Dub
0
192
Member Avatar for meli123

Hey guys Im trying to create a code where: input A: number Input B: Base Print: Decimal form I am going to use algorithm where u do following: NUMBER % BASE but it would do it the number of times that the base is.. so if its 6 (base 2) …

Software Development algorithm c++
Member Avatar for doug65536
0
116
Member Avatar for Zssffssz

Ok I know the basics of ofstream and ifstream but it seems as if every tutorial on it leaves this out. How do I delete files in c++ console app. Reason? I want to use a temporary file in my app for transferring betting two programs that open and to …

Software Development c++
Member Avatar for NetJunkie
0
182
Member Avatar for adem87

my address variable equal at address =C:\\prpgm\\prpgm\\program.accdb but its change every time and address doesnt work in file.copy what must ı write in parantesis that will be equal to address forc ever time File.Copy("adress",

Software Development file-system
Member Avatar for NetJunkie
0
136
Member Avatar for bhagawatshinde

Hi, can anybody have any idea about Replacing .NET WebBrowser control with a better browser, like Chrome,mozilla?

Software Development asp.net
Member Avatar for NetJunkie
0
70
Member Avatar for Fireprufe15

I want to save the contents of my richedit to a plain text file. With my current code, only a partial of the richedit's text ends up in the plain text. Could you please tell me what's wrong with my code: [CODE] var fSave : TextFile; begin AssignFile(fSave, dlgSave.FileName + …

Software Development pascal
Member Avatar for AceStryker
0
2K
Member Avatar for ajst

Hi Guys and girls, I'm trying to save the font settings of my component and load them back in via xml. I have xml working with saving and loading of every property except Font. When I save font its as an integer. But when I load the value back in …

Software Development pascal xml
Member Avatar for AceStryker
0
426
Member Avatar for knightofsoshi

[CODE] void customer (struct data *cust1); void menu(); void printReceipt(struct data *cust1, float &balance); struct data{ char name[20]; int accno; }cust, *cust1;[/CODE] above is an excerpt from my completed c++ program. my c++ coding is running well and i dont have a problem with it, but i am required to …

Software Development c c# c++ pascal
Member Avatar for AceStryker
0
247
Member Avatar for cdn88

I would like to access the name field from the array items and print the name but I am having trouble. I created a pointer 'L' in callInitialize and set it to the upper struct type List which I named 'studentList'. [code] int callInitialize () { /*Initialize a List*/ List …

Software Development c
Member Avatar for cdn88
0
78
Member Avatar for u8sand

Ok so I've used function pointers for some time. I was trying to figure out if this was possible. First. It IS possible to convert a function pointer into an array of bytes. It is also possible to reconstruct that function with the bytes in that array. I would like …

Software Development c++
Member Avatar for doug65536
0
303
Member Avatar for RideFire

This is really making mad. I'm trying to add two numbers. This is a basic code that I can't get to compile. [CODE]#include <stdio.h> #include <stdlib.h> extern int addus(int,int); int main() { int a; int b; int result; a=5; b=6; result = addus(a,b); printf("Your value is: %d", result); return EXIT_SUCCESS; …

Software Development c
Member Avatar for RideFire
0
138
Member Avatar for meli123

can someone please give me some basic code sample using MOD op for decimal to binary up to BASE 10 ty ex. input 110 base 2 print 6

Software Development c++
Member Avatar for Taywin
0
280
Member Avatar for NoUserNameHere

How would I trace the steps for the function's output? [CODE]int f(int n) { if (n==0) return 1; else if(n==1) return 2; else return 2* f(n-2) + f(n-1); }[/CODE] Would it be something like: (Let's say n=6) step 1) 2 * f(6-2) + f(6-1) 2) 2 * f(4-2) + f(5-1) …

Software Development c++
Member Avatar for Taywin
0
93
Member Avatar for cdudefire

I have been ok so far but now I am having a problem with counting the amount of time that cars spend in the lot during the day and counting the total cost at the end of the day. Any pointers in the right direction would be helpful. Here are …

Software Development c
Member Avatar for cdudefire
0
458
Member Avatar for hessian26

Hi, I am new to Java and just learning GUI's. I was wondering if someone could help me with a project? I am trying to create a questionnaire. It will was the user a question and have radio button answers. After the answer is selected, they will hit the "next" …

Software Development gui java
Member Avatar for mKorbel
0
183
Member Avatar for layr

Hi, i need a simple python code which would trigger a command if there is an internet connection; if there isn't, sleep for some time and check again until there is. I found few examples, but they're all rather difficult to grasp and being new to python, I can't get …

Software Development python
Member Avatar for TrustyTony
0
3K
Member Avatar for inagumi

Can someone help me on how can i make a assembly program that can multiply? I'm going to make a program that convert a currency to another currency so it will involve a user input. I browsed through the net on how to make a program that do multiplication but …

Software Development assembly
Member Avatar for inagumi
0
295
Member Avatar for ilovejava

An emirp (prime spelled backwards) is a prime number that results in a different prime when its digits are reversed.[1] This definition excludes the related palindromic primes. Emirps are also called reversible primes. this are the list of emirps [url]http://oeis.org/A006567/list[/url] [CODE] public class EmirpProgram { public static void main(String args[]){ …

Software Development java
Member Avatar for NormR1
0
400
Member Avatar for minimi

I'm writing a reverse Polish calculator. If the input is 1 2 - 4 5 + *, the output should be 9, but I'm getting -9. Does anyone see where the problem lies? Thanks! [CODE]#include <stdio.h> #include <stdlib.h> // for atof() #include <ctype.h> /* denifitions for main() */ #define MAXOP …

Software Development c
Member Avatar for WaltP
0
262
Member Avatar for bennetk2

I am getting a big problem at the end of my arrange function. It reads the last line of code in the function, but then never leaves the function. I don't care about output at this point. I just want to figure out why I can't leave the function and …

Software Development c++
Member Avatar for WaltP
0
215
Member Avatar for Mahen

Note This app will tell the current Time, requires .net 3.0

Software Development asp.net c#
Member Avatar for Supervolk
0
145
Member Avatar for casey_sunako

I have this problem.. I keep getting this error: Cross-thread operation not valid: Control 'ListView1' accessed from a thread other than the thread it was created on. Here is my code: [CODE]Imports System.IO.Directory Imports System.IO Public Class Video_to_Mp3 Public folderopen As String Dim ofd As New OpenFileDialog Dim sizetext As …

Software Development audio vb.net
Member Avatar for Unhnd_Exception
0
293
Member Avatar for NewbieXcellence

Hello everybody! I'm trying to produce a timestamp (system time) in windows (Python 2.7) with resolution equal to or better than microseconds. Calling time.time() repeatedly in a loop it appears it only updates in approximately 0.01 second increments. Using datetime.datetime.today() seems to show similar results. Anybody have a possible way …

Software Development python
Member Avatar for NewbieXcellence
0
503
Member Avatar for mike_cao

dear all, i got a problem about the arraylist function.now i want to create and return an arraylist with each student ID for populating listboxes. [CODE] Public Function StudentIDs() As ArrayList End Function [/CODE] To display the student ID in the listbox by calling this function. (i need to read …

Software Development vb.net
Member Avatar for lolafuertes
0
461
Member Avatar for Zssffssz

Ok so when makeing my program these errors come up: Error:jump to case lable Error: crosses initialization of 'std::ofstream a_file' The ofstream one repeats twice referring to the same line. Can anyone help me. I can't post the code as this is from my iPod.

Software Development c++
Member Avatar for pseudorandom21
0
110
Member Avatar for Zssffssz

How much longer until I'm the king of typos and stupid questions? Ok well in a different thread of mine there was a reference to BIOS.h. Does anyone know where to download it (If I don't have it comp making tarball sooo slow) or/and what's in it. I want to …

Software Development assembly c++ motherboards-cpu-ram
Member Avatar for pseudorandom21
0
330
Member Avatar for winecoding

I happen to read the following code segment from Thinking in Java [CODE]public class PetCount3 { static class PetCounter extends LinkedHashMap<Class<? extends Pet>,Integer> { public PetCounter() { super(MapData.map(LiteralPetCreator.allTypes, 0)); } public void count(Pet pet) { // Class.isInstance() eliminates instanceofs: for(Map.Entry<Class<? extends Pet>,Integer> pair : entrySet()) if(pair.getKey().isInstance(pet)) put(pair.getKey(), pair.getValue() + 1); …

Software Development java
Member Avatar for JamesCherrill
0
165
Member Avatar for gaurav_gandhi13

hello i want to know about the c# coding as i know about the theoritical part but when it comes to coding part it creates problem forto write the code so which is the best method to do this.Is there any good book which covers coding part mostly or anything …

Software Development c#
Member Avatar for gaurav_gandhi13
0
218

The End.