Posts
 
Reputation
Joined
Last Seen
Ranked #621
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
41% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
6
Downvotes Received
11
Posts with Downvotes
9
Downvoting Members
9
6 Commented Posts
~25.2K People Reached
Favorite Tags
c++ x 365
unix x 5
java x 4
c x 2
c# x 2

118 Posted Topics

Member Avatar for lotrsimp12345

I am really confused as to how this works? You have a critique but where does the critique come in? Also is their a difference between activation on hidden nodes and output nodes? Does the critique come in during the hidden node? or the input node? Thanks

0
53
Member Avatar for lotrsimp12345

TITLE SHOULD ACTUALLY BE: how to get mouselistener to work on method in an class in java If I click a circle it should change the color of the circle. But, I am having difficult getting it to work. Help appreciated. Main just calls this class and calls the init …

Member Avatar for quuba
0
266
Member Avatar for lotrsimp12345

I am trying to implement a hopfield net to learn patterns. This is what I current have.... I am current having it create a random number of patterns based on the number of neurons Next I am trying to make a weight matrix Should I have a seperate weight matrix …

Member Avatar for lotrsimp12345
0
499
Member Avatar for lotrsimp12345

Having problems with executing jobs using fork. The code is supposed to create one job and execute one job and repeat this multiple times. We are only supposed to use usleep in the jobgeneration() function. We are having trouble sleeping and executing ctrl-c in the execute job function. [CODE] #include …

Member Avatar for lotrsimp12345
0
510
Member Avatar for lotrsimp12345

[CODE] using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Win32; using System.Deployment; namespace RegisteryCheck { class Program { static void Main(string[] args) { ApplicationDeployment ab = new } } } [/CODE]

Member Avatar for nssltd
0
106
Member Avatar for virusisfound

thanks but I got it to work I created a class and created static members so that I can use the back, next and cancel buttons.

Member Avatar for lotrsimp12345
0
273
Member Avatar for lotrsimp12345
0
56
Member Avatar for lotrsimp12345

I have set the textbox to public so that another form can access it but when i run it in debug mode with the following line it gives me exception so it doesn't store correct directory. For example: If I enter D:\newfolder it gives me D:\\newfolder. Why does it add …

Member Avatar for Geekitygeek
0
824
Member Avatar for lotrsimp12345

Take line below which is in batch file and convert it in C# so that I don't have to create a seperate file. Thanks! Any suggestions? I have spent way too long on this. Odbcconf /a {CONFIGDSN "Microsoft Access Driver (*.mdb)" "DSN=NexTest_CDMA_2009|Description=NexTest_CDMA_2009|DBQ=C:\prod\database\nextest_CDMA_2009.mdb"}

0
64
Member Avatar for lotrsimp12345

[CODE] //copy database files to target directory string fileName = "test.txt"; string targetPath = StaticFormInstances.choose.txtbxTargetDir.Text; string sourcePath = @"\\il93fil48\3GSM\release\testapplication_REL_01_00_09\database"; //Use Path Class to manipulate file and directory paths string sourceFile = System.IO.Path.Combine(sourcePath, fileName); string destFile = System.IO.Path.Combine(targetPath, fileName); //Create a new target folder if it doesn't exist if (!System.IO.Directory.Exists(targetPath)) { …

Member Avatar for lotrsimp12345
0
240
Member Avatar for lotrsimp12345

I was wondering how you do this. Would you have to use delegates and event handlers or can you do it through application.Run(object) and call that in the clickevent but I need to keep a reference to previous form. but that doesn't seem possible.

Member Avatar for Geekitygeek
0
237
Member Avatar for lotrsimp12345

In the following code how to fix problem that the batch file won't get created. When I run in debug mode exception I get is "could not find part of path" Thanks [CODE] StreamWriter sw = null; try { if (AgilentNVisaDriver.Checked == false && RequiredDlls.Checked == false) { MessageBox.Show("Please select …

Member Avatar for Lusiphur
0
351
Member Avatar for lotrsimp12345

How to use bootstrapper manifest to create a prerequistie which runs another windows application installer before the setup.exe installer from the deployment project. Thanks.

0
66
Member Avatar for lotrsimp12345
0
69
Member Avatar for yottameter
Member Avatar for Jason Butler
0
203
Member Avatar for lotrsimp12345

