132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for king03

Hi there guys can anyone help me with my program. Because I have an enrollment form program for highschool students and what I want to happen is it will automatically save the information inputted to it in system, not in notepad like in file streaming. So when I open the …

Software Development
Member Avatar for kapojian
0
86
Member Avatar for geeksforgeek

what is void pointer? I am unable to understand, please help me

Software Development c
Member Avatar for geeksforgeek
0
124
Member Avatar for maroom

Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String …

Software Development java
Member Avatar for JamesCherrill
0
343
Member Avatar for sofia24

Hi, I'm writing a C++ script and part of it is to connect to an SQL Server. C++ is new to me so I'm still working my way around. Any help would be greatly appreciated. Many Thanks

Software Development c c# c++ sql
Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for maroom

I have got errors which where commented in below program.Plz compile these program and cpy paste the code ... iam little bit confused... dudee.... [CODE]import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String fName; String lName; long phNo; …

Software Development java
Member Avatar for JamesCherrill
0
218
Member Avatar for zendet

Hey im just trying to get back into c++ and i cant seem to solve why this is happning? I know theres too many header files also, i just normally leave them there in practise things when im messing with colours etc. Could you also please explain why it is …

Software Development c++
Member Avatar for frogboy77
0
145
Member Avatar for saurav2007

I got the problem with this code.. can anyone explain me the output.. main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );}

Software Development c
Member Avatar for saurav2007
0
124
Member Avatar for kylelendo

Hii I have developed a code in which i have two check those 2 digit numbers whose 3 times sum is equal to the number eg:-27=3(2+7) [CODE] #include<conio.h> #include<stdio.h> int main() { clrscr(); int a,b,n; long sum=0; loop:for(n=24;n<=28;n++) { a=n/10; b=n%10; sum=sum+(a+b); } if(n==(3*sum)) { printf("%d \n",n); } else { …

Software Development c
Member Avatar for scrappy57
0
161
Member Avatar for rarment

I'm just starting to learn C++ and I need some help. I need to be able to read in a text file and pull out numbers from the file (like a news story, etc). I will need to be able to do other checks with the numbers as well, I'm …

Software Development c++
Member Avatar for rarment
0
298
Member Avatar for ktab

Hello all I was wondering how i could pass the following SLQ function to my datatable: Select sum(Quantity) from Purchases where transaction_mode=1 Thank you

Software Development vb.net
Member Avatar for ktab
0
252
Member Avatar for Danielle87

I would like to make a selection menue for 2 programs that i have. A menu similar to the one below. [CODE]import sys print """Menu 1) Random 2) Search""" answer = raw_input("Make a selection> ") if "1" in answer: print "This will contain program 1" elif "2" in answer: print …

Software Development data-structure python
Member Avatar for Danielle87
0
356
Member Avatar for hairo

Hi friends, I need to convert this random number generator in C++ to C. Please help me. C++ code [CODE] #include <iostream> #include <ctime> using namespace std; //This class will give satisfy basic // random number considerations for // games an general apps. // WARNING: Not for Cryprographic use // …

Software Development c++ storage
Member Avatar for hairo
0
746
Member Avatar for cent91

i wanna use the Sleep fucntion in a CLR vc++ app, if i include windows.h it gives a huge list of errors, if i use _sleep() then it dowsnot work at many systems since its obslete. what should i do? i am bound to use CLR bcoz my code uses …

Software Development asp.net c++ visual-studio
Member Avatar for cent91
0
448
Member Avatar for Oneryavuz

i have a form and i need to use mouse scroll for moving my panel. so i need to create event ( :) ok ok im not sure ) and No matter where the selected i need to use this event when i use mousescroll :) I hope i was …

Software Development vb.net
Member Avatar for Oneryavuz
0
162
Member Avatar for tungnk1993

Please refer to the attached image [ATTACH]22297[/ATTACH] I want to create an application which provides toolbar 'button' like BatteryBar. Thanks for your help :)

Software Development microsoft vb.net windows-xp
Member Avatar for samson_zed
0
172
Member Avatar for nzdude09

