199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for D3BuG

Hey guys, So me and my friend are starting up a simple Text-Based-Post-Apocalyptic-Role-Playing-Game. Both of us have had 2 or so months of experience, we are no experts. So, I will appreciate any tips. I have been lurking these forums for a little while now, and decieded this is the …

Member Avatar for D3BuG
0
166
Member Avatar for CrankyMero

Hello Everyone, I have kind of a problem in a database well its suppose to save a date but like a string, well more like a char type, and i need it that way to do reports So there to tables Ventas and VentasDD so they have the same information …

Member Avatar for CrankyMero
0
120
Member Avatar for lochnessmonster

im quite confused on how typedef int (__cdecl *MYPROC)(LPWSTR); works exactly? how do you typedef a function? any explanation is greatly appreciated! thx :D [CODE]// A simple program that uses LoadLibrary and // GetProcAddress to access myPuts from Myputs.dll. #include <windows.h> #include <stdio.h> typedef int (__cdecl *MYPROC)(LPWSTR); VOID main(VOID) { …

Member Avatar for mike_2000_17
0
561
Member Avatar for Nathan Campos

Hello, I'm building a program that gets the value of a [b]TextField[/b], concatenate with some other [b]Strings[/b] and then display them on a [b]TextBox[/b] when the [b]ScreenCommand[/b] is clicked, the problem is that it's calling a [b]NullPointerException[/b]. My code is like this(of course it has a lot more stuff): [code=java]/* …

Member Avatar for jon.kiparsky
0
202
Member Avatar for Rickay

[CODE]#include <iostream> #include <windows.h> #include <ctime> #include <cmath> #include <iomanip> #include <string.h> double numerator, denominator; static short multiplycounter; static short dividecounter; const double ten = 10; double* ppnumerator = &numerator; double* ppdenominator = &denominator; using namespace std; /**********************************************************************************/ double lcm(double numerator, double denominator) { if(*ppnumerator > *ppdenominator) { for(long counter …

Member Avatar for frogboy77
0
192
Member Avatar for Beschatten

Hey, so I'll post what I have, the code is pretty self explanatory. I have a hunch that there are more efficient ways to code than using these long and repetitive if statements, so if you guys could help me in that direction that would be great. I also am …

Member Avatar for jon.kiparsky
0
123
Member Avatar for Awah Mohamed

hey people. okay, i am designing a social network. but i got a problem in my signup code. check this is the form code : [CODE] <script src="../../../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="../../../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <script src="../../../SpryAssets/SpryValidationSelect.js" type="text/javascript"></script> <link href="../../../SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" /> <div id="signup"> <div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab" tabindex="0" …

Member Avatar for Awah Mohamed
0
216
Member Avatar for DaniwebOS

For some odd reason, I can't get anything to be displayed when the program is running. I believe its not passing anything at all which would explain the blank console. If anyone could help me out that would be great. Without using functions the program successfully shows: 1) Student's name …

Member Avatar for DaniwebOS
0
131
Member Avatar for rajeesh_rsn

Hi friends, In one of my table I stored some names of students . I need to select all the names starting letter "A" or "a" .... Please help me Thanks in advance Rajeesh

Member Avatar for mwasif
0
119
Member Avatar for Acidburn

Hi guys, I'm trying to get to grips with ADO, so I've installed SQL server 2008 and made a database and placed a table called Computers in it. Now ive got the following class... [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.OleDb; using System.Data; using System.Data.SqlClient; namespace …

Member Avatar for Mitja Bonca
0
188
Member Avatar for andyhunter

<form name="contact_form" method="post" action="./contact/mailer.php" onSubmit="return evalid()"> <table border="0"><tr> <td>First Name *</td> <td colspan="2"><input name="fname" type="text" size="30" /></td> </tr><tr> <td>Last Name *</td> <td colspan="2"><input name="lname" type="text" size="30" /></td> </tr><tr> <td>Your E-mail *</td> <td colspan="2"><input type="text" name="mail" size="30" /></td> </tr><tr> <td>Phone</td> <td colspan="2"><input name="phone" type="text" size="30" onkeypress="return numere(event)" onkeyup="return limitarelungime(this, 12)" /></td> …

Member Avatar for smantscheff
0
110
Member Avatar for cozmo87

I'm reading the filenames/directories of all the files within a folder into an array of Files. The filesnames are all of the type: Name1, Name2, Name3, Name4, Name5, Name6, Name7, Name8, Name9, Name10, Name11, Name12, Name13 The above shows the correct order in which the files [B]should[/B] be ordered. However, …

Member Avatar for BestJewSinceJC
0
208
Member Avatar for iamthesgt

Okay, we had an assignment in computer class that I have been working on for awhile but what I've got so far isn't working. It seems that it may be a compiler issue, but since I can't get to a linux compiler (what the program will be evaluated on), and …

Member Avatar for iamthesgt
0
173
Member Avatar for nickliutw

Here is the requirements: create a class include first name, last name, and monthly salary variables. Create a set and get method for each instance variable. What is the set method for(I read the book several times)? I don't quite get how to use it. How to create a set …

Member Avatar for peter_budo
0
138
Member Avatar for skips

My problem is that I need to write a program that asks the user to input a number from 1-99 and outputs the number spelled in english. I believe that I have the general outline down in that I will break it up into statements using If and Switch statements. …

Member Avatar for Red Goose
0
131
Member Avatar for Abelville

Im getting this error and I am so new at this that I have no idea how to correct it. If someone has any suggestions. Programming for 10 weeks! [CODE]#include <iostream> #include <string> #include <iomanip> using namespace std; int InputData(string [], int []); int main() { string players[99]; int score[99]; …

Member Avatar for Abelville
0
193
Member Avatar for onlinessp

Hi, I am writing a Directory optimizer with the help of mouse. I didn't Know how i can get the file name and the path which is being pointed by the mouse or clicked by the mouse.For more detail i am giving here an example. Let open the drive E:\ …

Member Avatar for Momerath
0
137
Member Avatar for RenanLazarotto

Hey people! I'm creating a small project which consists of 36 textboxes and one button. When I click a textbox, it should open a open file dialog and, when OK, set the text of the textbox I've clicked to the file name. I've did this: [CODE]Public Class Form1 Private Sub …

Member Avatar for RenanLazarotto
0
4K
Member Avatar for Joe34

Okay. I have a whole list of products. Some are the same thing ie: same titles I have a form where people search for the products. I organize the products by a rank I give each product when they are first created. I want to group up the products. For …

Member Avatar for smantscheff
0
90
Member Avatar for Scooterman1

So I've been working on a program that takes a string and then puts it in an i * 6 char array but I can't seem to get it to work, any help with the problem would be much appreciated. Here is the unsatisfactory code I have so far: [CODE] …

Member Avatar for Scooterman1
0
382
Member Avatar for mohamed_nasr

At debugging the code, the program gives 2 errors Error 1 error LNK2001: unresolved external symbol _mainCRTStartup Error 2 error LNK1120: 1 unresolved externals

Member Avatar for mohamed_nasr
0
594
Member Avatar for banh

I am trying to learn C++ ifstream i came across this code on the net and have some question. void read() { ifstream inFile ("in.txt"); string l, i; int item = 0; while (getline (inFile, l)) { // is this one checking end of file like java? istringstream linestream(l); // …

Member Avatar for banh
0
164
Member Avatar for Aamit

Hi, I am learning store procedure. my table structure is user_id int(9) primary user_name varchar(100) user_first_name varchar(100) CREATE PROCEDURE Sp1(OUT p VARCHAR(100),OUT p1 VARCHAR(100),IN p2 INT) SELECT user_name,user_first_name INTO p,p1 FROM pm_user WHERE user_id=p2; CALL Sp1(@Name,@Fname,2); SELECT @Name,@Fname; Output comes like @Name @Fname [BLOB - 0B] [BLOB - 0B] How …

Member Avatar for smantscheff
0
148
Member Avatar for devinodaniel

Hello friends, Props to anyone who can help me out on this because I have a feeling it's going to be quite complicated. I've searched and searched and can't seem to find the right answer so I've decided to resort to the brilliance of these forums. Here's my scenario: I …

Member Avatar for devinodaniel
0
1K
Member Avatar for Sidd_

hi 2 all How to get todaz date in java and store in a string thanx in advance

Member Avatar for anuj_sharma
0
107
Member Avatar for achava

I am trying to extract the important text, and only the important text from an RSS feed. I have determimed that all of the items in the feed have the important text underneath a tag that starts <div id="important text"> ... In some of the files the important text is …

Member Avatar for achava
0
159
Member Avatar for trante

I use Visual Studio 2005 on windows XP. I'm trying to use "Google Test" framework. But i couldn't manage to make just one test because of linker errors. I built Google Test, thank created new project. Then made the steps written in [URL="http://stackoverflow.com/questions/531941/how-to-setup-google-c-testing-framework-gtest-on-visual-studio-2005"]this link[/URL] to the project properties file. Than …

Member Avatar for trante
0
531
Member Avatar for dos_killer

im new to cgi scripting...im using python...and ubuntu... i changed apache2's default file to set the cgi directory to /var/www/cgi-bin...and there i i uploaded my simple cgi file...the cgi file runs perfectly fine when run through terminal...which means there is no error...but when i try to access it through a …

Member Avatar for richieking
0
278
Member Avatar for Dane2259

Could someone explain to me why this code will not print the 10th prime number? It says there is a syntax error on the fourth line (the x = range(3, math.sqrt(test_num)). It also says there is a syntax error on the sixth line (while prime_count < 10:). [code]import math test_num …

Member Avatar for richieking
0
123
Member Avatar for tombliboo

Hi Please help this is driving me insane, I've simplified my XML and stylesheet below for explaining what I'm trying to achieve. My stylesheet is successfully generating a HTML file for each of my categories using title i.e. This Category.html That Category.html It also generates a simple index.html at the …

Member Avatar for tombliboo
0
174
Member Avatar for pacheco

Hi, Let's say i have 2 boxes, 'UsernameComboBox' and 'PasswordTextBox' and a button, 'Update'. I would like the database (Access) to update a given record according to the values selected/input into the above 2 boxes. How do i go about doing this? Any help will be greatly appreciated :)

Member Avatar for pacheco
0
129
Member Avatar for arshi9464

what to do if i want to execute some statements in a loop till the user enters any key? i did this earlier but have forgotten the logic... example:- while(1) { printf("abc"); /*i want this code infinitely, but as the user presses any particular key it should stop the execution*/ …

Member Avatar for arshi9464
0
90
Member Avatar for cristi08

I have a tree that is not working to third level....something it wrong with the $_GET id_subramura1 [CODE] $display_block.="<li><a href=\"".$_SERVER["PHP_SELF"]."?id_subramura1=" .$id_subramura1."\">".$Denumire_Subramura1."</a></strong></li>"; } [COLOR="Green"] if (isset($_GET["id_subramura1"])) { if($_GET['id_subramura1']==$id_subramura1)[/COLOR] $query2 = "SELECT * FROM subramura_2 where id_subramura1='".$id_subramura1."' order by Denumire_Subramura2"; if(isset($query2) && !empty($query2)) { echo"<!--" . $query2. "-->"; $result2= mysql_query($query2) or die …

0
69
Member Avatar for xdrnpcx

Well i am working on a drink dispenser machine and got stuck on array part, this program includes selecting a drink, show price, show changes and a option whether to purchase drink again They are being placed on various method like public void A() select drink... public void B() calculate …

Member Avatar for xdrnpcx
0
163
Member Avatar for abelingaw

How do I add all time values in a database table to get its total, get the total tardiness then sum up to know how many days an employee is absent or present in a monthly basis?

Member Avatar for abelingaw
0
114
Member Avatar for thelerner

hye all :) can u help me with this code: [CODE]int list[4][4] ={7,23,12,6, 2,1,4,10, 65,15,33,8, 18,26,42,12}; int i,j; for (i=0;i<4;i++) { for(j=0;j<4;j++) { cout<<list[i][j]; } }[/CODE] there's output but i want it to display 4X4

Member Avatar for daviddoria
0
143
Member Avatar for KazenoZ

Hello, I'm having this problem in my code that I just can't figure out the reason to, I'm trying to set an integer value to an integer variable that's a member of a class that is part of an array member of another class. It should be an int = …

Member Avatar for KazenoZ
0
581
Member Avatar for CharlieNewey

Hi there, I have a set of coordinates (data points) that I want to use Python3 to fit an exponential decay curve to. I've used this resource [URL="http://mathworld.wolfram.com/LeastSquaresFittingExponential.html"]here[/URL] as a base for building my program. The problem is, no matter what the x-value I put in is, the y-value ALWAYS …

Member Avatar for CharlieNewey
0
688
Member Avatar for Abdel_eid

hello All, i am working on a small project to show people address through there names , for example the user will enter the name and it will show him the address of the entered name.. but the big issue here is that i want to googlize it which means …

Member Avatar for Abdel_eid
0
97
Member Avatar for becool007

Okay so this is getting on my nerves now. Say I have a string like this "The average value for box 1 is:" and I have a float variable containing digits. How do i make the final result like this: "The average value for box 1 is: 12.01" ?? In …

Member Avatar for ravenous
0
113
Member Avatar for bufospro

Hi, I am new in neural networks and I would like to tell me a program that I can simulate networks (except Matlab). I have a train.txt and a test.txt file and I would like to make a multilayer perceptron with back propagation. Thanks a lot

Member Avatar for bufospro
0
101
Member Avatar for CityThrille

Hello! I'm a programming student and a newbie in forums. :) How can I search for a data in listview from fist form using my second form? For example, I entered 7 entries to my listview, and when I press "Search in listview" button, the second form will open. (My …

Member Avatar for CityThrille
0
72
Member Avatar for kcarl

Hey Guys n Gals Im a newbie here and I am having trouble with putting input into a two dimensional array. What I have to do is put the users numbers (integers not doubles) into a matrix add them, subtract them and multiply. I have most of my code written …

Member Avatar for ravenous
0
139
Member Avatar for get connected

Hi All Does Anyone know how to make a variable public to all forms within the application. Eg [ICODE] Public MyPath = "C:\" [/ICODE] can do for one form but not all

Member Avatar for get connected
0
101
Member Avatar for petero_l

Hello it is my first time here and I just started C++ so hopefully my question isn't too dumb or anything: I was writing this thing that can do geometric series and arithmetic series. I can write the geometric series code alright and the arithmetic series code alright but once …

Member Avatar for petero_l
0
253
Member Avatar for weekendrockstar

Sorry for the crappy title but it was the best that I could come up with for this. It could be quite easy to someone but I'm wracking my brains out on it. Background: I have a script that shows dynamic articles. The rows for each has the author, title, …

Member Avatar for blocblue
0
90
Member Avatar for JacobBruce

Just wondering if someone can tell me what I'm doing wrong here, I just can't seem to work this out, I keep getting errors. [CODE]function GetColorFromBmp(XX, YY: Integer; Bmp: TBitmap): TColor; var Line: PRGB32Array; begin Line := Bmp.ScanLine[YY]; Result := RGBtoColor(Line^[XX].R, Line^[XX].G, Line^[XX].B); end; procedure SetColorOnBmp(XX, YY: Integer; Color: TColor; …

Member Avatar for JacobBruce
0
198
Member Avatar for sara113

this progect exactly about games that we defined how designer start design game

Member Avatar for chrjs
0
106
Member Avatar for somshridhar

[CODE]// istream get #include <iostream> #include <fstream> #include<string> #include<cstring> //#include<sstream> using namespace std; int main () { char c, str[256]; ifstream is; cout << "Enter the name of an existing text file: "; cin.get (str,256); is.open (str); // open file ofstream was; was.open("output.mvw"); string st ("There are two needles in …

Member Avatar for WaltP
0
172
Member Avatar for PerplexedWon

My problem: I am now able to get the program to compile, however, when i call the functions to count the number of consonants or vowels, the numbers are not what I expect. Instructions: Write a function that accepts a pointer to a C-String as its argument. The function should …

Member Avatar for PerplexedWon
0
779

The End.