199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for redrum237

hi this program starts off with random letters, then using a genetic algorithm eventually forms the "hello world!" basically i need this code to be able to input a word of the users choice, everytime i try something i get an error of some sort thanks [CODE]#pragma warning(disable:4786) // disable …

Member Avatar for programmersbook
0
408
Member Avatar for dapage

I have been working on a C++ program that is a tic-tac-toe game. The problem is that after I win or lose, the program does not end. Here's the code I have written so far (I even wrote comments to make it easier): [CODE] #include <iostream> #include <ctime> using namespace …

Member Avatar for jonsca
0
153
Member Avatar for brando|away

im writing a win32 dll and i need a procedure in this format (C++): [code] int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause) [/code] so how can i do this? why won't this work (fasm): [code] section '.data' data readable msg db "Text",0 section …

Member Avatar for brando|away
0
158
Member Avatar for subhankar02dey

How can I get this output by running a for loop the logic is that after the multiples of 2, "This" will b printed, after the multiples of 3, "Is" will b printed and after the multiples of 5, "Java" will b printed. pls help with code 1 2 This …

Member Avatar for tjsail
0
140
Member Avatar for flashninja

Currently I am trying to read from a file using java and it is just producing errors. I need help with this as I have been unable to fix this myself and have come to a wall with this. Could you just take a quick glance over this and see …

Member Avatar for BestJewSinceJC
0
74
Member Avatar for hallinan

Hi I have a project where when you input text into a textarea if a certain word is put in I need to change this word I'm having real trouble with this Here Is what I have so far but it will not reconize some of the words [CODE]/* import …

Member Avatar for hallinan
0
91
Member Avatar for nunchuckie

Hi, I've used getline and pushed back a text row into a vector. The vector is of string type and I want to sort out the numbers and store it elsewhere. in my vector: The man is 67 years old and driving an Oldsmobile Rocket 88 I want to sort …

Member Avatar for Clinton Portis
0
115
Member Avatar for Jiwe

Can anyone tell me how or help me to get a Window's Title and save it to a TXT file? I tried couple of things with the GetWindowText() but only manage to get some numbers.

Member Avatar for William Hemsworth
0
278
Member Avatar for Leandro-AL

Hello! I am trying to create some sort of a crawler. I was using file_get_contents() to get the pages until i stumbled on this one site, where that didn't work: [CODE=php]$page = 'http://www.site.com/page.php'; $content = file_get_contents($page); echo htmlspecialchars($content);[/CODE] This returned a completely blank page. After looking it up, it appears …

Member Avatar for kireol
0
2K
Member Avatar for Tex09

The contents of the array are safe within the function, however, upon returning to main the data becomes garbled. section of main: [code=c++] unsigned short tcp_port = atoi("8080"); const char* workDir = "WhatInthe?"; // Parse command line arguments if ( parseCmdArg( tcp_port, workDir, argc, argv) == 1) return 1; cout …

Member Avatar for Tex09
0
203
Member Avatar for sneek

Hi, may anybody tell me why there is a init AND a new-method? Why not using one constructor-method like we have to use in java and other OO-lanuages?? Would be nice if somebody can give me an idea about that. Thanks a lot Jonny

Member Avatar for sneek
0
190
Member Avatar for nertos

Hi, i have a little problem, i dynamic generate a buttons in two columns [CODE=c#] for(i=0;i<=10;i++){ Button prz = new Button(); prz.Location = new Point(12,40+i*25); prz.Name = "But"+(p-i)+"up"; prz.Image = Image.FromFile(picture_from_file_1); prz.ClientSize = new Size(20,20); prz.Click += new System.EventHandler(this.Button_Click_Code); Controls.Add(prz); Button prz1 = new Button(); prz1.Location = new Point(45, 40 …

Member Avatar for nertos
0
355
Member Avatar for AbsoluteCPP

[B]Description[/B] I want to have a video conference system. [LIST=1] [*]That is the client-server model. [*]The client can send audio/video/document(like ppt.doc.xls..)/application sharing/chat functions. [*]The client's window can receive 16 videos(from other clients). [*]The client can work on windows platform. [*]The server can work on windows or linux(it's better). [*]The video …

Member Avatar for AbsoluteCPP
0
119
Member Avatar for NitaB

Hey guys! I guess my other post wasn't so clear...probably because I wasn't sure what exactly I was trying to do. Anyway, right now I am having problems reading my input file into my 20x20 2D array. I mean, it compiles fine. But, I have a print function just to …

Member Avatar for NitaB
0
174
Member Avatar for natureG

Hello, I am having a problem. The task I have been given is to implement a queue using a linked list. One of the functions of the program is it accept input from the user and write this to a file. The program, thus far, accepts the information, but prints …

Member Avatar for meghana8818
0
882
Member Avatar for samsons17

