64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for SoulMazer

For my script, I am trying to open a text file and print out the information in the console window. However, I am having trouble finding the right way to load it. To start, I need to figure out how to load something in the same directory as the script, …

Member Avatar for SoulMazer
0
154
Member Avatar for ShaneM

I'm trying to create a Monopoly - style game in C++ using the Dev-C++ IDE, MinGW compiler. I actually wrote this game in BASIC on a TRS-80 back in the early '80s and it worked fine! I've attached a .txt of the code in question with the error codes given. …

Member Avatar for ShaneM
0
164
Member Avatar for anydam

I have a whole bunch of files (file0000,file0001....file5000), and want to read them all at once in C. Anybody knows? Thanks!!

Member Avatar for jephthah
0
6K
Member Avatar for ararik

Hi, I am very new to Python and computer programming language. I have been working on a text file where I want to find the average length of words in a text file. Well, to start with: Let's say I have only one sentence in my text file (we can …

Member Avatar for ararik
0
3K
Member Avatar for Kev06N

Hi all, I'm quite new to C++!! I'm also having a bit of a problem with a for loop Its that I have an if statement inside a for loop [code]if (cuno == customers[i].custno)[/code] when I try to add an else within the for, it repeats the message 3 times …

Member Avatar for Kev06N
0
101
Member Avatar for TerabyteST

