132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for brett.warren.1612

Hey, I tryed the first problem of the Euler project, but for some reason the code bellow is not give me the correct answer: def multiple_sum(multiple=3): x = 0 for n in range(0, 1000): if not (n % multiple): x += n return x print multiple_sum(5) + multiple_sum(3) It is …

Software Development python
Member Avatar for brett.warren.1612
0
120
Member Avatar for nakul_pancholi

Dear all, I am learning C language. I got the following problem while running the problem. Program: [CODE]#include <stdio.h> #include <math.h> #include <stdlib.h> main() { int x; for (x = 1; x <= 250; x ++) printf("x = %d\n", x); }[/CODE] OUTOUT should be: x = 1 x = 2 …

Software Development c c# c++
Member Avatar for arulgee6
0
1K
Member Avatar for Sara Masri

Write a program that tests a string is accepted or rejected according to a certain Finite State Machine (FSM). The program must read the FSM before testing the input string.

Software Development c++
Member Avatar for rubberman
0
314
Member Avatar for neyoibarra

**hey guys, well i just want to get alittle help on something, so this is my prob, i finally got the first .txt files to be made by spereating them depending on there id numbers, which in short through each new employee is another new .txt file created, but the …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
105
Member Avatar for BboyTurok1990

I need help with this c1075 error. Everytime I build it I get this error any idea what I did wrong? I appreciate it #include <iostream> #include <cmath> using namespace std; const double pi = 3.14159265; int main () { string name; string homework; name = "Randy Calhoun, Giannis Combe, …

Software Development c++
Member Avatar for vmanes
0
239
Member Avatar for fatimaashena

i'm trying to input ligand with mol2 format in autodock but i get an error and a warrning warrning : {5moleculs in} , {D,ducument and ...} Traceback (most recent call last): File "/tmp/autodock/dist305/MGLToolsPckgs/MGLToolsPckgs/ViewerFramework/VF.py", line 685, in tryto result = apply( command, args, kw ) File "/tmp/autodock/dist305/MGLToolsPckgs/MGLToolsPckgs/AutoDockTools/autotorsCommands.py", line 481, in doit …

Software Development python
Member Avatar for rrashkin
0
829
Member Avatar for tux4life

One of the things which attracted my attention was that there are often newbies asking how to create a password program in C/C++, often they don't succeed, well here's my response, you can use it for any purpose you want, one thing you'll have to keep in mind is that …

Software Development c c# c++ ide open-source
Member Avatar for Remy1990
0
8K
Member Avatar for locsin

Greetings! Anybody know how to insert marquee or scrolling text message in statusbar panels using Visual Basic 6. I want to put scrolling message in my status bar anybody could help me plz. Thank you in advance.

Software Development visual-basic
Member Avatar for Kibepaul
0
2K
Member Avatar for john.kane.100483

OK so I'm almost done with my program. How to put this in function like putting each case like void Binary2Decimal() , void Octal2Decimal() & , void Hexa2Decimal() in "TURBO C++"? Call a function like I only want to display only the Binary to Decimal case. #include<iostream.h> #include<conio.h> #include<stdio.h> char …

Software Development c++
Member Avatar for Schol-R-LEA
0
228
Member Avatar for evaldaskowka

Hello, is this for loop possible? Im trying to get each new value for for(a;a<sum;a++) sum variable. After countless tries i am stuck and don't think it's possible to change that... When sum = sum + laikai[i+1]; exists compiler CMD window is not responding and checking for solution... Help would …

Software Development c c# c++
Member Avatar for evaldaskowka
0
414
Member Avatar for maldz

can you please help me on how to search multiple data and display it to my datagrid. im a newbie in vb6 and im having a hard time in coding.

Software Development display visual-basic
Member Avatar for maldz
0
182
Member Avatar for Xabush

I'm working on a project on my own and wanted to create an JComponent or JFrame that looks like the following screenshot. ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-right") Here is its layout. ![e687f5cd32e6536ff8d0e3406b83b9e2](/attachments/small/4/e687f5cd32e6536ff8d0e3406b83b9e2.png "align-left") ![e687f5cd32e6536ff8d0e3406b83b9e2](/attachments/small/4/e687f5cd32e6536ff8d0e3406b83b9e2.png "align-left") I would appreciate it if you showed me by an …

