199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Aia

I am going through the exercises of this old C programming book, that doesn't have the answer in the back. Which is good. However I am not understanding a particular question. It says: Write a program that estimates the value of the mathematical constant e by using the formula: e …

Member Avatar for ~s.o.s~
0
187
Member Avatar for Suplexx

Can someone please explain to me how to animate a sprite, using an image with a set of poses? For example is it possible to specify one part of an image, or do i have to use seperate image files for each pose? And lastly, how exactly would one go …

Member Avatar for jrcagle
0
236
Member Avatar for jeet_portal

Hi Experts, I have written a Servlet file which sends email to a user .When if i run that servlet file in command Prompts it sends a email .Now i want that servlet file to be automatically executed inside my Tomcat server within a stipulated Time . Sothat it can …

Member Avatar for jwenting
0
116
Member Avatar for levk

Hi, I have an abstract class like this: [code]class Descriptor { public: virtual ULONG dispatch(char*, size_t, Stream) = 0; };[/code] and I have a subclass like this: [code]class ConsoleShell : public Descriptor { public: ULONG dispatch(char*, size_t, Stream*); }; #include "services/console/Console.cpp"[/code] and in Console.cpp: [code]ULONG ConsoleShell::dispatch(char *cmd, size_t len, Stream …

Member Avatar for ~s.o.s~
0
230
Member Avatar for Bobbiegirl

I have a project that is due and I have written the code and for a part of the code output to the file I cannot get the right format. I cannot figure out what the formatting should be can someone please help me. [code]#include <stdio.h> #include <stdlib.h> #include <string.h> …

Member Avatar for Aia
0
167
Member Avatar for gerik

Does anyone know of a website that provides a lot of good problem solving exercises, or perhaps a great book for this? I've been reading a couple books on C++ but all of the exercises the books provide are sort of mediocre and don't really train me to actually use …

Member Avatar for Ancient Dragon
0
137
Member Avatar for JadedTortoise

Ok I just started programming again after about 10 years, and i was doing the suggested beginner problems. The first one to create a program that returns the factorial of a number. I think i got it all down right but compiler is saying "expected primary-expression before else" here's the …

Member Avatar for WaltP
0
117
Member Avatar for MojoS

Hi... I am trying to make a program that ask for a specific DNA number, where the program have to check if the given number is in a specific given list... here the program should tell me if they are or arent in the list..the program runs untill I write …

Member Avatar for MojoS
0
117
Member Avatar for Wigglesworth

Hello my name is chris. I play Counter Strike and Americas Army ocasioanlly. So I have an Idea that would make playing alot easyer, if I could find or make a program that I could open to run, and use task manager to close. I need the program to run …

Member Avatar for Phaelax
0
216
Member Avatar for disc

Goodmorning, Can anyone tell me how to convert a TCHAR to a std::string ?? Thanks....

Member Avatar for disc
0
195
Member Avatar for aot

Here's something that I've wished for a number of times so far: the ability to create a function (taking X) that creates X variables, even if they are all initialized to the same value. For example, [inlinecode]f(3)[/inlinecode] would assign [inlinecode]var1 = 0[/inlinecode], [inlinecode]var2 = 0[/inlinecode], and [inlinecode]var3 = 0[/inlinecode]. My …

Member Avatar for aot
0
135
Member Avatar for eldoc

Hi My hosting company no longer permits connection to any port other than standard ones and I am in the middle of a project that is best solved via sockets (I think). I use a mysql database and connect to it via php. I need 4 people to use client …

Member Avatar for eldoc
0
111
Member Avatar for veeyen

Hi I am very new to MySql. I want to use Navicat along with MySql server to develop and maintain very simle database in future. Up to this point it is OK. I want to develop and maintain a small customer database. My question is do I need a GUI …

Member Avatar for jbennet
0
102
Member Avatar for mahajanrahuld

plz help me how run the perl script on tomact server plz tell me the step by step process its urgent

Member Avatar for katharnakh
0
100
Member Avatar for hbmarar

Hi, In symfony , if i have two modules. module A has functino to get the details and corresponding template has a list of comments to show from filesystem. But comments i want to keep as a seperate module and this asks me to skip from one action to another. …

