132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for miturian

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++
Member Avatar for Fbody
0
125
Member Avatar for ButterFly21

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++
Member Avatar for Nick Evan
0
141
Member Avatar for fidget08

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++
Member Avatar for quila1
0
126
Member Avatar for canadiancoder

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. …

Software Development c c# c++ delphi
Member Avatar for canadiancoder
0
222
Member Avatar for rkckjk

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
Member Avatar for MegaSofijanov
0
3K
Member Avatar for hateme_devon

hi... can anybody tell me how to see the codes behind a java game on a web page?? thanks..

Software Development gaming java
Member Avatar for masijade
0
250
Member Avatar for Dimesh

Hi. ----- Thanks for reading ... I want to write for example: ln 3 Is there is any command or function for it ...!

Software Development c++
Member Avatar for sharathg.satya
0
4K
Member Avatar for girl.java

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
Member Avatar for sharathg.satya
0
143
Member Avatar for jamesyrawr

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 …

Software Development gaming gui java
Member Avatar for sharathg.satya
0
137
Member Avatar for IS_student

[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++
Member Avatar for IS_student
0
115
Member Avatar for mrinal.s2008

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++
Member Avatar for Fbody
0
221
Member Avatar for tonyfingures

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
Member Avatar for lolafuertes
0
613
Member Avatar for Bozog

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
Member Avatar for Martin B
0
1K
Member Avatar for Intrade

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
Member Avatar for Ancient Dragon
0
264
Member Avatar for cassandracritch

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
Member Avatar for nihal_kiss
0
80
Member Avatar for mihird

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
Member Avatar for mihird
0
103
Member Avatar for jennylyn

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
Member Avatar for lolafuertes
0
437
Member Avatar for ironbill

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
Member Avatar for kumar169
0
240
Member Avatar for Nemo_NIIT

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
Member Avatar for ashishkumar008
0
154
Member Avatar for Anuradha Mandal

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++
Member Avatar for vidit_X
0
90
Member Avatar for Karasuma

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
Member Avatar for Karasuma
0
447
Member Avatar for solomon_13000

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
Member Avatar for solomon_13000
0
91
Member Avatar for Dean_Grobler

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. …

Software Development gui java
Member Avatar for masijade
0
175
Member Avatar for shabadoo

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
Member Avatar for AndreRet
0
112
Member Avatar for swathys

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
Member Avatar for swathys
0
92
Member Avatar for vbgrad

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!

Software Development c c# c++
Member Avatar for stevanity
0
172
Member Avatar for ampLife

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: …

Member Avatar for ampLife
0
250
Member Avatar for Dha...1

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 …

Software Development asp.net c c# c++
Member Avatar for rsravi74
0
156
Member Avatar for jmcorpse

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 …

Software Development algorithm c++
Member Avatar for jmcorpse
0
104
Member Avatar for a-hall

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; …

Software Development c c# c++
Member Avatar for stevanity
0
131
Member Avatar for BryantFury

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++
Member Avatar for BryantFury
0
115
Member Avatar for sonjeriff

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 …

Software Development c c# c++
Member Avatar for cmccaig
0
190
Member Avatar for FieryAbyss

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++
Member Avatar for kes166
0
169
Member Avatar for nawaf_ali

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
Member Avatar for nawaf_ali
0
217
Member Avatar for JasonQiao

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
Member Avatar for JasonQiao
0
213
Member Avatar for geekykitty

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++
Member Avatar for Unimportant
0
97
Member Avatar for cmccaig

i know the minimal basics of a lambda function, could someone give me the breakdown of each part in the function

Software Development c++
Member Avatar for cmccaig
0
96
Member Avatar for n3red

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
Member Avatar for KrazyKitsune
0
174
Member Avatar for Sunshineserene

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
Member Avatar for Sunshineserene
0
2K
Member Avatar for sirlink99

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
Member Avatar for sirlink99
0
166
Member Avatar for mchin131

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++
Member Avatar for gerard4143
0
67
Member Avatar for AngelicOne

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
Member Avatar for Momerath
0
115
Member Avatar for ASIWYFA

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
Member Avatar for ASIWYFA
0
427
Member Avatar for zachattack05

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
Member Avatar for kplcjl
0
2K
Member Avatar for brendono978

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 …

Software Development c puzzle
Member Avatar for brendono978
0
184
Member Avatar for ana_1234

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++
Member Avatar for Greywolf333
0
172
Member Avatar for cosnersx

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++
Member Avatar for Greywolf333
0
72
Member Avatar for sirlink99

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 …

Software Development display java
Member Avatar for Ezzaral
0
210
Member Avatar for lucksoar

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
Member Avatar for TrustyTony
0
199
Member Avatar for hatux

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 …

Software Development career java
Member Avatar for hatux
0
150

The End.