199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pattilupwned

Hello, I am writing code that mimics the game Mastermind. The computer randomly comes up with a code based on the "colors" RGBOY. The user has ten guesses to guess what the code is. Right now my code displays the secret code at the beginning just so I can test …

Member Avatar for histrungalot
0
191
Member Avatar for saneeha.nust

I am defining the below function in order to calculate combinations .... it works fine on borland... but when i run it on vc++ 6.0, it generates the error "error LNK2001: unresolved external symbol "public: void __thiscall bruteFrce::generate_combination(int)" (?generate_combination@bruteFrce@@QAEXH@Z) Debug/AlgoProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe." …

Member Avatar for histrungalot
0
249
Member Avatar for sonicx2218

Hey everyone. As always I'm sorry for my noobness when it comes to java, but I got a question I can't seem to find answered anywhere else on the web. I'm trying to make a simple program that takes whatever number the user types in, and makes a linked linked …

Member Avatar for sonicx2218
0
124
Member Avatar for boiishuvo

That is a little homework for myself. I was trying to make a simple program that you entry your name (acts as a password) and if it's on the list then you may access, otherwise (aka else) you're not allowed to access. The problem is I can't put more than …

Member Avatar for zeroliken
0
188
Member Avatar for bbaaking

hi, I’ve got a big problem. Could anyone give me a hand? My aim is:Remove the duplicate data, that is, the various entries of EndTime and Qos for a same ServiceID due to the repeated feedback. The rule is to only keep the records with the lowest Qos for a …

Member Avatar for bbaaking
0
225
Member Avatar for Miss Scarlet

I would like to find out if my code is correct. It doesn't look right to me. The code is in response to part of an assignment which asks 3 things: 1. Create Model Class file "booksmodel.php" i.e. "BooksModel". 2. Add public method called save_books() to model class. 3. Accept …

Member Avatar for Miss Scarlet
0
134
Member Avatar for Andy90

Hello, I have created a small application in C#! I want to do testing of it. Please suggest me some good testing tools!

Member Avatar for thines01
0
87
Member Avatar for Pamilerin

I am currently working on a stock market monitoring application and I was wondering if anyone cold help me by giving me a guideline on how to create a new portfolio(sort of a personal account) for each user that accesses the system such that 2 different users do not have …

Member Avatar for thines01
0
101
Member Avatar for |-|x

During some recent project issues I found myself asking this very question: **Does MySQL short circuit WHERE clause statements?** After doing some research and finding that several other people and technical forums have posed this question, with several answers pertaining to be intelligent but that amount to *"i don't know"*, …

Member Avatar for |-|x
0
2K
Member Avatar for Kert

I am using JUnit for the first time and I have small problem: the setUp() method doesn't seem to work for me. public class ClientTest { private Client a; @BeforeClass public static void setUpBeforeClass() throws Exception { } @AfterClass public static void tearDownAfterClass() throws Exception { } @Before public void …

Member Avatar for peter_budo
0
129
Member Avatar for naiiimah

I am trying to get this class put together but I've always had trouble figuring out constructors. I don't know what to set the data fields in Customer(int customerID, int checkoutTime, int arrivalTime){} // DO NOT ADD NEW METHODS OR DATA FIELDS! class Customer { private int customerID; private int …

Member Avatar for NormR1
0
200
Member Avatar for smitty68503

I am currently stuck on a project where I am populating a datagrid from a series of labels and textboxes. I have that part down. Now for the part where I actually add it do the database, I am having a problem. It is actually adding everything to the database …

Member Avatar for smitty68503
0
185
Member Avatar for weekendrockstar

I am looking to use mod_rewrite to remove the file extension of the files on my site. I am aware of how to make use of the mod but I was curious as to a couple of things when passing variables to a script. Such as if I have a …

Member Avatar for weekendrockstar
0
136
Member Avatar for DaveyMoyes

Hi everyone, I have a strange thing happening when I update my form. On the form there are a number of input fields, item cost,item name, item description. If I update the item cost, this updates without any problems, but it also updates the item description, duplicating the description. The …

Member Avatar for DaveyMoyes
0
96
Member Avatar for mrhankey

hi how can i have it setup where a user can only send 2 gifts a day on my website? many thanks

Member Avatar for diafol
0
81
Member Avatar for JohnBoy2

Hi - I'm very new here (1st post). I read the introductory docs, and looked at the categories, but I didn't see a specific place for posting code for review/critique. My apologies if this is not the appropriate place to do that... Here is some code I am hoping to …

Member Avatar for kb9agt
0
187
Member Avatar for sendo63

Hi there guys, I have homework to do a program given as input a document read from a text file will similatae MS words word count tool to create the following statistic: number of word: 45 number of line: 30 number of white space character: 73 number of non white …

Member Avatar for Dani
0
133
Member Avatar for Labdabeta

I am trying to understand how sockets work with winsock, but I just don't get it. I basically want to be able to create these functions: SomeDataType ConnectToComputer(const char *ConnectionName);//connect to the connection named ConnectionName SomeDataType CreateConnection(const char *ConnectionName);//create a connection called ConnectionName bool ReadData(SomeDataType, unsigned char *outdata, int outsize);//read …

