132,726 Archived Topics

Remove Filter
Member Avatar for
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 …

Software Development shell-scripting
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 …

Software Development c++
Member Avatar for WaltP
0
191
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 …

Software Development c
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", …

Software Development c
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 …

Software Development c client-server
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]; …

Software Development c++ visual-studio
Member Avatar for Narue
0
501
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! …

Software Development c++
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 …

Software Development java java-netbeans
Member Avatar for hbk619
0
145
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 …

Software Development python
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 …

Software Development python tkinter
Member Avatar for fonzali
0
235
Member Avatar for whoknows101

Is there anyway to put or insert a picture in c++ code?

Software Development c++
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 …

Software Development java
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)

Software Development vb.net
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> …

Software Development c++
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 …

Software Development perl
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] …

Software Development c++
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

Software Development java
Member Avatar for Colin Mac
0
106
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 …

Software Development pascal
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]; …

Software Development c++
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?

Software Development c++
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]) { …

Software Development c++
Member Avatar for jnabeel
0
295
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 …

Software Development c# file-stream file-system
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 …

Software Development c++
Member Avatar for Ancient Dragon
0
116
Member Avatar for mzd12111

hi Guys this is my problem : a) what should i have to show to Proove that a sort algorithm work well b)what is the order of this algorithm : [code=c] void mySort(int[]A , int n){ int t,i; for (i=1 ; i<=n; i++){ while(A[i] != i){ t = A[i]; A[i] …

Software Development algorithm c++ data-structure
Member Avatar for mzd12111
0
125
Member Avatar for mr.sweetchuck

I'm writing a Java ME app that will access servlets on a tomcat server, (version 5.5) and I'm having a problem. In my client I'm trying to use a HTTP connection to the servlet, like so: [code] if (command == select && currentForm == login) { HttpConnection connection = null; …

Software Development client-server java
0
86
Member Avatar for ankit_the_hawk

I am having a problem in sorting by name. for eg: if given two names Sameer and Sean, I want to print Sameer and not Sean. It needs to check character by character. I have to extend this to a greater no. of names but I need to get the …

Software Development c
Member Avatar for lakshmi.1987
0
264
Member Avatar for rajeshreddy

program to create two threads ,by using them sort two files using merge sort by using one more thread merge them

Software Development c
Member Avatar for Salem
0
69
Member Avatar for winbatch

I'm new to perl (and actually not even really trying to develop this skill - I inherited some code and am trying to enhance it). Basically, I want to get the text between parts of a text string. How do I get the parsed variable to contain "WHATEVER IT IS"? …

Software Development perl regex
Member Avatar for winbatch
0
148
Member Avatar for Suplexx

I'm somewhat new to Python and want to clear a few things up regarding running scripts. Alright, so here's what I want to do: I want to run a script inside of a script, and then have the first "parent" script continue running normally. I have tried using both execfile() …

Software Development first-post python
Member Avatar for vegaseat
0
132
Member Avatar for Smooth_411_2000

How Do I create a login file and use VB 6.0 to open it. I need to code it differnetly so that the cd when burned login file won't be recognized. Can someone help me out thanks

Software Development visual-basic
Member Avatar for Comatose
0
85
Member Avatar for Logi.

Hi, Im having trouble with the piece of code below, i want to have the image change every time you press the button. This code is from a larger project but this is the bit that i cant get to work. Any ideas? [code=python]import Tkinter import random import Image, ImageTk …

Software Development image python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for nottoshabi

It works. I'm having a problem trying to display the greater number to the output. For example what ever number is greater the first or the second it still displays the first number. Couse that is what is coded in the cout. But I dont know what to put in …

Software Development c++
Member Avatar for nottoshabi
0
116
Member Avatar for Marks256

How would one go about generating a set of tones (frequencys) on the sound card? What i mean by this is, how would a person generate tones at the same time? (I.E. 62hz, 100hz, 432hz, and 1000hz at the SAME time?) Thanks.

Software Development vb.net
Member Avatar for Marks256
0
85
Member Avatar for Raven11

Hi, I have been looking all over google for a freaking tutorial on code caving. The problem however, 1,000 results shown are crap (I'm sure everyone's shared the same experience). Anyone know of a published tutorial on the concept? Thanks.

Software Development c google
Member Avatar for jbennet
0
178
Member Avatar for n.aggel

i have the following problem:: i have ofstream object (i call it fout) belonging to a class{it a field of that class}, where should i initialize it... i write the following test-code but it gives me strange compile errors{in visual studio05} FoutTest.h [code=c] #pragma once #include <fstream> #include <string> class …

Software Development c++
Member Avatar for n.aggel
0
191
Member Avatar for livingsword

i got this prime no. code for analysis. and i hav not been able to understand it completely. [code] #include<iostream.h> #include<conio.h> void main() { int x, y, c = 0; clrscr(); cout<<"\nPrime Numbers upto 100 :\n "; for( x = 2; x < 100; x++ ) { if( x % …

Software Development c++ first-post
Member Avatar for livingsword
0
413
Member Avatar for covertx

Hi all, you may have read my post regarding bars and values and stuff, well I've got that bit figured out now but as my programme is expanding, so is the number of records being parsed into it! I'm working out a percentage of 2 groups of people: Number of …

Software Development first-post
Member Avatar for covertx
0
83
Member Avatar for s.j.macleod

{ srand((unsigned)time(0)); int random_integer; int lowest=-10, highest=10; int range=(highest-lowest)+1; for(int index=0; index<8; index++){ random_integer = lowest+int(range*rand()/(RAND_MAX + 1.0)); cout << random_integer << endl; } Hi there, I'm just getting back into c++ after a 2 year break. I'm just wondering how I go about using the numbers generated here later …

Software Development c++
Member Avatar for WaltP
0
89
Member Avatar for shivam_ng

I have the following file as the input APPLE 0 118 1 110 1 125 1 135 2 110 3 107 3 115 3 126 ORANGE 0 112 1 119 2 109 2 119 3 112 4 109 4 128 MANGO 0 136 1 143 2 143 3 143 4 …

Software Development apple c file-system
Member Avatar for Ancient Dragon
0
120
Member Avatar for arfmal

Can somebody show me how to search and count for the string. If i have a set of data,i.e. "0012", "0034", "0055"' "0099" "0013", "0032", "0012","0099" let's say i chose the 1st string(at the 1st line),"0012", and based on this string, i would like to [B][U]search and count[/U][/B] that string …

Software Development c
Member Avatar for WaltP
0
116
Member Avatar for musicmancanora4

Hi just wondering how i can convert ascii to binary then into hex then print it to the screen. The user will input 5 chars then do the conversion and print

Software Development c
Member Avatar for Lerner
0
139
Member Avatar for erode

hi, i am very new to pointer concepts.how to declare the pointer and how to use it

Software Development c
Member Avatar for erode
0
94
Member Avatar for Valadair

Title should read "search a string for ',' " Afternoon folks. I visit this site a bit, especially when searching google for help on a particular problem. This is my first post, so let me get right to the point. I won't go into the gory details of the program, …

Software Development c++ first-post google
Member Avatar for Valadair
0
109
Member Avatar for spankyg

Can anyone help me with this code? Most of it was written by me for homework. The switch portion was written by my instructor, and it is just pain confusing to me! I beleive I can write a TTT program from scratch (Won't be accepted) easier than cobbling this together. …

Software Development c++ first-post user-interface
Member Avatar for John A
0
145
Member Avatar for boujibabe

I need a function that will populate a multidimensional array with a fixed amount of elements. So that only some of the locations contain a distinguishing number for identification.

Software Development c
Member Avatar for Lazaro Claiborn
0
275
Member Avatar for dmm2020

I hit a stumbling block. I am working on a ancestral research type database and I want to link different records together. Here is my scenario so far: datPrimaryRS is an adoc that is pointing to the Person table. datNameSourceRS is also pointing to the Person Table. This is used …

Software Development visual-basic
Member Avatar for overrideme
0
305
Member Avatar for brale

How to initialise rs232 serial port and send a byte in assembler language?

Software Development assembly
Member Avatar for harry5341
0
71
Member Avatar for sakura_fujin

need help! what's wrong with my code? it compiles but outputs nothing. it requires the user to create a "word.txt" text file for it to start counting the frequency of occurrence of words. i'm a newbie here in daniweb and a novice in C++ programming. i really appreciate any help. …

Software Development c++ ios
Member Avatar for Lerner
0
221
Member Avatar for covertx

Hey all, I've recently started programming in BF as my signature might give away... I just want to know if any of you have ever used it, and if you've ever been able to make something more than just a trivial ASCII based programme! Here's an example of a BF …

Software Development
Member Avatar for linux
0
125
Member Avatar for Tales

[I]I need to do something like Play MIDI voice (in the C++ code Snippets page 5), actually, that's exactly what I need, but I would like to make it work in Visual C++ 2005... can someone help me with the configuration steps to make the project work? TYVM [/I]

Software Development c++
Member Avatar for Tales
0
160

The End.