This is the answer for one of the simple function question from my programming lab... [CODE]#include <iostream> using namespace std; void displayHi(); int main(void) { displayHi(); } void displayHi() { cout<<"I love c++"; } [/CODE] but what i dont understand is why we should put [B] main(void)[/B]?? why dont simply …

Member Avatar for Ancient Dragon
0
156
Member Avatar for confusedndazed

I'm having trouble understanding how to write a function call. This is what I have so far: [CODE]#include <ionstream> using namespace std ; int binomial(int n, int k) ; // function prototype int main () { int n, k ; // parameters for the binomial number int result ; cout …

Member Avatar for amrith92
0
146
Member Avatar for aruti

what problem i am actually facing is that .. i have a database -- table in which i have lng and lat saved .. And i want that when i fetch them in textual form i also get the address to which those particular set of lng and lat are …

Member Avatar for chrishea
0
78
Member Avatar for lewashby

I have to prgrams and thus, two question to ask. In the following program how does the line [COLOR="Red"]status = staticmethod(status)[/COLOR] do anything? My python programming book somehow connects it to the line [COLOR="Red"]Critter.total +=[/COLOR] 1 but I don't see how? Please explain. [CODE]# Classy Critter # Demonstrates class attributes …

Member Avatar for vegaseat
0
194
Member Avatar for juniper2009

Dear All I am trying to create a list of characters already given as below. When I compile it it gives me following errors. In function `int main()': 17: error: `islowerCase' undeclared (first use this function) 17: error: (Each undeclared identifier is reported only once for each function it appears …

Member Avatar for amrith92
0
145
Member Avatar for Moonrise_state

Hi, In a terminal program I'm writing values are inputted and stored in a pair of arrays. At one point in the program I need to print them back out. My problem is that if I input 1.10, Java gives me 1.1. I really need it to print the zero …

Member Avatar for Moonrise_state
0
90
Member Avatar for pankaj.garg

i have a VB6 application using DAO and other reference libraries...so i used Package & Deployment wizard, so that it works on other machines as well...now my application size has increased from "79 KB" (my earlier exe + DB Files) to whooping "30 MB" (entire package). Please guide me how …

Member Avatar for pankaj.garg
0
155
Member Avatar for AbsoluteCPP

This must be a frequently asked question, but I can't find the answer in the FAQ, or in the recent archive of this list, or by using google with the keywords I thought of. I would like to use libavcodec.dll and libavformat.dll in my Windows XP Visual C++ 2008 project. …

Member Avatar for programmersbook
0
305
Member Avatar for ffs82defxp

i recently found that variables set in a function cannot be used in another function. so to make variables 'universal' i have to make them global variables? and you do that buy stating them global, like this? [CODE]global [VARIABLE NAME]=[VALUE][/CODE] i have a feeling there is more to it.

Member Avatar for vegaseat
0
381
Member Avatar for samsons17

HI.... I'm doing this question... [B]Question Using a non-void function with parameters, write a complete C++ program that prompts the user for the Cartesian coordinates of two points (x1, y1) and (x2, y2) and displays the distance between them computed using the formula: distance = sqrt( (x1-x2)^2) + ((y1-y2)^2)... [/B] …

Member Avatar for hajiakhundov
0
244
Member Avatar for ffs82defxp

is there a command or fuction in python that deals with email? like: [CODE]email(ibmceo@ibm.com, 'Hello, my name is Bill. How are you doing at IBM?', email.cc(),attach("C:\123321.txt"))[/CODE] :D

Member Avatar for vegaseat
0
86
Member Avatar for kira4

May I know why I cannot submit my search function by pressing enter? When I enter the primary key and press enter, it will show this : Notice: Undefined index: submit in c:\easyphp1-8\www\efiling\accountingdeleteprocess.php on line 23 But if I enter the primary key and press the submit button, there is …

Member Avatar for kira4
0
75
Member Avatar for Jiwe