Member Avatar for Labdabeta
0
201
Member Avatar for hwoarang69

how to copy pointer to pointer. char *name1; //store the value of DAVE char *name2; if name2 was a array i would have done. strcpy(name2,name1); but i dont know how to copy pointer into pointer. i was thinking some thing like this. name2 = name1? also do i need to …

Member Avatar for Shardendu
0
177
Member Avatar for SCass2010

Hi everyone, Was wondering if anyone could help... I know the std::map automatically sorts it values - I have a map a Date object pointer, and a bool for whether it is to be used or not. But I need the dates to be in order from earliest to latest …

Member Avatar for ravenous
0
1K
Member Avatar for pattilupwned

Hello! I am writing a program that mimics the game Mastermind. However, I am having trouble getting past the first step. We are using letters as the "colors", a string containing "RGBYO". Each time it goes through trying to get the initial "secret code", it needs to get rid of …

Member Avatar for pattilupwned
0
312
Member Avatar for roshan_iiita

I need any Open Source Sentence Grammar Corrector for one of my projects. I searched it on Google but couldn't find any. All the results coming link to only Grammar Checker tools only not grammar corrector. Please suggest me any open source tool which can correct the grammar also or …

Member Avatar for luzysmith
0
159
Member Avatar for while(!success)

Hey guys, I've been messing around trying to learn binary trees and have created a simple program to get the month and number of days in a month to be inserted into the tree then displayed. I am getting a successful build, however, when it launches the terminal window the …

Member Avatar for while(!success)
0
145
Member Avatar for ITOzann

Hey guys, I'm trying to conver a while loop from C++ to java. And I'm having a problem with my while loop. The original c++ code. // Out of cashiers? // Get next frontBusyCashierQ // Is cashier's finish time now? while(!service->emptyBusyCashierQ() && (service->frontBusyCashierQ(cashier), cashier->getEndBusyTime() <= currentTime)) { ...... .... ... …

Member Avatar for NormR1
0
284
Member Avatar for aprilcrash