Member Avatar for hbmarar
0
82
Member Avatar for Masood Ali

Hi All. I m a C++ programmer and I m trying to understand a piece of code. It fetches the values through command line arguments and makes a decision on the basis of these values. This code is working well but I dont know how? [code] for (int i = …

Member Avatar for Masood Ali
0
141
Member Avatar for delphi_uk

Hello to you all, I am having problems with some code that I am working on for a text parsing system from an external *.txt file. The problem seems to stem from the Tokenize function, as I get a: "LNK2019 error: unresolved external symbol "void __cdecl Tokenize(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> …

Member Avatar for delphi_uk
0
107
Member Avatar for pupsia

Hello!! I realy need some help!! :sad: :cry: With Fibonacci numbers :( I found some programes, and they are a lot of help :cheesy: but... I need some more help :rolleyes: [code] #include <iostream> #include <conio.h> using namespace std; int main () { int a[128]; int fN; int i; a[0]=1; …

Member Avatar for John A
0
386
Member Avatar for elderp

Here is my code I need help with: [code] mysql_connect[B]($host,$username,$password);[/B] [B]@[/B]mysql_select_db[B]($database)[/B] [B]or[/B] die[B]([/B] [COLOR=#008000]"Unable to select database"[/COLOR][B]);[/B] [B]$query[/B] [B]=[/B] [COLOR=#008000]"SELECT DISTINCT info647_crse . crsdesc , info647_crse . crsprice FROM info647_emp JOIN info647_reg USING ( empno ) JOIN info647_off USING ( offerno ) JOIN info647_crse USING ( crsno ) WHERE empno …

Member Avatar for elderp
0
141
Member Avatar for niceliang84

[code=cplusplus] input.open("a.dat"); if (input.fail()) { cout<<"Unable to open a file \n"; exit(1); }//end if while(input>>alp>>index) {//write to Usecase usecase Alpha[a].setkeyword(keyword); Alpha[a].setindex2(index); a++; }//end while input.close(); cout<<"Please Insert The keyword:"; int position,py; char keyPrompt[100]; int i=0; char c; cin>>keyPrompt; for(py=0; py<a; py++) { if(strcmp(keyPrompt[0],Alpha[py].getalphabet())==0) { position=py; break; } //end if if(py==(a-1)) …

Member Avatar for WaltP
0
152
Member Avatar for jorritgoddijn

Hi i got many files which look like this: relation: xxxxxx birthday: xxxxxx age: xxxxxx livingsituation: xxxxxx place: xxxxxx school: xxxxxxx job: xxxxxxx but i also got other files which look like this: relation: xxxxxx age: xxxxxx livingsituation: xxxxxx place: xxxxxx job: xxxxxxx in which xxxxxx is variable My problem …

Member Avatar for thekashyap
0
76
Member Avatar for ice_tea_lemon

Hey all, Erm given the problem Write a program that will read in a line of text and output the number of words in the line and the number of occurrences of each letter. Define a word to be any string of letters that is delimited at each end by …

Member Avatar for WaltP
0
191
Member Avatar for tomhughes

Hi again. I've been tackling another tutorial which isn't working fully, basically it lists records in a table and an insert link sends the data to a text field which can then be modified. The data is displayed fine but when selected the form does not recieve the information. Its …

Member Avatar for elderp
0
120
Member Avatar for flageolet

I would like my program to execute some code using random variables. Whether this happens is dependant of three conditions: 1) a variable (first) should be bigger than an other (second) 2) a variable (third) should be equal to an other (fourth) 3) it should check these thing maximum 5 …

Member Avatar for WaltP
0
120
Member Avatar for hbk619

i'm wrting a basic C program which the user "talks" to the program, you know the sort. well my main menu looks like this: [code] int main() { char name[50]; char mood; printf("hey there, .. whats your name?\n"); gets(name); printf("%s is it? Well how are you today?\n a.Good\n b.Ok\n c.Bad\n", …

Member Avatar for hbk619
0
206
Member Avatar for roby4eldiablo

Hi all, i'm making a client-server concurrent in C. the client send me 2 binary number and an operator. I'll must send him the result and if there's overflow, underflow. i have made all the initial part of setting the server, children pool and so on. i receive 2 binary …

Member Avatar for jwenting
0
100
Member Avatar for Sacky

I'm trying to compile some rather trivial code in C++ and i keep getting "Warning: [FUNCTION] was declared deprecated" Now this is on some of the more useful functions such as: sprintf strtok why is this? Here is a sample of my code if you are interested: [CODE]if(IsChatting()){ char chat[256]; …

Member Avatar for Narue
0
501
Member Avatar for w_3rabi

hi guys i've this problem with a page having [code]copy()[/code] to copy a file from a website well it works on apche and winxp but when i put on the server (running win2000 and IIS)the page does not load i anyone hav an idea wht the heck is the problem

Member Avatar for vssp
0
99
Member Avatar for michael123

I have a question about how to manipulate php string. For example, I have a text string: $text=" ---<updated:12/20/06>--- this is 2nd entry ---<updated:12/19/06>--- this is 1st entry "; Now if I want to remove "---<updated:XX/XX/XX>---" and only display: this is 2nd entry this is 1st entry how can I …

Member Avatar for vssp
0
104
Member Avatar for dballers

sorry i'm newbie in here....i have a problem in C++..and this is the first time i did the programming codes, so that is so confusing for me...anyone can help me to solved this problem? [quote]The value e^x can be approximated by the sum 1 + x + x2/2! + x3/3! …

Member Avatar for dballers
0
106
Member Avatar for hbk619

ok, i don't know anything of java and somehow managed to DL NetBeans the sun program that creates Java apps... apprently.. (wasn't what i intended to DL but hey :mrgreen: ) A friend wants a card game made, so i searched these forums and found [URL]http://www.daniweb.com/techtalkforums/showthread.php?t=68640&highlight=card+game[/URL] i took the coding …

Member Avatar for hbk619
0
145
Member Avatar for JoeMDOH

On Page One of my application, I have a dropdown list that populated by a SQL query. The list displays the "Text" of the items on the list, but the values (that will be passed are the indexes from the database table) . The user can select multiple items from …

Member Avatar for rgtaylor
0
171
Member Avatar for AikoYamamato

Basically I'm trying to take a Template String and store it in a variable for later use. I'm new with Python and programming languages in general so I'm finding difficulty in doing this. This is the code I'm using to generate the string: [code]from string import Template s = Template('$who …

Member Avatar for AikoYamamato
0
181
Member Avatar for fonzali

hi all , I like to write a program which I input the dates and amounts of say 10 checks , and print out the total amount of checks and number of days thet are apart from each other on another entry widget . the code I have done sofar …

Member Avatar for fonzali
0
235
Member Avatar for whoknows101
Member Avatar for Ancient Dragon
0
76
Member Avatar for ally1002

[COLOR=#941edf] [/COLOR][COLOR=#941edf]Hello, im new. And I'm kinda stumped. We were given an exercise to do in which the user enters a number in roman numerals and the program converts it to decimal numbers. I have no problem convert if the number given is in the right order from the largest …

Member Avatar for ally1002
0
86
Member Avatar for Marks256

How would onw send a message to another program? I googled it, but it came up with stuipd text messaging. I want to send a false message to another program. Something like sending Windows Media player the "Play" message, or the "stop" message, etc. (yes, this is for vb.net... :D)

Member Avatar for Marks256
0
70
Member Avatar for spankyg

Any help would be greatly appreciated. Does not recognize cat's game also goes into infinate loop when you try to use the same box twice? I have spent hours trying to figure it out. I know it something simple. Any ideas? [code=cplusplus] //Board Display Class - Tic-Tac-Toe Program #include <iostream> …

Member Avatar for iamthwee
0
369
Member Avatar for kishore5001

Hi I am new to Perl scripting I want to know , how the .pm extension files differ from the .pl files that are perl scripts . And what are the .pm files used in the perl files , are they just the subrotines that are used in the .pl …

Member Avatar for Mushy-pea
0
172
Member Avatar for jnabeel

[COLOR=#444444]write a program which take a string give it permutations and combination should not repeat any letter [code=c] [/COLOR] [COLOR=#444444]#include<conio.h> #include<stdio.h> #include<iostream.h> #include<stdlib.H> void main(void) { clrscr(); char a[3] //cout<<"ent int "<<endl; > //cin<<a; atoi(a) for(a=1;a<=3;a++) { for(b=1;b<=3;b++) { for(c=1;c<=3;c++) { cout<<a<<b<<c<<endl; } } } getch(); [/COLOR] [COLOR=#444444]} [/code] [/COLOR] …

Member Avatar for jnabeel
0
77
Member Avatar for mzd12111

Hi there Guys i've learned J2SE (standard) version of java nad i enjoy it a lot and i lately wanna to learn Mobile Programming (J2ME) , is this King of programming alike to J2SE , help me if you can , i'll scratch Yours later:p

Member Avatar for Colin Mac
0
106
Member Avatar for BiGPrO

[B]I need help with this please. Suppose we have a sequential file that contains 50,000 records, and 5 milliseconds are required to interrogate an entry. How long should we expect to wait when retrieving a record from the middle of the file? Could someone please help me with this question? …

Member Avatar for iamthwee
0
157
Member Avatar for Romillywinter

:eek: hi, Im new here, anyway i'm trying to work out how to get the smallest number from the user's input of four numbers, n1,n2,n3, and n4.. im a novice @ this so i'll copy the section of the program here and you can see whats going wrong with it..i …

Member Avatar for Romillywinter
0
88
Member Avatar for jnabeel

[code=c] #include<stdio.h> #include<conio.h> #include<iostream.h> void main(void) { clrscr(); int nr,nc,i,j,s; int mat1[10][10],mat2[10][10],mat3[10][10]; cout<<"Enter The Number Of Rows"; cin>>nr; cout<<"Enter The Number Of Column"; cin>>nc; for(i=0;i<nr;i++) { for(j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat1[i][j]; } } cout<<"matrix 2"; for( i=0;i<nr;i++) { for( j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat2[i][j]; …

Member Avatar for jnabeel
0
132
Member Avatar for linux

Before I start, is Borland C++ free? Or do you have to pay money for it? Second, I found a Borland C++ 4.5.2 CD in my dad's old computer bag. If I install it on XP, will it have any compatibility errors?

Member Avatar for jwenting
0
206
Member Avatar for jnabeel

wtie a program which take as tring and arrange in alphabetic order [code=c] #include<stdio.h> #include<conio.h> #include<iostream.h> void main (void) { clrscr(); char b[7]={98,120,97,113,122,121,101},temp=0; while (!(b[0]<b[1]&&b[1]<b[2]&&b[2]<b[3]&&b[3]<b[4]&&b[4]<b[5]&&b[5]<b[6]&&b[6]<b[7])) { if (b[0]>b[1]) { temp=b[0]; b[0]=b[1]; b[1]=temp; } if (b[1]>b[2]) { temp=b[1]; b[1]=b[2]; b[2]=temp; } if (b[2]>b[3]) { temp=b[2]; b[2]=b[3]; b[3]=temp; } if (b[3]>b[4]) { …

Member Avatar for jnabeel
0
295
Member Avatar for dami06

Hi, I am trying to understand MySQL as i am new to this and i have a few queries I am having problems with and I was wondering if anyone can help me with it.. How would you solve this problem using the Select, from, where etc commands. For example …

Member Avatar for dami06
0
145
Member Avatar for Rocksoft

Hi, I have used C# in vs 2003, in my application i have to read text file, pick data from text file and insert into database, but the text file have some garbage value (garbage value "Ú" ) , so i should replcace this garbage value to single space, i …

Member Avatar for Rocksoft
0
214
Member Avatar for keatsey-9

hi, im am wondering if the is a way to make a 2D array of variable length. I have tried making a variable and assigning it a value and then used that variable to define the size of the array, but i cannot seem to get that to work. Is …

Member Avatar for Ancient Dragon
0
116
Member Avatar for amithasija

require 'action_mailer' ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "address", :port => 25, :domain => "domain.com", :user_name => "myid@domain.com", :password => "password", :authentication => :login } ActionMailer::Base.perform_deliveries = true ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.default_charset = "utf-8" i have used the above code to send a mail in /config/enviourment.rb and its …

0
118

The End.