Hi, in my program, I need at one moment to set a window on the top of the others created by my program but not of all the windows (so that it does not popup randomly when I'm doing something else) how can I do it?

Member Avatar for TerabyteST
0
70
Member Avatar for seemant_sun

i am not geting the correct output can anybody help me whats the pmistake i have done [code=c] # include<stdio.h> # include<conio.h> void main() { int color; clrscr(); printf("enter any number"); scanf("%d",&color); if(color ==1) printf("violet"); if(color==2) printf("indigo"); if(color==4) printf("blue"); if(color==8) printf("green"); if(color==16) printf("yellow"); if(color==32) printf("orange"); if(color==64) printf("red"); getch(); } [/code]

Member Avatar for William Hemsworth
0
382
Member Avatar for TheBattlizer

How do you pass a structure array to another class? For example, I want to pass the structure array point[150] to a function in another class/source file. [CODE]#include... struct Points { int xCoordinate; int yCoordinate; int zCoordinate; } point[150]; int main(int argc, char **argv) { ... void DisplayPoints(); [/CODE] The …

Member Avatar for TheBattlizer
0
142
Member Avatar for tonief

I have created Table in SQL server with visual studio 2005 Table name Student and table data ID,name, surname, indeks, years, I have this code in C# [CODE]protected void Button1_Click(object sender, EventArgs e) { // try //{ SqlConnection conn = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=\"|DataDirectory|\\db_lab8.mdf\";Integrated Security=True;Connect Timeout=30;User Instance=True"); // ("Data Source=.\\SQLEXPRESS;AttachDbFilename=\"|DataDirectory|\\db_lab8.mdf\";Integrated Security=True;Connect …

Member Avatar for tonief
0
71
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
111
Member Avatar for Sanit

I have this bit of code that I am using in a project which I got working on a test webpage, and then when I tried to implement it on the real webpage, it all works, except for the jQuery effects. Here is the code: [code=Javascript] $(function(){ $("a.vote_up").click(function(){ //get the …

Member Avatar for Sanit
0
129
Member Avatar for redZERO

Hi guys, I want to paint multiple layers of images onto one image. I'm going to be using BufferedImage for this. How would I go about painting these multiple images onto one (in essence creating a new image. sort of like a collage)? Would i get the graphics context and …

Member Avatar for redZERO
0
364
Member Avatar for Tigran

Hello guys, I was making a website, all looked great, untill I started IE7. there, it really looked like crap. Now I'd like to just make another css file for IE6 and/or IE7 but not for IE 8, because it does look wel at that browser. How can I detect …

Member Avatar for Tigran
0
135
Member Avatar for aot

So far the move to wxPython has been going fairly smoothly. However, it's crucial that I be able to display items in the center of the screen (images, buttons, and radioboxes). I read about wx.ALIGN_CENTER_VERTICAL and wx.ALIGN_CENTER_HORIZONTAL, but the vertical option just doesn't seem to be working for me. Below …

Member Avatar for sneekula
0
1K
Member Avatar for jdm

I working on part of a code for a much larger project. I understand how to write a program for a password in the simplest form, but I want to have it let the user guess the password up to 5 times and then not let them run a command. …

Member Avatar for jdm
0
226
Member Avatar for manzoor

I am encountering a problem while reading config files. The scenario is like this, I have two programs. Program A reads its configuration from a config file and program B is only used to modify the contents of the config file which A reads. The name of the config file …

Member Avatar for manzoor
0
213
Member Avatar for akhtarr

Okay what I've got is a form and an array with a list of courses. The array populates a drop down list, I also have on the form a cost text box. What I would like is when the user chooses a course the cost field to automatically bring the …

Member Avatar for TomBCullen
0
128
Member Avatar for kvprajapati
Member Avatar for kvprajapati
0
292
Member Avatar for history84084

I am using the following code to show existing C# forms. It works for some and not for others Suggestions would be appreciated! Form frmFDDsearch = new frmFDDsearch(); frmFDDsearch.Show();

Member Avatar for kvprajapati
0
149
Member Avatar for bhagyaraj

Hello,I need help with the following series (sorry I forgot what its called..) 1/1! - 2/2! + 3/3! -4/4!....upto n terms Here's my program : [CODE]#include<conio.h> #include<stdio.h> #include<float.h> void main() { float com=0,j=0,j1=0,ans=0; //variable decl of float type int tillw,i,no=0,fac1=1,fac=1,f1,f2; //variable decl of int type clrscr(); printf("\n\n\t\t *********************************"); printf("\n\t\t ---------------------------------"); …

Member Avatar for bhagyaraj
0
197
Member Avatar for jzimmerman

I am creating a form for a registration that asks the participant if they have completed pre-requisite training. There are three questions they are asked. When they click yes, the text box for the requested information is enabled, when they click no, they get a warning that they need to …

Member Avatar for Airshow
0
156
Member Avatar for nish123

i have some data in an Array but i want only a particular part of it..!! how can i get it.. for Example... [code]Array ( [0] => status=1&messages=xxxxxxxxx&credit=23.4; ) [/code] i just want to get status = 1 how can i get it..?? help me out...!! :(

Member Avatar for nish123
0
159
Member Avatar for Stefano Mtangoo

I'm learning wxWidgets and would like to know which event, connect or using static event tables? Why will you choose one from the other

Member Avatar for Stefano Mtangoo
0
257
Member Avatar for Unhackmee

Can anyone please help me reverse the output. This is just a very simple code and the output needs to be reversed in order for it to be correct. [CODE=C++]#include <iostream> #include "stdafx.h" using std::cout; using std::endl; int _tmain(int argc, _TCHAR* argv[]) { int num = 0; int bin = …

Member Avatar for William Hemsworth
0
97
Member Avatar for waldchr

I have recently upgraded from Allegro 4.2 to Allegro 5 and am trying to upgrade some of my programs. I came to a program that tells the user a ton of info about the computer it's running on such as the operating system. In Al 4.2 I could just use …

Member Avatar for waldchr
0
118
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
170
Member Avatar for brandongood

Hello, I am getting the following errors: unexpected type line 433 operator + cannot be applied to <any>,double line 433 operator + cannot be applied to <nulltype>,double line 433 incompatible types line 433 unexpected type line 441 In the below file. I know its probably something simple, but could use …

Member Avatar for poeticinsanity
0
206
Member Avatar for serkan sendur

hi guys, is it possible to create a service application for windows mobile? it is going to be like windows service application. it is going to run in background. it is going to be used to push software updates to pocket pc. if you have any ideas about pushing a …

Member Avatar for serkan sendur
0
129
Member Avatar for retareed

I have a PHP script which checks and gets data from a MySQL database and then sends email. The emails received have one line of gibberish at the end: "...If you have received a renewal notice from the license/certificate issuer, please forward it to {snipped}. If you are due for …

Member Avatar for retareed
0
162
Member Avatar for Namibnat

I have been working on a site for a while now, and finally wanted to load it up to the server. I have been working on my own computer with xampplite. Everything was working just fine. When I uploaded it, after a few little things to resolve, I got most …

Member Avatar for Josh Connerty
0
103
Member Avatar for Richy321

Hi, Im trying to connect to my sql database and generally play around but I get the following error: [ICODE]error C3867: '_com_error::Description': function call missing argument list; use '&_com_error::Description' to create a pointer to member[/ICODE] I think it has something to do the import of the msado15.dll. Obviously if I …

Member Avatar for Richy321
0
216
Member Avatar for plut0564

Has anybody used this microsoft tool SSMA? I can connect the two databases OK, and can convert tables from ORACLE to SQLSERVER 2005, but the data refuses to go across. Any info will be helpful. Thanks, Jim

Member Avatar for Ramy Mahrous
0
104
Member Avatar for mikenco

I have joined a few tables together and all seems to work well.. [code] SELECT * FROM products JOIN underwriters ON (products.underwriter_lookup = underwriters.id_uw) JOIN countries ON (products.country_lookup = countries.id_co) JOIN repay_types ON (products.repay_type_lookup = repay_types.id_repay) JOIN base_rates ON (products.base_rate_lookup = base_rates.base_rates_id) [/code] However, I have been asked if I …

Member Avatar for mikenco
0
117
Member Avatar for PinoyDev

hello guys.! I just have 1 problem right here. I have a variable declaration below: [code=vb] myVar ="Argie's" "Select * from [my Table] where [my Field] ='" & myVar & "';" [/code] When i execute the query, it returns error because the myVar value contains Quotes and sql server does …

Member Avatar for PinoyDev
0
112
Member Avatar for Bob Arctor

Hello all, I have a page where the user clicks a link, one of several, and some text is displayed. The code I have does exactly that. My question is how do I show only the the current text inside the div container ? I've had a look at clearing …

Member Avatar for Bob Arctor
0
516
Member Avatar for Venom Rush

Hi all I'm learning OOP and I'm having a bit of trouble grasping the concepts. I'm trying to code a class that will connect to a database and have a function that will insert data into a table no matter how complex the insert is. For instance: Insert 1: INSERT …

Member Avatar for Venom Rush
0
105
Member Avatar for skumar.snl

To get Twitter user Detail,Followers,following by using UserName without password

Member Avatar for Tekmaven
0
89
Member Avatar for eng_mary

Hi every one. suppose i have Car class: [CODE=java]public class Car{ int id; int speed; public void move(){ ... } ..... }[/CODE] that have to run in Race class: [CODE=java]public class Race{ Car[] cars; .... public void runRace(){ .. for (int i=0; i<cars.length; i++) { cars[i].move(); //here is my problem …

Member Avatar for eng_mary
0
182
Member Avatar for mbrc

It's unfortunate to spend so many hours on a loop, but that I have. Below is a function which takes a NULL terminated string pointer and skips over new lines and /* comments /*. It should exit as long as the specific delimiter or comment is not present at the …

Member Avatar for mbrc
0
98
Member Avatar for firoz.raj

can anyone tell me .why i got error object variable or with block variable not set .any help would be greately appreciated.here is the code what i have written.Kindly find the attachment also. [code=vb] Private Sub Command3_Click() Set CON = New ADODB.Connection [COLOR="Red"]If CON.state = adStateOpen Then[/COLOR] ' con.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Persist …

Member Avatar for Jupiter 2
0
166
Member Avatar for tulsi_apr03

hi , frends i have a problem with displaying data on jsp page. While displaying data on web page(jsp page) i want to display some records , after a certain time that will be "automatically display" the next some more records on it, and continue this while the end of …

Member Avatar for tulsi_apr03
0
232
Member Avatar for Aamit

Hi, I want to clear or delete old values of array [COLOR="Red"]I attached my database dump with this post[/COLOR] my code is [code] require_once('includes/DbConnector.php'); require_once('includes/Validator.php'); require_once('includes/CommonUtility.php'); $z=0; $duplicateFlag=false; $qury="SELECT orders.order_id,users.company,users.minorderamt,vendororder.vendid FROM orders LEFT JOIN vendororder ON vendororder.orderid=orders.order_id LEFT JOIN users ON users.user_id=vendororder.vendid WHERE orders.status='C' AND orders.order_id='368' ORDER BY vendororder.vendid"; $qryR1=$connector->query($qury); …

Member Avatar for digital-ether
0
398
Member Avatar for syris

This is my first time programming anything and i'm reading the learning python book. I'm stuck at step one and very annoyed. I'm trying to run just a simple print saved program i wrote in notebook. For some reason i can't open it, ive gotten to the point where i …

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for shena

Hi, I need help for this problem that i'm trying to solve for a while (i'm new in PHP). How do i submit the value into database? Here's the code: [code]<form name="Form1" method="POST" action="checkbox.php"> <p><input type="checkbox" name="floor tile"> Floor Tiles</p> <p><input type="checkbox" name="polished tile"> Polished Tiles</p> <p><input type="checkbox" name="homogeneous tile"> …

Member Avatar for shena
0
4K
Member Avatar for Spycat

I am hoping that this is a proper forum to post to. I got an Ajax script from Dynamic Drive called "Dynamic Ajax Content" that loads external pages into a DIV in the Parent page. The effect is much like that of an iFrame. I am loading videos into the …

Member Avatar for Spycat
0
231
Member Avatar for lecotti

Hello everybody, ive only been learning C for about a month so please forgive me if my code is messy or unclear! I have written a simple program which creates a text file, reads from it and then writes the output backwards to another file; it seems to work apart …

Member Avatar for BestJewSinceJC
0
107
Member Avatar for Ddywalgi

Can anyone please help.I am trying to add values to a table from 2 dropdown lists which are dynamically poulated. I have managed to achieve it for one drop list but have added a second and cannot create the correct syntax to add both values to the table. [CODE=php] // …

Member Avatar for Ddywalgi
0
108
Member Avatar for defender_

Hi, I am new to c++ programming.... i am working on a example and when ever i run the following code i get error "Server fifo failure" this is an example and should work alright but error making no sense... :( I am running this code using sun C++ compiler.... …

Member Avatar for defender_
0
154
Member Avatar for Majestics

I am making on-screen keyboard in java. All what i want to know is how to get focus into the notepad or any other typing point , I mean when i press a key it type it into the typing point like a keyboard do. If any one know any …

Member Avatar for Majestics
0
155
Member Avatar for ihatehippies

Is it possible to separate python's syntax checker and check a string object with it? I've read through the py_compile module but it looks like syntax checking it done at a fairly low interface level. Anyone tried this before?

Member Avatar for vegaseat
0
114

The End.