132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 … | |
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++ | |
**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 … | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
I'm working on a project on my own and wanted to create an JComponent or JFrame that looks like the following screenshot.      Here is its layout.   I would appreciate it if you showed me by an … Software Development java java-swing | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
i need some easy techniques on how to work with source code expecially when you use it to create the gui . . . Software Development gui | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
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++ | |
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 … | |
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 | |
• 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++ | |
What is the difference between partial and abstract classes ? Software Development | |
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 | |
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 … | |
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; … | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 |
The End.