199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for em_i

[code] #include <iostream.h> void prime_num(int num,int cut); void center_list(int primes[],int len, int c,int n); void main() { int N,C; cin>>N>>C; while(N>0) { prime_num(N,C); cin>>N>>C; } } void prime_num( int num,int cut) { int prime_list[169],k=0,i; bool isPrime=true; for(i=1;i<169;i++) { prime_list[i]=0; } for ( i = 1; i <= num; i++) { …

Member Avatar for em_i
1
131
Member Avatar for laseredd

Hello, I recently finished a tutorial on C++ and I have written a small program. Could you please take a look at my code and give me feedback on it? It's a program that will ask you for two values and then add them together. Please be nice, since it's …

Member Avatar for SpS
1
127
Member Avatar for 1qaz2wsx7

Hi :) How to make a package from the project ? How to make from it a package so i can install it on diffrent compuer ? Im using visual c# 2005 express edition. Thanks.

Member Avatar for Hamrick
1
144
Member Avatar for trl10

Hi Everyone, I have to read data from a file into an array. I have that part figured out. I can't get my function to work. I have to write a sumArray, avgSales, highSales, and lowSales. Here is what I got so far. Could someone please help me with one …

Member Avatar for trl10
1
119
Member Avatar for agrothe

I've revived an old java project I did in college. Basic chat type program like ICQ which stores offline messages and users in a database etc, etc. I've recently switched the database from Access to MySQL and am considering some other alterations. I've been reading a bit on RMI. I …

Member Avatar for agrothe
1
108
Member Avatar for ShawnCplus

Most likely you've seen a flash MP3 player or two while searching the web but I have a favorite. This is the [URL="http://www.jeroenwijering.com/?item=JW_MP3_Player"]JW MP3 Player[/URL], mainly because it has external JavaScript functions that can be used to access data about the player dynamically. I've written a few things for it …

Member Avatar for ~s.o.s~
1
463
Member Avatar for Pmaster

Hi all, Does Visual basic net support inline c or c++ code and if so what keyword method, etc. ,do I use to do this. Thanks in Advance.

Member Avatar for cwood
1
168
Member Avatar for laoli

Can VB6 only link to access97 but not work with accessXP? and can i use vb6 in windowsXP?

Member Avatar for jireh
1
180
Member Avatar for shadrakni

i just signup to ask you to show me the basic and advance script for creating a online game startup bot

Member Avatar for ~s.o.s~
1
360
Member Avatar for kodiak

hi, i need help with the system() function. I need to open up a command line instance, change directory to a certain file, and open a file there. Problem is, every time call the system() function, it calls up a new command line instance. I need to do as i …

Member Avatar for Bench
1
2K
Member Avatar for minigweek

[B]char *(*c[10])(int **p); [/B]Ok, what does the above mean ? I compiled it fine. But I can't figure what it means :( Also, how to make sense of any such questions ? I know pointers, and have a concept of it. But this one really baffled me ! Can anyone …

Member Avatar for minigweek
1
119
Member Avatar for tralfas

i need to know how to use powers in c++. so if i enter to and then 3 for the power i get 8. this is what i have so far [code]#include <iostream> using namespace std; double power(double,int); int main() { double n; int p; cout << "Enter a number …

Member Avatar for krnekhelesh
1
180
Member Avatar for Hamrick

I was playing with a bunch of new things today and came up with this. Did I do anything wrong? [code=c++] /* binary class manipulator Print values or strings as binary by Kimberly Hamrick */ #include <iostream> // for C++ I/O #include <string> // for C++ strings using namespace std; …

Member Avatar for Hamrick
1
208
Member Avatar for monriz

Hi there I want to display information regarding product with product pictures. information is saved in sql server and images are save in harddrive director Images/Pc100 where Pc100 is product code and image name in directory. can any one help me how to do in datarepeater/ or gridview. Senerio: when …

Member Avatar for ProgrammersTalk
1
76
Member Avatar for Ruch

[B]hello all please help me out,I have designed a database in access having two fields(1.Regno 2.Smartid).I hav also kept some dummy values in RegNo,But the Smartid is empty. Now what code should I write to retrive the RegNo for which the Smartid is empty. I hav used only these three …

Member Avatar for AV Manoharan
1
311
Member Avatar for fredzik