I made a function SetRegistry() to write a string in the registry like this: [CODE] void SetRegistry() { HKEY hKey; RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Run"),0,KEY_SET_VALUE,&hKey); RegSetValueEx(hKey, TEXT("filenamehere"),0,REG_SZ,(LPBYTE) "C:\\Windows\\filenamehere.exe",sizeof("C:\\Windows\\filenamehere.exe"); RegCloseKey(hKey); } [/CODE] NOTE: C:\\Windows\\ is the path where the .exe file I want to add is. it sets the string with the filename and …

Member Avatar for Jiwe
0
2K
Member Avatar for Annettest

Hello everyone: I am a C++ newbie; I am interesting in using C++ in my work on coupled fluid flow-chemical reaction problems. I apologize in advance for what is probably a very simple question. I would very much appreciate some help to get me on the right track! My goal …

Member Avatar for Nick Evan
0
239
Member Avatar for jas2010

I Want transfer updated data between 2 Database MySQL that One of them is in the server Host and other is over localhost . Now What should I do? I'm waiting for your answer

Member Avatar for jas2010
0
87
Member Avatar for foxmulder

Hi! I put this simple, I got an assignment that's following: [B]Write a function that return the amount of all integer from zero (0) to a number that was given as an argument.[/B] How do I do, I dont even understand the question? Thanks in advance! //Adam

Member Avatar for samsons17
0
142
Member Avatar for nunchuckie

Hi guys, I'm trying to find a way to read a chosen line from a text file. Like I want to read line 2 and then the program will find the second text line for me to read. Any tips? :)

Member Avatar for nunchuckie
0
137
Member Avatar for adi.shoukat
Member Avatar for mahela007

What is an abstraction layer in computer science? I've already read (or tried to read) the wikipedia article and I couldn't understand anything.

Member Avatar for mahela007
0
84
Member Avatar for mahela007

How do kernels work on different systems when hardware can be so different? For example, how would the kernel work when the graphics card of a PC is changed?

Member Avatar for mahela007
0
85
Member Avatar for panagos

Hello, i have to do a project that presents a form with 3 text fields like this [img]http://i47.tinypic.com/1jsw44.jpg[/img] type 2 numbers and then the symbol(+,/,*,-) and do the appropriate action. I am using [B][U]Tomcat 6.0.[/U][/B] I've done so far: [B][U]#[COLOR="Red"]simple.html[/COLOR][/U][/B] [CODE]<html> <body> <form method="post" action="simple.jsp"> Number_1<br> <input type="text" name="value1"><p> Number_2<br> …

Member Avatar for panagos
0
136
Member Avatar for gispe

Hi!! im doin a proyect that have to create a library, n create, delete an modificate books to the library. im using a listview to show all the books that r created, n should delete books that i deleted n if a modify one, should delete it n then upload …

0
111
Member Avatar for ausrasul

Hi, I've wrote a C++ program on windows (client-server) using gcc with following commands: [code] SOCKET(...) bind(..) select(..) recv(..) send(..) close(..) [/code] 1- If I want to convert the application to use SSL3, what should I change? I need a general overview to get me started. 2- If I want …

Member Avatar for programmersbook
0
261
Member Avatar for Harshika

Hi all, I am harshika working in a Company in SAS. I would like to take up the SAS Certification.Please kindly help me to under go BASE SAS Certification Level 1. I need the sample questions other than in support.sas.com.Because it is quite easy.Please the share experience who have taken …

Member Avatar for Rashakil Fol
0
121
Member Avatar for jaison2

I need help with the function but i have no clue how to?.. the function should generate a random number between 1 and 100 and then allow the user to guess the number. After each guess it should display if the guess is too high or low and if they …

Member Avatar for snippsat
0
208
Member Avatar for naziatarannum

I have no idea on AJAX, Can anyone please advise on any reference material as am a beginner?

Member Avatar for Sirabbub
0
103
Member Avatar for Web_Sailor

Hi, I am struggling with a Layout problem. Here is the definition of the problem:- 1) I have a JFrame where I specify space alignment in GroupLayout for JScrollPane as per the other (JButton/ comboBox etc..). My JScrollPane contains a JTable. I use get and set methods to set scrollpane …

Member Avatar for Perveance
0
185
Member Avatar for NicholasE

Dear members, I need to write a small loop to generate the following: 0 0 0 0 .... 0 1 1 1 .... 1 2 2 .... 2 3 .... 3 4 : 299 I think it needs a double loop but since i am still beginner in python i …

Member Avatar for NicholasE
0
111
Member Avatar for fdsaasdf

Hi everyone, I don't understand why this doesn't update my actual MS Access 2003 mdb file. During debug phase, I learned that it updates the dataset and creates new rows. But it doesn't reflect into the database. Why is it so? Please help me out. Thanks in advance.[code]else { //Auto …

Member Avatar for DdoubleD
0
191
Member Avatar for sam023

i want to encrpt query parameters in Url... So that end user unable to understand it..!!! [url]www.test.com/page.php?uid=1234&tid=234[/url] can we encrypt or hide value through .htaccess..???

Member Avatar for venkat0904
0
164
Member Avatar for fazeleh
Member Avatar for DdoubleD
0
104
Member Avatar for R3Slick

Ok so I have been working on this all day but cant get it. I want to add an Employee ID to an Employee Table....I got this much...But first I need to check if that ID exists already. How can I do this, here is my code: [CODE]<?php session_start(); require_once …

Member Avatar for venkat0904
0
159
Member Avatar for blamp

Can someone help me figure out why nothing comes up on the output screen. The program compiles but the the output is blank. 1. Maintain information on all students. Each student has the following: 1st line - lastname, city of residence, student id, ssn 2nd line - course, course id, …

Member Avatar for pecet
0
132
Member Avatar for plastic
Member Avatar for ddanbe
0
212
Member Avatar for stacia

hi i am a fourth year computing major and i need some help with the following assignment. The program is to simulate the operation of one day's activity at an airport, and output the times waiting to land and take off for each BWIA flight. the program should include the …

Member Avatar for m_usman
0
2K

The End.