Hi. I´m writing my first python program - a text adventure game. I want to have a list of possible things a dog could eat, what´s bad about them, how bad they are. So, I thought I´d do this: badfoods = [] keys = ['Food','Problem','Imminent death'] food1 = ['alcohol', 'alcohol …

Member Avatar for TrustyTony
0
296
Member Avatar for Kirbyzdashiznit

**Description: Friend’s finder. You load a data file first. Then you answer 10 questions. The answers will be saved in an array. The data in file are several arrays answered by other users. You need to compare the answers with other users and calculate the similarity. After that it will …

Member Avatar for Kirbyzdashiznit
0
276
Member Avatar for Samama

So im working on a project where im supposed to dynamically load the contents of a .csv file into the database.I have been hard coding the path of the file till now like * inserted = insertFromFile("C:/Users/Student/Desktop/Book1.csv",connection, "customer"); * however now i have to read multiple files from a folder …

Member Avatar for DavidKroukamp
0
97
Member Avatar for im abcd

I have just started android development and i cannot even compile a simple program because i get a error " button cannot be resolved to a type " in the .java file . .java file : package abcd.pack; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class …

Member Avatar for im abcd
0
794
Member Avatar for jacob21

Hi, I have knowledge of php,javascript,html,& mysql for creating websites. I want to create a mobile website. Need suggestions.

Member Avatar for jacob21
0
115
Member Avatar for trektrak

As stated on the title above, I'm creating a login system using php and mysql. Ok, I'm wondering if it is possible that I can utilize it as window login system .. That means.. window Login system using web application. Which also means, When I first boot up and before …

Member Avatar for diafol
0
194
Member Avatar for ssreevidya.m

hai , I need to get the monthnames between 2 dates such as 01-04-2012 & 30-03-2013 . Can you help me to get it. Thanks in advance, sreevidya

Member Avatar for hotelworld
0
78
Member Avatar for chamika.deshan

Hi I am trying to write "at" commands to serail port and send sms. `smsPort->Write("at"); // smsport type is System::IO::Ports::SerialPort ^smsPort;` gives me output OK At the end(after the writing message) I need to write ctrl+z smsPort->Write("Message"); smsPort->Write((char)26); this gives me error *'void System::IO::Ports::SerialPort::Write(System::String ^)' : cannot convert parameter 1 …

Member Avatar for gusano79
0
155
Member Avatar for sparchitect

Hi, wondering if anyone could help me with this. I need to create a program that contains a listbox (lstChart), calculate and exit button. When the user clicks the calculate button it needs to display 5 separate input boxes asking for the total sales for each of the 5 stores. …

Member Avatar for mustaffa hasan
0
140
Member Avatar for Gus_19

I was wondering if anyone knew of a good tutorial for parsing data from a text file and then populating the data into multiple text boxes. I have a text file with information pertaining to my form. The text file consists of key identifiers for each piece of information needed …

Member Avatar for Begginnerdev
0
208
Member Avatar for teklu

I am doing a picture in my project and I want to clear that picture from the picture box without deleting the other drawn picture when a command button is pressed . any help

Member Avatar for mustaffa hasan
0
391
Member Avatar for Perlie

Hi, I've got a problem to average lines which have same name. For exemple: > Strawberries 10 15 14 20 Pineapples 14 17 2 18 Apples 4 12 24 18 Strawberries 20 12 13 24 I would like to average values by fruit name. So, for pineapples, that easy, it's …

Member Avatar for d5e5
0
216
Member Avatar for spowel4

I have the following, which creates a list of arrays: static List<string[]> ReadFileIntoList(string fileName) { List<string[]> parsedData = new List<string[]>(); string fullLine; string[] row; try { StreamReader sr = new StreamReader(new FileStream(fileName, FileMode.Open, FileAccess.Read)); while ((fullLine = sr.ReadLine()) != null) { row = fullLine.Split('\t'); parsedData.Add(row); } sr.Close(); } catch (Exception …

Member Avatar for thines01
0
189
Member Avatar for pjh-10

#include <iostream> #include <cmath> // appropriate c++ libraries for functions & constants needed #include <fstream> #include <stdlib.h> using namespace std; const int N = 1000; const double pi = 3.14159265; //constants applied int main() { double num, factor, avg = 1.0; //variables declared and initialised int i; num = N …

Member Avatar for VernonDozier
0
137
Member Avatar for honeybee2090

trying to trying to get extract content from a web page in to a listbox and contents are in this format 107.2.71.168:1708 107.3.217.65:1580 107.3.217.65:51723 107.43.148.15:8651 107.8.39.163:57071 107.8.63.188:11244 107.9.254.237:17209 108.222.146.33:44973

Member Avatar for thines01
0
127
Member Avatar for phorce

Hello, I have this matrix: 0 0 1 0 0 0 1 0 1 1 1 0 0 1 0 0 and I need to print out the block with the coords: (2,1) so in this case: 1 0 1 0 I have tried this: for(int i=minRow; (i < 2); …

Member Avatar for rajenpandit
0
103
Member Avatar for Panathinaikos22

Hello, i have done a simple TCP Client - Server In my local PC it work but i dont know if i run TCPServer on other pc, it will receive messages from client? i tryed it with my bro but nothing, i also open and ports... maby isp dont allow …

Member Avatar for Panathinaikos22
0
411
Member Avatar for arunkumars

Hi, I have a doubt in MS SQL, The below condition in the WHERE clause as you can see, "Where COTDetails NOT BETWEEN 32 AND 63 OR COTDetails is NULL", I want to the WHERE clause in such a way that the COTDetails is not between 32 and 63 and …

Member Avatar for ChrisHunter
0
153
Member Avatar for A T Smith

I have created a simple database designed to accept domains and their associated TLD values: **CREATE TABLE domains(name VARCHAR(50) NOT NULL, PRIMARY KEY(name), tld ENUM('.com', '.net', '.info', '.org', '.co.uk', '.co', '.biz', '.info', '.de', '.me', '.nl', '.it', '.ch', '.li', '.us', '.name', '.ws'));** ...and I now need to display a form with …

Member Avatar for blocblue
0
138
Member Avatar for polarbear125

I have this Die class, which I am working on for a game called Craps. My old method works, but I wanted to try to use dice with a higher number than 6. I can get the program to accept my user input, but how can I get it to …

Member Avatar for DavidKroukamp
0
237
Member Avatar for Iamateur

How to allow the user to select the date from the DateTimePicker and store that selected date ,month and year in the database table? What is to be written inside insert query of code?

Member Avatar for Begginnerdev
0
86
Member Avatar for histrungalot

##I was working on something and saw this oddity, thought I would share it. $ ./a.out in.val = 86.3115158 -> Its a valid floating point number out1.val = nan -> Swapped it and now its a NaN! That's OK swap it back. out2.val = 86.4365158 -> What, its not the …

Member Avatar for histrungalot
0
178
Member Avatar for Iamateur

How to retrieve the particular column row to the text box? I mean how to display it in textbox? The column has got different rows. The code I wrote in vb net is : cmd = New SqlCommand("select ida from Issue where aname='" + TextBox3.Text + "'", con) In the …

Member Avatar for Philippe.Lahaie
0
142
Member Avatar for Mongz

I need to make a contact form on a website that will send comments to an email. I have designed the html file but i'm not sure where to beggin with adding the file or code that will support this function. So far i have learnt that it can be …

Member Avatar for gotboots
0
152
Member Avatar for alaa sam

hi everyone I'm working currently with linked list , and there's a problem with my code , the link is writing the same place every time (it replaces the previous values with the new ones without inserting a new one ) can anyone help ? Thanks in advance #include<stdio.h> #include<unistd.h> …

Member Avatar for Ancient Dragon
0
127
Member Avatar for Hitman Mania

Hey, this is one of the exam review questions, and I'm wondering how I would return 1 or 0 for bad input (i.e. cant divide by input 0) using return 0 and 1 if the function doesn't accept returns, i.e. void function (int variable) //cant have return statement. Here is …

Member Avatar for BobS0327
0
204

The End.