199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for klactose

Hello, I am somewhat of a SQL newbie. My question is how would I go about creating a query that searched for things like: 1. users who have collected a complete set of promo items 2. users who have purchased every movie from actor X 3. users who have purchased …

Member Avatar for debasisdas
0
102
Member Avatar for rambo123

hi, what is the diffrence between delete and truncate command in sql. plz send me tutorials of oracle also. waiting for your reply. <URL SNIPPED>

Member Avatar for debasisdas
0
116
Member Avatar for songweaver

Below is the code which is supposed to round to two decimal places, i.e. 1.2874 is suppose to round to 1.29, but rather gives me 128.0000. What am I doing wrong need help fast! #include <iomanip> #include <iostream> #include <cmath> using namespace std; double roundIt(double x, double n) { x …

Member Avatar for kbshibukumar
0
142
Member Avatar for gagan22

hi everyone, I have found one warning in my php code. How it can be removed. pls help me . It is very urgent. warning is like this on a php page......... Warning: session_start() [function.session-start]: open(/tmp/php-ses/sess_7dbaf8a556cd076ed8409da8908ea802, O_RDWR) failed: No such file or directory (2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: …

Member Avatar for gagan22
0
557
Member Avatar for creativehacker

I want to find duplicate names from my database I wrote the following query. But it is displaying more that existing records. I guess it is taking cartesian product. select a.name from emp from emp a,emp b where a.name=b.name; can anyone correct this query. I want to display all the …

Member Avatar for mir77
0
105
Member Avatar for PhiberOptik

Hey guys, I am writing a small script that requires me to make text that is within a textArea multi coloured. I will show an example in the quote box below: [QUOTE] [COLOR="red"]Hello, How are do you?[/COLOR] [COLOR="green"]I am Fine, how are you?[/COLOR] [COLOR="red"]Great![/COLOR] [/QUOTE] I was wondering if there …

Member Avatar for JamesCherrill
0
66
Member Avatar for barbosmaw

HI I'm not an expierenced python programmer (yet) I want to display an image on a screen. I already installed PIL 1.1.6, and i am using the Tkinter GUI. I don't know what is missing (or were I went wrong installing the PIL), but this message <see below> is popping …

Member Avatar for barbosmaw
0
349
Member Avatar for chris5126

Hi Guys, I have a file which contains the following info (it realtes to CPU usage): [code] 1 0 2 2 0 10 1 11 [/code] It is stored in a text file. I need to read each line in turn into an array and then import it into a …

Member Avatar for chris5126
0
173
Member Avatar for jedimatt

Hi all, I have a good one here and i am hoping there is an answer for this. I have a form which displays a profile. Each profile has multiple rows of data, each row consists of a sort order, an operation name and a delete flag, which when saved …

Member Avatar for jedimatt
0
386
Member Avatar for chriscross86

hi, there, im doing a small program and the output should be as below @ ** @@@ **** @@@@@ Ive coded it, but it gives different answers..please help.the code is as below. #include <stdio.h> int main() { int i,j,k,m,a,y; for(k=1;k<=3;k++){ for(j=1;j<=5;j++){ for(i=1;i<=j;i++){ printf("@"); } printf("\n"); for(i=1;i<=j+1;i+=1){ printf("*"); } printf("\n"); } …

Member Avatar for srikanthkadem
0
88
Member Avatar for mangesh5588

HI, I am creating a CMS site in asp.net with flash animation. I want to write editable text (fields) on a white sheet that opens in an animated form. The text has to be in asp.net as there is a small query form, and some text (that can be edited …

Member Avatar for ravinder007
0
134
Member Avatar for sivak

how to pass the image file from client side to server side ? how to read and write that image file in server side ? can anyone tell me the code for it? thnaks for ur help

Member Avatar for expvice
0
97
Member Avatar for Stefano Mtangoo

I have been in some tutorials for socket Module. It is very interesting. I want to know what I need to Know to make simple peer to peer/Client server Chat software but I'm new to Network, so anything that will help me put things together? Thanks Guys :)

Member Avatar for lllllIllIlllI
0
174
Member Avatar for thacravedawg

I currently have a pretty basic data application that I intend on adding a good deal of functionality. The application is a windows form app using a an access database connected through the oledb method. Everything works fine, until the iterations are extended to very large numbers. For example, it …

Member Avatar for thacravedawg
0
167
Member Avatar for pythononmac

I have written one python script for each test case. Now I want to have another script that runs all the test cases one by one, and output the result of each test case to a file. How should I start?

Member Avatar for lllllIllIlllI
0
117
Member Avatar for atreides27

so im writing this code, trying to do an exercise with friend functions and all that I have that part down, I was told to take my original code and put in what you see now "Make function add of type AltMoney. Thus, this function now computes the sum of …

Member Avatar for siddhant3s
0
450
Member Avatar for cbreeze

I am supposed to read in data from a file, create a linked list, and be able to traverse it. I feel like I have the first part of the code correct but I get a segmentation fault when I try and run the program and the pgm4.rpt file is …

Member Avatar for vmanes
0
135
Member Avatar for alexgv14

I have this gallery that loops through images in a folder. But you have to set what images. Is there a way that I can make it loop though as many images that are in this folder maybe using a for loop or something. [code] var mygallery = new simpleGallery({ …

Member Avatar for alexgv14
0
142
Member Avatar for thijo

hi i have to group the data. i completed coding. the output is [ output] C:\Program Files\Java\jdk1.6.0_03\bin>java check Please Enter the Number of Clusters 3 Enter the file to be read with csv extension hi.csv [(345,2) belongs to 0, (300,2) belongs to 0, (390,2) belongs to 0, (400,3) belongs to …

Member Avatar for thijo
0
104
Member Avatar for curtissumpter

Hi people, Yeah, so I have an application that works. The code is not buggy and I have worked hard on it. It is three files long but the section I need help with is small. It is the paintComponent section. It is a multi-threaded application and if you want …

Member Avatar for curtissumpter
0
126
Member Avatar for JimD C++ Newb

Good afternoon all! I am writing an address book for a class that I have, and am stuck on this last part. Any help would be greatly appreciated! When the user selects the "Edit existing record" option, I can't figure out how to make the file overwrite the previous record. …

Member Avatar for eggi
0
390
Member Avatar for k2k

hi, i am trying to write a script to add 100 users and with certain things created. however, all the book and tutorials online recommend and only show the way to use passwd user after creating a user by useradd username. i know there is a -p option for the …

Member Avatar for eggi
0
144
Member Avatar for JameB

Hello, I am trying to create a program where I can work with an array of char that contain either 0 or 1 representing a decimal number that the user enters. Basically I need to convert a decimal number into binary and store it into a char array. I wrote …

Member Avatar for blacklight332
0
969
Member Avatar for koushal.vv

Hi, i just need to know is there any method in MFC / C++ which will do the validation for the entered date. ie if the date 12/11/2008 is given as input it should return saying the date is valid.i hope there exsists some standard function. it should also check …

Member Avatar for John A
0
510
Member Avatar for maxicube

Heyy, need some help here. ok, I've got my script here right. [CODE]<html> <head><title>Display Records</title> <style type="text/css"> td {font-family: tahoma, arial, verdana; font-size: 10pt } </style> </head> <body> <?php $db="aseco121"; $link = mysql_connect('127.0.0.1: 3306', 'root', '******'); if (! $link) die(mysql_error()); mysql_select_db($db , $link) or die("Couldn't open $db: ".mysql_error()); $result = …

Member Avatar for maxicube
0
215
Member Avatar for llemes4011

Hi, I was wondering is anyone could help me out. I'm trying to program Mario as my final for my comp sci. class. I'm not working about the actual Sprites now, just the basics, ie, moving, jumping and collisions. I'm stumped on the jumping part. Is there a good way …

Member Avatar for llemes4011
0
112
Member Avatar for nagatron
Member Avatar for rgfirefly24

So i have the following code: [CODE] //main program char username[15] = {'r','g','f','i','r','e','f','l','y','2','4'}; char password[9] = {'1','2','3','4','5','6','7','8'}; if(client.Send(15,9,username,password)) { printf("Connection Successfully Established"); } [/CODE] [CODE] //class file bool Class_Name::Send(int usize, int psize, char *username, char *password) { itoa(usize,sendbuffer,16); // works fine itoa(psize,sendbuffer + 1,16); // works fine for(int i = …

Member Avatar for rgfirefly24
0
97
Member Avatar for trelek2

Although I'm a novice in Java I am to make a pool simulator in java with the ability to handle any arbitrary number of balls (i have created a Ball object, balls will be stored in the Ball array called balls). All the parameters are to be read in from …

Member Avatar for BestJewSinceJC
0
245
Member Avatar for geemicah

[ICODE]#include<stdio.h> #include<conio.h> struct record_ko {char name[20]; int stno; char fav_color[20]; }record[5]; void main() {clrscr(); int no; for(int i=0;i<5;i++) {printf("\nwhats your name? "); scanf("%s",record[i].name); printf("what is your student number?? "); scanf("%d",&record[i].stno); printf("what is your favorite color? "); scanf("%s",record[i].fav_color); } for(i=0;i<5;i++) {printf("\nname:%s\t\t\t \nstudent no:%d\t\t\t \nfavorite color:%s\t\t",record[i].name,record[i].stno ,record[i].fav_color); } getch(); }[/ICODE]

Member Avatar for death_oclock
0
75
Member Avatar for JohnnyG23

This is for c++. Ok, I have most of this done but can't quite figure out how to get the queue to appear on screen. I also think I may have messed up my loops as well. What it is supposed to do is ask what the user wants to …

Member Avatar for Lerner
0
96
Member Avatar for VBNick

hello! I am trying to learn how to do paralell processing. I am baseing this on an example that I saw here: [url]http://www.codeproject.com/KB/recipes/sseintro.aspx[/url] the one titled "SSETest Demo Project" I tried to make my own, and don't understand why it isn't working. Here is the code: [code="cplusplus"] // testconsole.cpp : …

Member Avatar for VBNick
0
233
Member Avatar for shasha821110

Hi, all. I have one question: I am writing my-string class now according to the assignment. And like other String class assignment, we have to overload the operator, do the difference type constructor, etc. Well, i almost finish my assignment. But there have one problem with my code. I am …

Member Avatar for William Hemsworth
0
256
Member Avatar for EJD

The following code is giving me `"Exception in thread main java.lang.NumberFormatString"` error and some specifics following it. The file I am having the program read is in the following REQUIRED format: Smith 12 14 15 12 16 -1 James 19 19 28 48 12 -1 Where -1 is a sentinel …

Member Avatar for llemes4011
0
111
Member Avatar for BobLewiston

In C#, I'd like to convert some numbers to strings in a standard format, but preferably in a simple way, such as if you were going to output them rather than store them in string variables, a la:[code]Console.WriteLine ("{0:F2}", num);[/code]rather than use a bunch of string methods to make them …

Member Avatar for ddanbe
0
189
Member Avatar for colmcy1

Hey all, I am trying to first write an array to a text text file, delete the array, then later in the program I need to use the array again so I need to open the text file and read the array and call it the same name as before. …

Member Avatar for 10Pints
0
272
Member Avatar for EDanaII

I'm not sure if this is the right place to post this, but as there is no .NET forum (only a VB.NET and ASP.NET forums) and I'm using C#, so here I go. :) I have a datagridview with a single combobox per row. I want to populate that combobox …

Member Avatar for EDanaII
0
875
Member Avatar for katamole

Hi everyone, As a personal project I've decided to write a small script which will take a raw_input film title, then look up the IMDB rating and return the result. As an extra challenge I decided to employ re. Now, this is how far I have got (yes, I am …

Member Avatar for katamole
0
678
Member Avatar for Norbert X

Is there any way to save to progress of a Python Program onto an I.P. Address or Harddrive? Like if you enter '5' into a program that multiplies your number by 3 and save it, your saved number would be 'x' when you reopen the file. I need help! :)

Member Avatar for leegeorg07
0
141
Member Avatar for Webbsta

At the moment i am using the shell command simply because i need to the my program as if it was a batch file, the program that im using needs the shell command to run properly otherwise it would need to be done in a batch file, now i know …

Member Avatar for bartj1
0
1K
Member Avatar for BruenorBH

I am sort of new to Win32 API programming with C++ and I am having an issue trying to save what is in the textboxes to a file when you hit the close button. I am using the WriteFile() and CreateFile() functions. Everytime I try to do it I get …

Member Avatar for BruenorBH
0
184
Member Avatar for JameB

Hello, I have a problem where I need to delete any occurrence of "~" from a string. I created a function but in the end, it only deletes half of the "~" and leaves the other half.... [code=c++] string goodstring(string inp) { for (int i = 0; i < strlen(inp.c_str()); …

Member Avatar for GDICommander
0
134
Member Avatar for sam_sumit184

program for copying one file to another by using protection of conventional run time error.

Member Avatar for siddhant3s
0
59
Member Avatar for peacerosetx

Greetings All, I have one class I'll call main class and it creates and initializes all of the classes so that they are not re-created again. What I simply want to do is to have in the creation of my other classes pointers to the classes they need to operate. …

Member Avatar for peacerosetx
0
108
Member Avatar for viv_daniweb
Member Avatar for siddhant3s
0
164
Member Avatar for drone626

I have written code to compute the discriminant of a polynomial f(x) using the determinant of a sylvester matrix which for f(x)=x^5 -110*x^3 +55*x^2 +2310*x +979 looks like [CODE] [[ 1 0 -110 55 2310 979 0 0 0] [ 0 1 0 -110 55 2310 979 0 0] [ …

Member Avatar for Gribouillis
0
106
Member Avatar for MDGM

Hi all, I need to do a query like this: [CODE]SELECT * FROM table1 WHERE ( SELECT COUNT(*) FROM table2 WHERE fbid = *current primaryKey*) > 150[/CODE] How do I get the *current primaryKey* in order to do the second section of the query? Max.

Member Avatar for nav33n
0
3K
Member Avatar for Derice

I am using the login control in ASP.NET. When I run the program an error msg "Incorrect syntax near the keyword 'User' " appeared in the debugging mode. I have no idea what is the problem. Anyone know what is wrong with my code? [CODE] Protected Sub Login1_Authenticate(ByVal sender As …

Member Avatar for ema005
0
336
Member Avatar for tux4life

While searching the internet I always come across several posts where they're saying that Bloodshed Dev-C++ isn't for advanced use (rather for newbies), why are they saying that? Is MinGW not an advanced compiler? Or is it just because they aren't developping Dev-C++ anymore... I know there's Code::Blocks, but I …

Member Avatar for tux4life
0
170
Member Avatar for MosaicFuneral

In GCC/MinGW when I map a function to a specific section can I expect the sections [icode]Characteristics[/icode] bits 5, 9 and 30(IMAGE_SCN_CNT_CODE | IMAGE_SCN_MEM_EXECUTE | IMAGE_SCN_MEM_READ) to be set or always set? What about for an all variable mapped section? I just wanted to know if I could confirm a …

Member Avatar for Salem
0
268

The End.