Hello wall, Is there any way to be rid of the red Tk in the upper left hand corner? I remember reading somewhere that you can replace it with another icon, but can you completely remove it, leaving nothing but a blank space? Or can one replace it with: [code=Python]root.title("Any …

Member Avatar for fredzik
1
137
Member Avatar for Dr. G

Hello I just joined Dani and hope that I'm doing the right thing. I've never participated in a chat room, so help me if I go astray. I am looking for someone to give me some information on whether or not if there is an off the shelf software product …

Member Avatar for christina>you
1
97
Member Avatar for devat
Member Avatar for sportbear

I'm just trying to make a four-player card dealing game! But my problem is that my deck is eternal! I wan't it to deal 52 cards. So 13 card per person! The name of my persons are JLabel1,2,3,4! Can someone help me out! I'm working with Blue J and I …

Member Avatar for iamthwee
1
145
Member Avatar for applegrew

(I have 2 queries) I have made a html parser but the memory leaks, as it seems from the message below; is killing me. I am getting this message from gdb debugger (cygwin build). Heap block at 003D2CA0 modified at 003D2CB3 past requested size of b Also now not all …

Member Avatar for applegrew
1
1K
Member Avatar for lineman60

so when i run this in python interpiter it works [CODE] >>> import os >>> b= os.path.getsize("/path/isa_005.mp3") >>> b 2071611L >>> [/CODE] but when i run it in a script [CODE] b= os.path.getsize("/path/isa_005.mp3") FILE.writelines(b) [/CODE] i get an error. any one know how i can get it to print the …

Member Avatar for mawe
1
560
Member Avatar for ndeniche

i've gone through some threads from people asking for help that have posts from these users saying things such as [quote]still the program doesn't do what i want it to do[/quote]This is why i would like to say to all users: [B]When we post solutions to your questions, most of …

Member Avatar for nkhosinathie
1
288
Member Avatar for jaeSun

im compiling a basic sorting algorithm that utilizies POSIX threads (pthreads) .... everything was compiling fine, until i put the thread implementation in .... all of a sudden, it gives me this: [code]-bash-2.05b$ gcc project4a.c -lpthreads project4a.c: In function `main': project4a.c:32: subscripted value is neither array nor pointer project4a.c:33: subscripted …

Member Avatar for ~s.o.s~
1
1K
Member Avatar for jenymaru08

Elow, I'm new member of this forum and also new in C++.I'm just start to learn it I need help.....i want to write a program that will ask the use an integer number and output the word equivalent ofthe input(1000-3000)limit inclusive example input:1525 output: one thousand five hundred twenty-five i …

Member Avatar for ndeniche
1
131
Member Avatar for chewbacca810

i having been programming for 10+ years now, so I always try to adhere to good programming practices (variable naming, spacing, etc). Yet, almost every snippet of code for JS or PHP that you can pull up goes against those practices. even when writing JS or PHP, where var type …

Member Avatar for rgtaylor
1
363
Member Avatar for -_00_-

I cannot figure out why my program gets the wrong output but I am assuming it has something to do with the array or the switch statement. Can someone guide me in the right direction? I am at a point where I am making no progress right now and now …

Member Avatar for -_00_-
1
121
Member Avatar for xexex

"Write a program that has an array of at least 20 integers. It should call a function that uses the linear search algoritm to locate one of the values. The function should keep a count of the number of comparisons it makes until it finds the value. The program then …

Member Avatar for flexeblesteel
1
292
Member Avatar for Stivi

Hi, is there some way how can I pause code execution for a specified time? For example: 1. Make something 2. 3 seconds pause (wait to complete previous tasks) 3. Continue Thanx, Stivi

Member Avatar for ali_legend5
1
160
Member Avatar for Duki

hey guys, could someone explain why you include string::size_type or string::npos? What do these do?

Member Avatar for Rashakil Fol
1
13K
Member Avatar for hbk619

I've posted my C code below for a card game (yep, i'm still on it). Now the neg() function is called from the turn() function. so using return; sends it back there, but i want it to go back to the start of the main function (basicaly start again). As …

Member Avatar for iamthwee
1
2K
Member Avatar for pooja_singh

hi!!! this is pooja and i need some help desperately.... i have been told to submit my project in 15 days on airline reservation ..using graphics,filemanipulation,friend function,inheritance and all such features.... prob ic dat file manipulation is yet not taught and inheritance is still too new ..never d less i …

Member Avatar for WaltP
1
316
Member Avatar for jan1024188

Hello, Id like to know how to merge two files: icon.ico and file.exe thanks in advance, Jan

Member Avatar for jan1024188
1
118
Member Avatar for animesh
Member Avatar for crazylunatic
1
384
Member Avatar for mattyd

Hello: I am a programmer. I work professionally primarily in C, C++. Most personal programming projects I do is in either C++ or Python. I am studying Java and Ruby currently. My quetion is: How valid do you find Assembly language in a modern sense, professionally or otherwise? I ask …

Member Avatar for bootstrap
1
261
Member Avatar for MattTobin

hello again, I've run into a problem in overloading << and >>. Within the definition when compiling its saying that 'real' and 'imaginary' are undeclared, these errors are in lines 45(real), 46(imaginary) and 57(both). Whats wrong here? And if you could please let me know how to correct this. Heres …

Member Avatar for MattTobin
1
74
Member Avatar for saqib

hello guys . the code is doin well enter sorted integers and num to be searched the problem is in the last if condition [CODE] #include<iostream.h> #include<conio.h> #define siz 10 void main() { int arra[siz]={0}; int mid,beg=1,end=siz,loca=0,num; clrscr(); cout<<"Please Enter The Elements Of Array\n"; for(loca=0;loca<siz;loca++) { cin>>arra[loca]; } cout<<"Please enter …

Member Avatar for saqib
1
119
Member Avatar for ziofu

Hi! I'm new here. I'm reading a book about C++ so I'm quite new to the language. An exercise asks to write a simple "Turtle Graphics" program. This program should be able to simulates very simple graphics thanks to the following commands: Command Meaning 1 - Pen up 2 - …

Member Avatar for ziofu
1
115
Member Avatar for swati_soni

i have to make a software on leave management system, using jsp and oracle. i have done the requirement spec. i know core java, but have never worked with jsp or tomcat..i have the jcreator editor. tell me how to run jsp file. and how to install tomcat. thr r …

Member Avatar for jwenting
1
464
Member Avatar for youngone

"Develop a program that can be used to calculate the number of days between any two days from 1/1/1900 through 12/31/2099 The main program will call the same function twice- once for each date and have an integer returned to it each time. The function will prompt for a year, …

Member Avatar for WaltP
1
128
Member Avatar for Clinton Portis

I am going through some book assignments.. and I am running into some terminology that doesn't make sense to me.. [quote] Impelement this class... Class Cis Float Cisfloat a("325.12315"); a+b a * b [b]14 (exp # bits) 113 (sigment # bits)[/b] 10000........0 bias[/quote] what does the author mean by, "exp …

Member Avatar for Salem
1
132
Member Avatar for dahlia_06

There are three main type of methods in C++ I read somewhere but I forgot where exactly and in which article did I read that. But it is something like Access methods, Modify methods and the third one.. I think it is managerial method. But not really sure. Can any …

Member Avatar for ~s.o.s~
1
542
Member Avatar for developer4321

Hey. I kindof posted tihs before but it didnt have a good title. But, I had to implement the functions of a Hash Table template... I wasn't sure exactly how to do it, but I figured out a way to get it to work. I'm not positive if I did …

Member Avatar for thekashyap
1
1K
Member Avatar for livingsword

i have tried to create an applet to just play sound, no buttons or controls. The sound should start playing as soon as the applet starts. But the sound doesnt come. There r no compile-time or run-time error, i've even created the correct policy for Audio Permissions but still no …

Member Avatar for peter_budo
1
124
Member Avatar for vasudha k

i have a small problem in the jsp code i have written "to send the data from form to database". The table in the database has a primary key field whose values must be generated automatically. so, i have created a sequence named t_seq and have written it like this: …

Member Avatar for vasudha k
1
111
Member Avatar for tinie

I encounter problems in inserting elements in a 2d vector. For example I want to insert 99 in v[2][5], how would I do it? What I have is this code (example given by Narue in [URL]http://www.daniweb.com/techtalkforums/thread70093.html[/URL]) [code= c++] #include <iostream> #include <iomanip> #include <vector> int main() { std::vector< std::vector<int> > …

Member Avatar for tinie
1
5K
Member Avatar for loslos

[code]#include <iostream> #include <fstream> #include <cctype> using std::fstream; using namespace std; int count[26]; int main(int argc, char *argv[]) { char ch; ifstream infile("c:\\a.txt") ; if ( !infile ) { cerr << "File could not be opened" << endl; exit( 1 ); } int i; for(i = 0; i <26; i++) …

Member Avatar for loslos
1
115
Member Avatar for freesoft_2000

Hi everyone, I am trying to learn pascal. The thing is it seems very hard to find books on pascal for beginners especially free ebooks. I tried googling but could not find any. My question is basically does anyone have any good free ebooks on pascal for download. If you …

Member Avatar for radu84
1
312
Member Avatar for murschech

In using "cin" for getting input I have about a 99% success rate. In the remaining 1% of cases the program does not pause for input. What causes this and how does one fix it? In ancient times when we programmed in C rather than C++ the same problem occurred …

Member Avatar for Ravalon
1
160
Member Avatar for ra18279

How to open a link in a pdf as a new window rather than in the same window. Iam using ItextSarp for creating PDFs. The proble is that i have a link inside the PDF. But when i click the link, it opens in the same window, i want to …

Member Avatar for ra18279
1
304
Member Avatar for m0om0o85

hi.. the code below are in working condition.. means can be compiled & run.. when drag the scrollbar, the "Welcome To Java" string message will be move left, right or up, down depend on which scrollbar u drag.. just wanna ask if the "Welcome To Java" text be changed to …

Member Avatar for m0om0o85
1
500

The End.