64,152 Solved Topics
Remove Filter ![]() | |
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, … | |
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. … | |
I have a whole bunch of files (file0000,file0001....file5000), and want to read them all at once in C. Anybody knows? Thanks!! | |
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 … | |
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 … | |
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? | |
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] | |
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 … | |
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 … | |
i want to run some .exe in pocket pc using c++. how do i do that? thanks | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
What is difference between include action and include directive? | |
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(); | |
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 ---------------------------------"); … | |
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 … | |
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...!! :( | |
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 | |
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 = … | |
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 … | |
hi guys, do you know how to run windows installer from the command line? thanks | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
To get Twitter user Detail,Followers,following by using UserName without password | |
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 … | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
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"> … | |
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 … | |
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 … | |
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] // … | |
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.... … | |
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 … | |
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? |
The End.