Software Development java java-swing
Member Avatar for mKorbel
0
289
Member Avatar for john.kane.100483

Hi I need help to correct this program :( NOTE THIS IS "TURBO C++" #include<iostream.h> #include<conio.h> #include<stdio.h> char value; char t, u, v; char answer; void Binary2Decimal() { gotoxy(1,17);printf("[BINARY TO DECIMAL CONVERSION]"); char b2,f2=1,d2=0; gotoxy(1,19);printf("Enter a Binary number: "); scanf("%d", &b2); printf("\n\n"); while(b2>0) { if((b2%10)==1) { d2=d2+f2; } b2=b2/10; f2=f2*2; …

Software Development c++
Member Avatar for David W
0
203
Member Avatar for r.nair3456

I have done most of the topics in core java.But i feel for web development u have to do advanced java.Then struts then hibernate.I have heard that c# is almost same as core java(j2se)so shall i proceed with .net because i have heard its not that lengthy and u have …

Software Development java multithreading
Member Avatar for jwenting
0
224
Member Avatar for jared.geli

Hi guys. I need help in updating Excel files through Datagrid. I can update it through a fixed update sql statement(Update table_name Set field1=value1, field2=value2 Where ID=unique_no) but I encountered a situation where a spreadsheet can have 3 columns, sometimes 5 and so on. My point is can I update …

Software Development vb.net
Member Avatar for jared.geli
0
442
Member Avatar for marluke

hey..my name is marluke.. i want to know the code of Save, Edit and Delete using visual basic 6 and the database is Ms Access does any body wants to help me? please i really want to know and learn visual basic.. thanks for helping LuKeZ

Software Development visual-basic
Member Avatar for Mark_Jones
0
6K
Member Avatar for mrendi

hello all, i have a problem to save data that get checkbox is true. so How to save data/row to datatable and bind it again to Datagrid? thanks regard

Software Development
Member Avatar for mrendi
0
77
Member Avatar for Fadhli_1

can this thing below work????? {#include<iostream.h> #include<conio.h> #include<stdio.h> char value; char t, u, v; char answer; void Binary2Decimal() { switch(t){ case 'a': //ok cout<<endl<<"[BINARY TO DECIMAL CONVERSION]"<<endl; cout<<endl; long b2,f2=1,d2=0; cout<<"Enter a Binary number: "; cin>>b2; cout<<"\n\n"; while(b2>0) { if((b2%10)==1) { d2=d2+f2; } b2=b2/10; f2=f2*2; } cout<<"Decimal equivalent is: "<<d2<<endl; …

Software Development c++
Member Avatar for brett.warren.1612
0
135
Member Avatar for renierdbruyn

I have a function that does certain checks, if the the checks fail, it will add values to a dict, i.e: outstanding = {} sims = [_sim for _sim in self.context.sims if unicode(_sim.iccid)] # for sim in [_sim for _sim in self.context.sims if unicode(_sim.iccid)]: print sims count = len(sims) if …

Software Development javascript javascript-jquery python
0
134
Member Avatar for john.kane.100483

OK so I'm almost done with my program. How to put this in function like putting each case like void Binary2Decimal() , void Octal2Decimal() & , void Hexa2Decimal() in "TURBO C++"? Call a function like I only want to display only the Binary to Decimal case. #include<iostream.h> #include<conio.h> #include<stdio.h> char …

Software Development c
Member Avatar for pritaeas
0
135
Member Avatar for 21345572

how do i delete,update,add and sort on a visual studio 2013 which is linked to a SQL server 2012 database?

Software Development visual-studio
Member Avatar for 21310051
0
223
Member Avatar for oooooo1

private static Scanner scanner; import java.util.Scanner; public class Dfs { public static void dfs(int a[][],int m[],int i,int n) { int j; m[i]=1; for ( j = 0; j < n && i<n ; j++ ) { if ( a[i][j] == 1 && m[j]==0) { dfs(a,m,j,n); } } } public static …

Software Development java
Member Avatar for oooooo1
0
135
Member Avatar for 21345572
Member Avatar for 21310051
0
80
Member Avatar for 21310051

when using a database in a program would it be better to use SQL server or the built-in option in visual studio?

Software Development visual-studio
Member Avatar for YA RAMSAMKER
0
102
Member Avatar for YA RAMSAMKER

i need some easy techniques on how to work with source code expecially when you use it to create the gui . . .

Software Development gui
Member Avatar for YA RAMSAMKER
0
94
Member Avatar for neyoibarra

SO MY PROB HERE IS JUST PLAINLY THE BACKSAPCE FEATURE OF MY PROGRAM EVERYTHING WORKS FINE EXCEPT FOR THE FACT THAT THE PROGRQAM IS CONSIDERING THE BACKSPACE KEHY AS PART OF THE CHARACTERS. int verification2() { system("cls"); char userChar[100], choice = 'Y', input, passChar[100]; for (int i = 0; i …

Software Development c++
Member Avatar for nullptr
0
172
Member Avatar for Rashmi_1

Hi, I need some help with sorting my string comparison. Bascially what I have to do is this: To have numbers sorted properly even when they aren't justified with leading 0's: 1 2 ... 9 10 Instead of: 1 10 2 ... 9 Also to have numbers sorted properly even …

Software Development c++
Member Avatar for Rashmi_1
0
907
Member Avatar for a.sithick

hello dani, I am using shape sql for datareport without dataenvironment conncetion towards parent-child relation ship table. But doesn't work with error. Because parent fields only accepted in my project. I am attaching my vb 6 project to your kind attention please. Option Explicit Dim con As ADODB.Connection Dim rs …

Software Development data-science open-source sql visual-basic
Member Avatar for a.sithick
0
844
Member Avatar for kimanthi

Hello everyone Am actually a newbie and learning C++ on my own. Have been trying to generate a code that prompts a student to enter his/details and after finishing. it couts his/her information. And prompts another student data to be entered. i have already some simple code here but it’s …

Software Development c++
Member Avatar for kimanthi
0
251
Member Avatar for ReneeJA

Write a program that accepts the name and ID number of 5 students and stores them in an array. After all the students have been entered, the application should display the title “Student Roster” and then list the names in the array. 2D Array. #include <cstdlib> #include <iostream> #include <string> …

Software Development c++
Member Avatar for ReneeJA
0
240
Member Avatar for Suzie999

As my project is growing, i've found myself needing to employ a new thread to carry out a loop task for the lifespan of my program. It all works seemingly well except for when I exit it. It dosent close cleanly. By that I mean I have to press SHIFT+F5 …

Software Development visual-studio
Member Avatar for ian.chou.12
0
130
Member Avatar for Wayne_2

I have a final project for C++ class that requires us to demonstrat each thing that we've learned, a list of 24 things that range from using binary numbers, to loops to passing arrays and polymorphism and recursion. What I would really like to try is to make a simple …

Software Development c++
Member Avatar for mike_2000_17
0
212
Member Avatar for john.kane.100483

Ok so I manage to built the program I want but there are problems. #1 The conversion from octal to decimal is not correct. #2 The conversion from hexadecimal to decimal some answers are correct. #3 I don't know how to character array this program. So what I am asking …

Software Development c++
Member Avatar for Schol-R-LEA
0
251
Member Avatar for Wesam_2

Hi, I need some help . Bascially what I have to do is this: what doing cin.get in the prpgram just do space or give value.

Software Development c++
0
129
Member Avatar for glamiex

This is the program that I made // Chapter 5, Programming Challenge 8: Math Tutor #include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; int main() { int num1, // The first random number num2, // The second random number choice, // The user's choice of problem studentAnswer, …

Software Development c++
Member Avatar for Schol-R-LEA
0
791
Member Avatar for MasterHacker110

So i have bought this book about assembly language but they use Netwide assembler and i dont have an IDE / COmpiler for it. I have looked at NASM origanal website but i din't fid any IDE. I use FASM, i dont know if NASM will work with FASM. Any …

Software Development assembly ide
Member Avatar for Дмитрий_4
0
2K
Member Avatar for nemzmiyaw

I created a Security Log On that starts when i turn the computer On.Like the Windows Log On. I managed to disable alt+F4, alt+tab, window key, ctrl+esc, but i have only one problem disabling the task manager or the CTRl+Alt+Delete Button, is there a way or any codes to disable …

Software Development vb.net window-manager
Member Avatar for RGSOHEL
0
2K
Member Avatar for shelan619

• The program consists of a Class customer and the Main function. • The class customer contains private data items as item value, interest payment, tax payment and total payment. • The class customer includes two public functions as lease Cal() and lease Show(). • lease Cal() function receives item …

Software Development c++
Member Avatar for samson.dadson.3
0
200
Member Avatar for YA RAMSAMKER

What is the difference between partial and abstract classes ?

Software Development
Member Avatar for YA RAMSAMKER
0
162
Member Avatar for asaidi

HI please can you run the code as attachement..i m trying to test the guess number ..if it is greater than the random number or smaller but when it is equal the function will return -1 i have error that i cannot understand as i m new in java the …

Software Development java
Member Avatar for JamesCherrill
0
248
Member Avatar for ashley.vanhoesen.7

I need to widdle down a queue of people until one person remains in the queue, that person is the chosen person for a task. The mothod I am writing take the queue of people and a number, which represents a number drawn from a hat. Then the queue is …

Software Development c++ queue
Member Avatar for NathanOliver
0
287
Member Avatar for d100man

the "f" for female is not being recognized so it is not outputting what it should and also the count statement is giving out an incorrect format could someone give me some pointers as to what im doing wrong #include<iostream> #include<string> using namespace std; int main(){ int femalecount=0,malecount=0,total; string race,office,sex; …

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
111
Member Avatar for Hunter2379

So my server sends information and receives information. I know this because i tested it on the local host. The problem is that the portion it receives comes out with little squares after the user input. Here is a picture of the problem. [url]http://img706.imageshack.us/img706/3342/outputc.jpg[/url] [url]http://yfrog.com/jmoutputcj[/url] Thank You Server Code: [code]import …

Software Development client-server java java-swing
Member Avatar for ROurOu
0
664
Member Avatar for mitul1719

For inputs A and B (integers) find number of possible integers X such that S(x^2)=S(X)^2 where S(x) is the sum of digits of X.......A<X<B

Software Development java
Member Avatar for jayshri.shah.10_1
0
112
Member Avatar for Gaurav_14

Hello there,,,,,,, In my project there is one window form and on that form I have one linkLabel control..... Now my question is that I want to add one web page into my project ......so that when I click on the LinkLabel it must open that web page .....so how …

Software Development
Member Avatar for YA RAMSAMKER
0
328
Member Avatar for MiniApocalypse

Hey guys! Im having problems with a snippit of code ive written. I know this is basic C++ so its a little embarasing that i cant work it out myself. Ive googled the run time error message but im not 100% sure i understand what it means. Unhandeled exeption, access …

Software Development c++
Member Avatar for Ancient Dragon
0
349
Member Avatar for Rallici

Dev-cpp 4.9.9.2 Windows 7 Hello I have been using my current version for quit a while and I restarted my computer today and now no matter what I try to compile I always get the return of: [CODE] Compiler: Default compiler Executing g++.exe... g++.exe "C:\Users\Salica\Documents\Cpp\hello.cpp" -o "C:\Users\Salica\Documents\Cpp\hello.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" …

Software Development c++
Member Avatar for learner_new
0
2K
Member Avatar for Xabush

I'm trying to create a JTextPane that has the following properties: 1. Vowel letters are colored in green 2. Consonants are colored in blue 3. Numbers are colored in red 4. And the maximum number of characters is 26 and all characters are in Upper Case To achieve this I …

Software Development java java-swing perl
Member Avatar for Xabush
0
349
Member Avatar for dre-logics

i use vb.net 2012 on Windows 7.0 64 bits pc. If I try to kill osk.exe is get this error: System.InvalidOperationException: Cannot process request because the process has exited. at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.Kill() Private OSKProces As System.Diagnostics.Process If ProcessesRunning("OSK") Then OSKProces.Kill() Else OSKProces = System.Diagnostics.Process.Start("osk.exe") End If …

Software Development vb.net
Member Avatar for dre-logics
0
681
Member Avatar for kamil_2

I installed the New version of dev c++ 5.6 for implement graphics programmes in c and i done all the steps like put graphic.h files,and add linkers in parameters. i done every step correctly but when i go to compile the simple graphics programme it will show the error line …

Software Development c
Member Avatar for Ancient Dragon
0
186

The End.