how would you do that? Language similar to LISP I don't think you can use cons twice. really stuck. maybe (define a '('()))

Member Avatar for davibq
0
61
Member Avatar for lotrsimp12345

I can write the recursion version correctly need help with writing a do loop in DrScheme. After the do loop the variable x is sent to car L intially and then is updated to first element of everything but first element in list. [CODE] (define (sumiteration L) (do ((x (car …

Member Avatar for davibq
0
106
Member Avatar for lotrsimp12345

I have added a reference to dll file in VS 2008. Yet I still get an error. Not sure why, do I have to do some other changes to get it to work?

Member Avatar for lotrsimp12345
0
99
Member Avatar for lotrsimp12345

Here's the assignment: You are to create a single server (in either Java or C/C++) which can service both C/C++ and Java clients. The protocol of the server is as follows: 1. The client contacts the server. 2. The client performs a single send of a data packet containing the …

Member Avatar for moutanna
0
1K
Member Avatar for lotrsimp12345

It is impossible in C++ since you have to use iterator to erase. Here's what I have: main.ccp [CODE] #include <iostream> #include <vector> #include "Mastermind.h" int main() { vector<int>* answer=new vector<int>(4); cout<<"enter an code\n"; for(int i=0; i<4; i++) { int k; cin>>k; answer->push_back(k); } //initalize population Mastermind a(5); //set answer …

Member Avatar for lotrsimp12345
0
132
Member Avatar for lotrsimp12345

starting to think that memory isn't big enough. the totalnumberofpegs i only set it to 0 in my code yet it changes it self somehow :(. please help i have tried everything. It shows that it is 0 in all other functions. main.cpp [CODE] #include <iostream> #include <ctime> #include <stdio.h> …

Member Avatar for lotrsimp12345
0
137
Member Avatar for lotrsimp12345

so i think i know where the problem is... it return garbage for code_pos even though i initalize and change values assigned to it. :( Please help. but don't know how to fix it. main.cpp [CODE] #include <iostream> #include <ctime> #include <stdio.h> #include "Mastermind.h" using namespace std; int main() { …

Member Avatar for lotrsimp12345
0
148
Member Avatar for lotrsimp12345

When i try it goes heywire and gives me 35 errors. all for the erase command. :( [CODE] for(int i=0; i<populationsize_; i++) { //check for black for(int j=answer_->front(); j!=answer_->back(); j++) { if(answer_[j]==population_[i][j]) { feedback_[i][j].push_back("Match"); for(int k=tempanswer_->at(i).front(); k!=tempanswer_->at(i).back(); k++) { //find first instance if(tempanswer_[i][k]==answer_[j]) { tempanswer_[i].erase(k); break; } } } } …

Member Avatar for lotrsimp12345
0
249
Member Avatar for lotrsimp12345

Need to calculate number of white pegs so I can write fitness function. It works sometimes and it doesn't work other times. I got the calculate number of black pegs to work. A black peg is correct position and color. A white peg is correct color wrong position. Colors are …

Member Avatar for lotrsimp12345
0
986
Member Avatar for lotrsimp12345

Here's my code. [CODE] (define L ()) (define (union L1 L2) ;continue until one list is empty (do() ((or (null? L1) (null? L2))) (cond ((<(car L1)(car L2)) (attach(car L1)(cdr L1)L2)) ((eq?(car L1)(car L2)) (attach(car L1)(cdr L1)(cdr L2))) (else(>(car L1)(car L2)) (attach(car L2)L1(cdr L2))) ) ) ;after which you continue to …

0
71
Member Avatar for lotrsimp12345

so far I can't figure out a way to write powerset in SML :(. I see a pattern for example powerset([1,2,3]) is [] [1] [2] [1,3] [3] [1,2] [2,3] [1,2,3] Here's what I have come up with: fun add(a,L)= [a]@L fun ps(L)= ps(tl L)@add(hd L, ps(tl L)); Any help appreciated.

Member Avatar for lotrsimp12345
0
80
Member Avatar for lotrsimp12345

I recently updated to windows 7 and since then I have been having this problem. Any help appreciated.

Member Avatar for lotrsimp12345
0
462
Member Avatar for HoldmysunnyD

Here is the code I am not sure what you mean. my_bst_node.h [CODE] //create bst node #ifndef MY_BST_NODE_H #define MY_BST_NODE_H #include <iostream> using namespace std; template<class KT,class DT> class my_bst_node { public: my_bst_node(); my_bst_node(KT tag, DT info, my_bst_node* l=0, my_bst_node* r=0); KT key; DT data; my_bst_node* left; my_bst_node* right; }; …

Member Avatar for em-kay
1
283
Member Avatar for lotrsimp12345

I plan on using the Bayesian method to try and solve the mastermind problem. The user will enter 4 numbers which represent the colors on the board from 6 different colors. After which the computer will randomly estimate the posterior probabilities for all events. ?Then continue with this scheme until …

0
75
Member Avatar for lotrsimp12345

When i run main it prints out gibberish not sure why. main.cpp [CODE] #include <iostream> #include <string> #include "phrase.h" #include "EA.h" #include <cstdlib> #include <time.h> int main() { phrase a; EA b; std::string phrase; int populationsize; std::cout<<"enter a population size\n"; std::cin>>populationsize; std::cin.ignore(); b.setpopulationsize(populationsize); std::cout<<"enter a string\n"; getline(std::cin,phrase); a.setphraselength(phrase); b.setlength(phrase); std::cout<<"the …

Member Avatar for lotrsimp12345
0
85
Member Avatar for lotrsimp12345

I am trying to create a double pointer. never done it before. Problem is currently in intializepopulation(); Error C2106 left of operand must be l-value. EA.h [CODE] #ifndef EA_H_INCLUDED #define EA_H_INCLUDED #include <string> #include "phrase.h" #include <iostream> class EA:public phrase { public: EA(); ~EA(); void setgenerationnumber(int generationnumber); int getgenerationnumber(); void …

Member Avatar for lotrsimp12345
0
110
Member Avatar for lotrsimp12345

its it skipping. This is the part of the code. :( cout<<"enter a string\n"; getline(std::cin,phrase); [CODE]#include <iostream> #include <string> #include "phrase.h" #include "EA.h" #include <cstdlib> #include <time.h> int main() { phrase a; EA b; std::string phrase; int populationsize; //int percentmutation; std::cout<<"enter a population size\n"; std::cin>>populationsize; b.setpopulationsize(populationsize); //std::cout<<"enter the percentage you …

Member Avatar for jonsca
0
87
Member Avatar for jdpjtp910
Member Avatar for conkjj8

pass pointers to functions instead of arrays. In the main dynamically allocate memory using new keyword on the first line. Believe that should work.

Member Avatar for jonsca
3
310
Member Avatar for lotrsimp12345

Still having trouble install opencv. I used cmake doing what was told and it created files in a folder then i ran the install VC++ project. After which I went back to cmake and generated the examples. ran those. My path environment variable is C:\OpenCV2.0\bin, I was wondering whether it …

0
58
Member Avatar for thedonflo

one piece of advice switch statements will only accept built in types of C++. gl.

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for shivam saxena

i would consider using opencv. I still have to figure out how exactly you install it but I would recommend you use it.

Member Avatar for Stefano Mtangoo
0
86
Member Avatar for lethal.b

why are you using a character array? could easily do it with string and use concatenation. [CODE] #include <iostream> #include <string> using namespace std; int main() { string input; cin>>input; string a="abcdefghijklmnopqrstuvwxyz"; string output=input+a; cout<<output; return 0; } [/CODE]

Member Avatar for jonsca
0
112
Member Avatar for lotrsimp12345

Please help me out with syntax mistakes [CODE] fun rappend(L1,L2) if null L2 then L1 else rappend(tl(L2) @ L1, hd(L2)) [/CODE]

Member Avatar for lotrsimp12345
0
76
Member Avatar for dinamit875

if you are trying to have you data shown on console in your write to file method also have it printed out to console using cout.

Member Avatar for WaltP
0
130
Member Avatar for empror9

use loops instead of so many cout statments and i don't think the variable in the while loop is defined. I am willing to help you come with the solution if i knew what you were doing. I can't read your mind. Based on your code your don't have a …

Member Avatar for empror9
0
158
Member Avatar for lotrsimp12345

I can write the recursion version correctly need help with writing a do loop in DrScheme. After the do loop the variable x is sent to car L intially and then is updated to first element of everything but first element in list. [CODE] (define (sumiteration L) (do ((x (car …

Member Avatar for lotrsimp12345
0
74
Member Avatar for fallendream

use event handlers, probably be easier in java since it comes with a lot of predefined shapes and stuff.

Member Avatar for jadkins
0
570
Member Avatar for squarey

there is a math library. Here's a link: [url]http://www.cppreference.com/wiki/c/math/start[/url]

Member Avatar for lotrsimp12345
0
91
Member Avatar for aruprongs

if you want to put each line separately use endl like follows: [CODE] while(!myfile1.eof()) { myfile1.getline(buffer,'\t'); myfile<<buffer<<endl; } [/CODE]

Member Avatar for lotrsimp12345
0
75
Member Avatar for macman101

don't erase create substring just incase you still need the string later on.

Member Avatar for lotrsimp12345
0
165
Member Avatar for GSPprog
Member Avatar for lotrsimp12345

I got the files to build but with this link [url]http://www.site.uottawa.ca/~laganier/tutorial/opencv+directshow/cvision.htm[/url] the include files in step 2 don't show up anywhere. Help appreciated.

Member Avatar for lotrsimp12345
0
80
Member Avatar for MyRedz

a search needs a for loop which keeps on moving the pointer forward and if it find it returns true. similar thing for a general delete I would think. You would have to traverse entire list.

Member Avatar for lotrsimp12345
0
112
Member Avatar for C++new

assuming your code is in one file for the class you should use inline in front like this: [CODE] inline void ChangeFood(string foodName, double foodPrice){ mFoodName = foodName; mFoodPrice = foodPrice; } [/CODE]

Member Avatar for lotrsimp12345
0
152

The End.