132,726 Archived Topics
Remove Filter ![]() | |
So, in the course of a simulation of a neural network I have two classes: neurons and synapses (which are basically the coupling between neurons). Synapses mediate information between neurons, so a neuron has to be able to speak to a synapse, and that synapse has to be able to … Software Development c++ | |
Why a i getting this message after i compile my program c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(main.o):main.c|| undefined reference to `WinMain@16'| [CODE]/* * p2.cpp * * Created on: Oct 7, 2010 * Author: saturner */ #include "p2.h" #include <iomanip> #include <string> using namespace std; int main (); /* * Converts an amount measured … Software Development c++ | |
Im having trouble with this program. I attached a picture of what is required. Thanks for any pointers you guys :) p.s. I'm very new to this. Software Development c++ | |
Hello folks, I've got a conundrum that Google was unable to fix, so here's hoping someone here knows how. I've got an application and a Delphi DLL and now what I need to do is write a C# DLL which exposes a number of functions the Delphi DLL will use. … | |
I have the following code in which it supposed to remove rows that have the first column checkboxes checked, but it only removes one row at a time. If you have more than one checkbox checked, you have to click the command button each time to remove the row. It … Software Development vb.net | |
hi... can anybody tell me how to see the codes behind a java game on a web page?? thanks.. | |
Hi. ----- Thanks for reading ... I want to write for example: ln 3 Is there is any command or function for it ...! Software Development c++ | |
hi everyone this is my code. [CODE] public class Qustion3B{ public static void main (String args[]){ double sinx = Math.sin(0.5236); double cosx = Math.cos(0.5236); sinx = Math.pow(0.5236,2); cosx = Math.pow(0.5236,2); double sum=sinx+cosx; System.out.println("sine: " + sinx+"cosine: " + cosx +"sum: " + sum ); } }[/CODE] it continue to show … Software Development java | |
Ok for my uni project im wondering if its possible to make a simple game where by the user must click a button ten times to win. the button has to move after every click to a random point on the screen. Does anyone know if there are any tutorials … | |
[COLOR="Green"]hi; i am doing a homework(due tomorrow) and i have a problem with it; when I compile the program it shows no errors, and it takes input ,but does not show the output using function print(); note :the function of the program is to take elements from user,stores them in … Software Development c++ | |
Hi, the code analysis tool we use gives below warning for the functions in which memset / memcpy is used "The function writes outside the bounds of dup on line 303, which could corrupt data, cause the program to crash, or lead to the execution of malicious code." could someone … Software Development c++ | |
Hi! I am trying to create a program that can calculate the cost of a internet package once selected and also give a discount. So far, my code only works with doesn't exactly gove me the correct results. Below is my code. Please assist me in identifying the problem. An … Software Development vb.net | |
i'm being able to call my text file from my c program but when coming to count the number of paragraphs in the text i can't find what i have to do so that my c program increments my counter by 1 it has to find and empty line. this … Software Development c | |
What I want to know is if I can call a function defined in a C++ class in Visual Basic through a .dll generated from VC++2010? Is this possible, or do I need to define the .dll with C++ raw functions outside of a class? For example, my class looks … Software Development c++ visual-basic | |
If anyone could explain how to design an applet code for a simple house, then modify it. I wil give details if anyone can help. Software Development java | |
I am stuck at one multithreaded app. Basically I am trying to update one control from background thread. There are two forms. 1) frmMain 2) frmLog frmLog has one list box (lstStatus) and one function as following [icode] Public Sub SetStatus(txt as string) as string lstStatus.Items.add(txt) End Sub [/icode] frmMain … Software Development vb.net | |
Will you please help me to solve this problem.. this is the code.. [CODE]Imports System.Data.OleDb Public Class Form6 Dim conn As OleDbConnection Dim cmd As OleDbCommand Dim strSQL As String Dim dr As OleDbDataReader Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data … Software Development open-source vb.net | |
Hi i have a problem, i make a form with one button and i want to make in c# (windows Aplication) the follows: when i click in button i need to connect in my SQL Server. How can i do that??:?: Software Development sql windows-server | |
Hi 1) I am using C# window application in that i have use one group box and in that i have put text boxes my first i visible and reset i have enabled to false i have insert one button in group box. [COLOR="Green"] I want that on the click … Software Development display | |
The output of this code shows only one student's informations. But I want to display the all students' informations. Please find what is wrong? Software Development c++ | |
is it possible to create a bouncing text using a loop(any loop(for, while, or do while)) in c++..if so, the problem is to create a program that accept a text then the text will bounce on the screen.. i already have an idea on how to start the program.. but … Software Development c | |
Can anyone explain to me in simple English language why we can't use assertion for: 1) Argument checking in public methods. [CODE] public class Test{ public void abc(int a){ assert a>3 } } [/CODE] 2) Command line arguments. [CODE] public class Test{ public static void main(String[] args) assert args.length==3 } … Software Development java | |
Helooo, Attached is a pic of my main screen of my program. Basicly it's a phone book app similiar to one you'd have on your phone. The thing that I can't wrap my mind around, is that you see the nice big textArea there? After you've added a contact now. … | |
I'm am very new to vba for excel and having a hell of a time with it. I am trying to create a program for small business that will be used by admin and managers to quote jobs, check/update work schedule, check inventory and such. I have a main workbook … Software Development visual-basic | |
hi, below is my code. i want to get grand total based on boothID but i seems my code does not functioning. I still get same GRANDTOTAL even i have different BoothId in the sql. How do i do that. Do i need to add something in my code. PLEASE … Software Development vb.net | |
I need to use arrays, insertion sort algorthm to come up with a program tht will sort 3 employees salaries in an ascending order after user has inputed data..thus EMPLOYEE1:20000 EMPLOYEE2:15000 EMPLOYEE3:10000 CAN SOMEONE HELP WITHE THE FUNCTION TO MAKE MY PROGRAM DO THAT PLEASE! | |
Dear DaniWeb Programmers, please help me with my problem. im trying to fetch rows in 3 TABLES using JOined Queries im tried the query first in MS ACCESS and it worked but when i tried to show it in Crystal report it wont show its data. Heres the code below: … Software Development dataset microsoft-access open-source vb.net | |
I'm planning to buy a few books for C++. I want to learn C++ at it's deepest. You may say, I want to be C++ program developer. I'm currently having C++ in my study courses too. Which are recommended books? This thread has a huge list of books. Don't think … | |
This is what I have to do. Write a program that has a Fibonacci number calculating function. The function will take an integer as a parameter which is the Fibonacci number to calculate, and return the Fibonacci number. Then use this function to calculate the sum of every Fibonacci number … | |
I need to put the names entered by the user in alphabetical order. What are my variables to declare? Im wanting to use something like this in my code but do not know what my array is or anything. selection_sort(arr1, arrSize); [CODE]using namespace std; int main () { string temp; … | |
so im calculating the avergae of 5 numbers ive put in the array but when i compile i get a very large number heres my code [CODE]#include <iostream> using namespace std; int calcAverage() { int sum=0; int average; int TESTVALS[5] = {2, 18, 1, 27, 16}; for(int i = 1; … Software Development c++ | |
Hi! I'm new this semester to C++ and it is a little difficult for me. Our class has a project where we need to implement functions. While I got the very first one right, I'm not sure what to do about the others that are similar to it. Can anyone … | |
This is the assignment: Purpose: The purpose of this assignment is for you to demonstrate your ability to design and code a program that employs a multi-decision construct such as else...if, or switch to resolve a problem that has a multiplicity of conditions to be evaluated. Use the else...if for … Software Development c++ | |
It was really great piece of code, I really liked it, does any body knows how to get more statistics? like word length, sentence length, paragraph length, and if possible how to plug the results into a prgram like excel or matlab to get graphs of our results? your help … Software Development python | |
def transpose(matrix): #FOLLOWING is my code, it is incorrect however. COULD ANY GIVE ME A HAND? O(∩_∩)OThanks :) l=len(matrix) i=0 j=0 Aj=[] T=[] for i in range(l): Ai=matrix[i] li=len(Ai) i+=1 for j in range(li): Aij=Ai[j] j+=1 for i in range(l): Aj.append(Aij) i+=1 for j in range(li): T.append(Aj) j+=1 return T Software Development python | |
I know how to get it, basically. It's just for my program, it's 362 minutes. That is 6:02. The thing is it's ZERO two. I don't know how to get the zero and then the two? Software Development c++ | |
i know the minimal basics of a lambda function, could someone give me the breakdown of each part in the function Software Development c++ | |
Hi iam trying to write a script, for a calculus competition (shrot) : I wil have two competitors, both will play the game / competition until one leads by 2 points then the game is over. Anyways it goes like this: In first round first competitor enters two factors / … Software Development python | |
Hi, I am getting this error for my codes: Exception in thread "main" java.lang.NumberFormatException: For input string: "{ 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0}," at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224) … Software Development java | |
When I run this loading bar script the bar doesn't load and then it loads to the maximum. how come this load bar doesn't work thanks for the help. [code] // The "LoadBar" class. import java.awt.*; import hsa.Console; public class LoadBar { static Console c; // The output console public … Software Development java | |
I have this assignment where I'm supposed to read in a text file and assign the values to a vector and sort them out. The text file has values for country, population, birth rate, and death rate. An example is: (not realistic numbers) USA 400000 5400 3200 Canada 56000 3400 … Software Development c++ | |
I don't know how to do this in windows application. I have a query to select all from a table and bind its value to the objects but I don't know how to do this with radiobuttons. I usually do my code like this in ASP.net for radiobutton to determine … Software Development asp.net | |
Hi, I have recently started Java in my course and I have been asked to write a program that finds the sum and average of 5 numbers. Its very close to working correctly but I cannot see where I am going wrong. Code: [CODE]import java.util.Scanner; public class average { static … Software Development java | |
I can't figure out what I'm doing wrong here. I want to allow the user to name the database on their own. Can you use parameters in a situation where the command is simple like: [CODE=SQL]CREATE DATABASE @DatabaseName[/CODE] I've been trying forever and it just keeps creating a database called … Software Development sql | |
Hi everybody. I decided to make an account here because I could use some help writing some code. This is what I need to do: Write a C program that will read in two lines of data. The first data line contains an integer N and the second data line … | |
I have a problem I'm not sure where the error is occurring. I think it's when I used cin.ignore in my code. My problem is occurring in case A. For some reason the program stops right after I enter my price information. I tried doing small codes to figure where … Software Development c++ | |
There is a sample program in my C++ book that uses the += operator, and doesn't explain how it works: [CODE]gold += silver / SILVERPERGOLD;[/CODE] What exactly does this mean? Software Development c++ | |
I have an error when I add in another ball. The colors are the same how would it be possible to change the colors of the balls seperately when they are on the same screen. When I added the other ball in when one hit the edge the second one … | |
Hello all! I am a beginner programmer, and I have been told that a great first project would be to make an ASCII game, I have done all of the coding (I think) and I'm still having some problems (i.e. it won't work, at all), I believe it's the render. … Software Development python | |
Hello there I am new to my coding career :) and have been facing a slight problem over here I want to read a folder\s files and have tried countless ways of accessing the directory but keep getting my code's error message. Please have a look and guide me if … |
The End.