[code] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { int guess; unsigned int seed = time (0); srand (seed); //different spot?// int upperBound; int lowerBound; int range; char c; bool done = false; do { bool found =false; upperBound = 101; lowerBound = 1; do …

Software Development c++ visual-studio
Member Avatar for Moschops
0
250
Member Avatar for aFg3

Hi people im new here. I want to work with security but i got many issues with this simple program. I want to encrypt and decrypt a msg with openssl cmds. Btw im using pipeline and process open (popen) function. Im using Fedora gcc to compile. Any help, recommendations will …

Software Development c
Member Avatar for Mouche
0
152
Member Avatar for Ehtesham Siddiq

hi, My application is in VS2008 coded in vb.net.I have a form with a datagridview which loads data from databaase.there is one column where data is stored separated by comma's.Like Name,Surname,LastName name this column as [B]Testing[/B].I have a checklistbox on another of my form.When the user selects a particular row …

Software Development vb.net
Member Avatar for Ehtesham Siddiq
0
850
Member Avatar for janice91

[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; …

Software Development java
Member Avatar for Muhasin
0
240
Member Avatar for asrockw7

So from what I've been taught, in school and in books, all C programs(I assume C++ too) always have main(). That's very explicitly mentioned. However in my poking around with some relatively large open source projects in hopes of learning something, it isn't as straight forward. What I've encountered was …

Software Development c ide open-source
Member Avatar for Moschops
0
163
Member Avatar for D33wakar

I wrote a procedure to read integers(unsigned) from stdin and store it in a variable. I wanted it to handle backspaces too. so I made some adjustments but unfortunately it didn't work.--see line 14 in the code [CODE]get_num: ;(function get_num: read integers from stdin) push ax ;save all registers push …

Software Development assembly
Member Avatar for D33wakar
0
1K
Member Avatar for Intrikate

So this is my first post and I have only begun using python. One of my first assignments is to design a program which will count the most used words in the given text file. In my case we are using the Declaration of Independence. Here is what i have …

Software Development file-system python
Member Avatar for JoshuaBurleson
0
3K
Member Avatar for RideFire

I know C++, but I'm trying to learn C. Anyways, what am I doing wrong here. If I delete the line with 'scanf', it will compile so obviously I'm doing something wrong there. Anyways... [CODE]#include <stdio.h> int main() { int x; printf("enter a number\n"); scanf("%d", &x); printf("Your number is: %d\n", …

Software Development c
Member Avatar for RideFire
0
98
Member Avatar for emrecaglarhosgo

need a[CODE][/CODE] in C that converts any given BCD to GRAY Code, and any given GRAY to BCD. I am a started so little halp ;)

Software Development c
Member Avatar for aFg3
0
174
Member Avatar for hqt

Who can teach me the purpose of stringStream, and how to use it, please. I have read some paper about this, but I still have something don't understand.

Software Development c++
Member Avatar for raptr_dflo
0
142
Member Avatar for trejorchest

Here is the assignmnent I need to complete: "Write a program to calculate and print the result of the following two operations: 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + ... + 1/99999999 + 1/100000000 and 1/100000000 + 1/99999999 + 1/99999998 + 1/99999997 + ... + 1/3 + …

Software Development c++
Member Avatar for raptr_dflo
0
370
Member Avatar for NexG

Here is the code I have so far. I'm not sure how to proceed from here. My goal is to make a program that outputs the probability of n amount of coin tosses, where n is the user input. [CODE]import java.util.Scanner; public class toss{ public static void main(String[] args){ Scanner …

Software Development java
Member Avatar for NexG
0
2K
Member Avatar for iamthesgt

I am writing a program that writes log entries to an external text file and returns them upon request. When called, the return function should output the log entries between two user- submitted dates or outputs the last 100kb of the file if that's what's requested. The logfile stores each …

Software Development c++
Member Avatar for raptr_dflo
0
201
Member Avatar for ben1996123

[code]#include <direct.h> int main(){ mkdir("C:\\Program Files\\Bacon"); }[/code] Creates a folder in the folder that the .exe file is in, and is called "Program FilesBacon". I think it's obvious what I wanted it to do. Help please? I'm using codeblocks if it matters.

Software Development c++
Member Avatar for gihanbw
0
143
Member Avatar for isebas

Im an AP computer science studen (we started two weeks ago so I dont know much). For homework we had this problem: " Write a program that will let you enter your gender (M or F) and your height in inches and will then tell you wether you are tall,medium …

Software Development java
Member Avatar for isebas
0
236
Member Avatar for nickliutw

I'm programming a program that add feet and inch together(assume feet and inch are integer). I run into a compiler error. I know the problem is I'm missing the returning statement. But I don't know what to return. [CODE]public class Distance { private int feet; private int inch; public Distance() …

Software Development java
Member Avatar for hfx642
0
122
Member Avatar for Connor Ward

Hi guys/gals, I've recently developed a piece of software and it currently uses 1 external .txt file (located in the bin\debug folder of the project folder) that is used to store data long term. The program works wonderfully when i use the visual studio 2008 debugger, but when i either …

Software Development visual-studio
Member Avatar for Momerath
0
116
Member Avatar for moone009

I am building an excel address parser. Column B = streetnumber Column C = UnitNumber Column B is my streetNumber and What I need it to do is anytime it finds a letter attached to the number it needs to move it from column b to column C. So if …

Software Development vb.net
Member Avatar for Reverend Jim
0
130
Member Avatar for music613

Any thoughts on a clean way to modify an extant (and otherwise "ordinary") listBox such that it has more than one column? Further, once so altered, how to populate said listBox? example: listBox1.MultiColumn = true; ... now, I'm stuck! :(

Software Development
Member Avatar for kplcjl
0
147
Member Avatar for PM312
Member Avatar for abders

I just finished a program, it worked perfectly, then I changed a bit of it, and now it won't work at all, even if I change it back. [CODE]self.secret_txt = Text(self, width = 35, height = 5, wrap = WORD).grid(row = 3, column = 0, columnspan = 2, sticky = …

Software Development python
Member Avatar for abders
0
210
Member Avatar for ixmike88

hello, i started programming again after a while and i made this just to pass time/relearn the basics and stuff there is a weird issue that i can't figure out, when i input row 0 column 2 or row 1 column 2 it will fill the spot for both the …

Software Development c++
Member Avatar for coltonbyu
0
837
Member Avatar for alexanderlegend

Hello everyone! I have been working on a sudoku generator. My main aim is to create a completed 9x9 grid that follows the rules of sudoku. The grid should display unique numbers every time it is run i.e the numbers have to be randomised. My logic in tackling the problem …

Software Development c++ gaming
Member Avatar for alexanderlegend
0
6K
Member Avatar for bbowsh54

Greetings, I made a simple "restarter" app... However, I need to close multiple instances of an application. For example, if I have three windows of paint, or three windows of Word open, how do I check if it is still open before I open a new instance? Here is my …

Software Development vb.net
Member Avatar for bbowsh54
0
887
Member Avatar for judithSampathwa

hi i have a datetime picker in user control form in C#. when i load the user control i want the datetime picker to disply no value in the datetime picker box. the code is below. [CODE] dpEDate.Format = DateTimePickerFormat.Custom; dpEDate.CustomFormat = " "; [/CODE] and when the user control …

Software Development asp.net
Member Avatar for judithSampathwa
0
237
Member Avatar for coolsasuke

Well, I recently got a program from csharp . But im not familiar with c# . I only got codes from vb.net . Is it possible if you guys help me to translate these following codes to C# ? First set of codes, it will download the file from the …

Software Development c# first-post vb.net
Member Avatar for skatamatic
0
628
Member Avatar for dustbunny000

If I have a list of strings, for example here's a small part of my list: [CODE]small_list=['HETATM 2142 O DUM 2142 -26.000 -8.000 12.300','HETATM 2143 O DUM 2143 -26.000 -6.000 12.300'][/CODE] Is there a way to remove the 12.300 from a string in this list and then replace it with …

Software Development python
Member Avatar for TrustyTony
0
74
Member Avatar for kevinyu

I'm try to make a program that will ask a user to input a string then the string gets masked (by asterisks) and later, guess every letter (character) of the masked word until the string is fully unmasked (a la Hangman). But my problem is, after the first unmasking, the …

Software Development c++
Member Avatar for pseudorandom21
0
205
Member Avatar for mcconnell_34

Hey, I need to know what identifier i can use instead of string that will output all of the words that you type in the program. For example: if i was to use string ans1; cout <<"How are you?: "; cin >>ans1; and for my answer i typed "very good"...it …

Software Development c c# c++
Member Avatar for Narue
0
181
Member Avatar for JoshuaBurleson

I'm having an issue displaying images in tkinter, I've tried the methods suggested by effbot and a couple other sources to no avail. Here are a couple ways I've tried so far:[CODE] gmail=PhotoImage('gmail.gif') self.glab=Label(self,image='gmail.gif') self.glab.image=gmail self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.glab=Label(self,image=gmail) self.glab.image=gmail self.glab.grid(row=3,column=4) self.glabim=PhotoImage('gmail.gif') self.glab=Label(self,image=self.glabim) self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.lab=Label(self,image=gmail) self.lab.image=gmail self.lab.pack() [/CODE]the last one …

Software Development image python tkinter
Member Avatar for JoshuaBurleson
0
20K
Member Avatar for challarao

Hi, I got a doubt about for loop while i was thinking about time complexity.... Is increment operation in for loop a two steps operation i.e., increment i and assign it the i or an one step operation just like just incrementing it? Is there any pointer operation involved in …

Software Development c
Member Avatar for challarao
0
145
Member Avatar for Asotop

Hey. I'm creating a second degree equation solver in the windows form application.(In the form ax^2+bx+c= 0) And the basic programming is complete but I'm having problems making it bullet proof, in case the user type in the wrong number and type in a =0. So basically i have an …

Software Development gui
Member Avatar for skatamatic
0
140
Member Avatar for alteran

I've been trying to modify the following code so that it only displays one scrollbar for 3 radio buttons but so far I just can get it to work right. After the modification the gui should have 3 radio buttons at the top, one scrollbar for all 3 buttons, and …

Software Development gui java
Member Avatar for alteran
0
196
Member Avatar for ntrncx

i am fixing something and i have that fuction in it [CODE]bool DeckOfCards::checkFlush(const Card checkCards) { counter=0; cardCheck=" "; for(int x=1;x<5;x++) { cardCheck=checkCards.suits[x]; for(int y=0;y<5;y++) { found=hand[y].find(cardCheck); if(found!=string::npos) { counter++; } } if(counter==5) { return true; } counter=0; } }[/CODE] it goes here: [CODE]bool result=false; if((result=checkFlush(checkCards))==true) { return winner=5; }[/CODE] …

Software Development c++
Member Avatar for ntrncx
0
154
Member Avatar for chixm8_49

Hello. I would like to ask some suggestions to the community. In Arrays, we can implement a 2D array like: [CODE]String[][] testString = new String[][] { {"1", "2", "6"}, {"4", "5", "3"} };[/CODE] How can I implement this in Vector? Or is that even possible? I was doing it in …

Software Development java
Member Avatar for stevanity
0
82

The End.