132,726 Archived Topics

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

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

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

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

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

Software Development c first-post ios
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

Software Development c
Member Avatar for jan1024188
1
118
Member Avatar for animesh

How to use Data base connectivity in c++, files are not very useful..

Software Development c++
Member Avatar for crazylunatic
1
383
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 …

Software Development assembly engineering oop python ruby
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 …

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

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

Software Development c++ first-post
Member Avatar for ziofu
1
115
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, …

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

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

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

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

Software Development audio java
Member Avatar for peter_budo
1
124
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> > …

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

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

Software Development first-post ide pascal
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 …

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

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

Software Development image java
Member Avatar for m0om0o85
1
500
Member Avatar for waqar-khan-777

I have a problem in java coding: Please could you have a look at it, the problem is with addcopyofbook to produce a stock number. For example if you get the list of books it produces a unique stock code for every book, even if they are teh same book, …

Software Development java
Member Avatar for jwenting
1
106
Member Avatar for beatle555

I Want A Program For Cryptography Rsa And Md5 Algorithms Pls Help Me!!

Software Development c
Member Avatar for ~s.o.s~
1
254
Member Avatar for Haktivex

Hello folks :) Allow me to introduce myself. I am Haktivex, a programmer for a tool known as TibiCAM, used to record movies for an online game known as Tibia. Now heres the issue. For a long time we supported all operating systems, Windows 98, ME, etc. However recently these …

Software Development c++ ide operating-system
Member Avatar for Haktivex
1
191
Member Avatar for LSPUWILLC

This year I started learning Java in class and now we are making a Vending Machne code... I compleated the task, but now I want to add another buton, but I get stuck a a sertain point... Here is my original code with the second button added: import java.awt.*; import …

Software Development java java-swing
Member Avatar for LSPUWILLC
1
692
Member Avatar for simmyhp

Hi, I have written the code of checking already, but I have got two problems here. 1. I don't know why when I enter the number in, when it prints out the number, it becomes smilies or some kind of maths code. Please tell me what I have done wrongly …

Software Development c puzzle
Member Avatar for WaltP
1
103
Member Avatar for Mouche

I'm working on a text adventure game just for fun. I am not planning to complete it, but I decided to try it just to learn classes. Seeing the text game in another post using functions, I realize that that is a very nice way to make a simple game, …

Software Development first-post python
Member Avatar for jrcagle
1
3K
Member Avatar for TJW
Member Avatar for oRg

Hello, I'm a college student taking a programming class and I'm trying to write a program for this class. I've done most of the work already I just need some hints or a push in the right direction as far as my client-code is concerned. Here's the code for the …

Software Development c++ first-post open-source
Member Avatar for oRg
1
753
Member Avatar for tlly

Hi everyone..i'm new c++ programming and i would like to know if its posible to convert a string to a vector array...(Eg string s = "Hello everyone" array a[1]='H', a[2]='e'....)I need a vector array because i do not know what my string will be...it will change everytime...If it is posible …

Software Development c++
Member Avatar for ~s.o.s~
1
363
Member Avatar for jc23

hi..i'm facing some problem to draw morh's circle by using opengl in Borland C++.. i'm able to draw 3 circles which is 2 small circle "in" 1 big circle..but may i know tat can i insert a formula into openGL to find out the radius for these 3 circle automatically? …

Software Development c++ opengl
Member Avatar for jc23
1
622
Member Avatar for TravisC555

[code]//Program adds, subtracts, multiplies, or divides any two numbers that the user enters. #include <iostream> using std::cout; using std::cin; using std::endl; int main() { char operation = ' '; int num1 = 0; int num2 = 0; int answer = 0; cout <<"Enter A (add) or S (subtract) or M …

Software Development c++
Member Avatar for TravisC555
1
181
Member Avatar for meriem

Hi everyone, Can You please help me with the [B]Round-Robin scheduler [/B] [B]algorithm (C language)[/B] My program will use as a Datastructure a doubly linked list to hold processes( I will represent my process as: Id(char*), Priority(int) ( a process with priority n will have n CPU time slots) and …

Software Development algorithm c++ linked-list
Member Avatar for ~s.o.s~
1
354
Member Avatar for hoosier23

any idea what i am doing wrong? [quote] Error 3 error LNK2001: unresolved external symbol "private: static float SavingsAccount::annualInterestRate" (?annualInterestRate@SavingsAccount@@0MA) Savings.obj [/quote] SavingsAccount.h [code] #ifndef SAVINGSACCOUNT1_H #define SAVINGSACCOUNT1_H using namespace std; class SavingsAccount { private: static float annualInterestRate; float savingsBalance; public: SavingsAccount() { annualInterestRate = 0.03; savingsBalance= 2000; } float …

Software Development c++
Member Avatar for Salem
1
189
Member Avatar for bajanstar

hi, can someone help me with writing down a recursive algorithm for traversing a binary tree in reverse-postorder that also returns the rank of each node? So far i have (and i know thatit isnt much but this problem giving me issues). [code] postorder: save current posistion if(lchild) move to …

Software Development algorithm c++
Member Avatar for Rashakil Fol
1
96
Member Avatar for CurtisBridges

Hi everyone. Iam a beginning C++ student having trouble with a simple one column char. aray. what I'm trying to do is : display the value of the seventh element of chaacter array f. Wich shoud b 6 if a=0. Please help. Below is my code, so far: [[COLOR=#0000ff] #include[/COLOR][COLOR=#000000] …

Software Development c++
Member Avatar for ~s.o.s~
1
1K
Member Avatar for ToySoldier

Been working on this project for last 2 nights. Cant get rid of this error message on my [B]last method PAIR::area() [/B]. It's defined at the bottom of my program. Everything else compiles... builds... executes just fine. Rusty on the basics and trying to figure out methods.... here is my …

Software Development c++
Member Avatar for ToySoldier
1
105
Member Avatar for sameer.mastek

I want to call a TCL script from a C++ code. Can anyone give me the suggestion to achieve so!

Software Development c++
Member Avatar for Salem
1
217
Member Avatar for jrcagle

Here is the code that burned me today. I'm re-writing my Sudoku solver to make it more "Pythonic" -- it was my first Python project, and the old code looks like translated C :lol: -- anyways, at one point, I need a dictionary to hold the possible locations in a …

Software Development python
Member Avatar for Ene Uran
1
136
Member Avatar for Sashar400

[COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] { [COLOR=#0000ff]char[/COLOR] choice; [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] arraysize=20; [COLOR=#0000ff]int[/COLOR] num[arraysize]; [COLOR=#0000ff]do [/COLOR]{ cout<<"I will give you the Sum,Mean,Var & the Std Dev of any series of numbers?Y/N:"<<endl; cin>>choice; [COLOR=#0000ff]if[/COLOR](choice =='Y'||choice =='y') { cout<<"How many numbers will you enter? (up to 20)?"; cin>>num[arraysize]; [COLOR=#0000ff]for[/COLOR] …

Software Development c++
Member Avatar for rinoa04
1
193
Member Avatar for sameer.mastek

Hi I would like to know how could we communicate between VC++ and TCL. I've tried it using SWIG. that was call for C++ function by TCL. Can a C++ give a call to TCL module. What is the ICE? Is it related to C++ and TCL communication somehow?

Software Development c++
Member Avatar for sameer.mastek
1
404
Member Avatar for seanlo

hi, In recently, I have a mission for porting a source code from Pro*C. And the database is changed from Oracle to Mysql. The part of original source code(Pro*C) is shown below: char i_id_no[13+1]; char accn_name[16+1], account[7+1], b_no[20+1], code_type[1]; int ii; : : EXEC SQL DECLARE cursor_1 CURSOR FOR SELECT …

Software Development api c++ mysql open-source oracle
Member Avatar for seanlo
1
537
Member Avatar for kimw

hi i have a function that opens a file and store the data into a matrix [CODE]void openfile(vector<vector<string> >& data, string path) { ifstream inFile; inFile.open(path); ....[/CODE] this does not work but it works when i eliminate the path as input [CODE]void openfile(vector<vector<string> >& data) { ifstream inFile; inFile.open("C:\file.csv"); ....[/CODE] …

Software Development c
Member Avatar for kimw
1
268
Member Avatar for rxgmoral

about ComboBox problem <<<<<<<Dialog.h>>>>>>>> public: CComboBox Cbx; struct Data { LPCTSTR lpszName; LPCTSTR lpszValue; int ID; }; <<<<<<<Dialog.Cpp>>>>>>> Data d; d.lpszName=_T("Name"); d.lpszValue=_T("Value"); d.ID=1; Cbx.InsertString(0,d.lpszName); Cbx.SetItemDataPtr(0,(void *)d); how to struct data append to ComboBox Control,thank:)

Software Development c
Member Avatar for Ancient Dragon
1
124
Member Avatar for ToySoldier

Hi, Appreciate any help. My code compiles... builds.... executes just fine. Only problem I'm having is... I cant figure out how to get PAIR::big() to simply print out the larger #. When I execute... it displays... the Larger # like I want... but then for some reason it displays the …

Software Development c++ display
Member Avatar for ToySoldier
1
150
Member Avatar for Little E

I have a homework assignment to write a program about mileage. I've been able to get it to work, well except the average doesn't calculate correctly and I haven't been able to verifiy the users input. I'm using Visual C as my compiler. Can someone help me with checking the …

Software Development c
Member Avatar for Little E
1
175
Member Avatar for Roberdin

I'm using Visual Basic 6.0 Learning Edition. Does anyone know how to set an Icon for my program (other than the default)? When I click the '...' and then choose an Icon, it claim's I have 'set an Invalid property value'. Can anyone help with this?

Software Development visual-basic
Member Avatar for WaltP
1
410
Member Avatar for mikeallen

I'm completely new to C++, and my teacher gave us a card game to do for our first assignment. The card game has to deal a hand of five cards and determine whether or not it contains a flush, a pair, a straight, three of a kind, or four of …

Software Development c++
Member Avatar for mikeallen
1
499
Member Avatar for matrimforever

Hi, I'm trying to write a program that computes interest and check fees and then prints a new calculated balance. So far it works okay, but seems like I have a lot of unnecessary work. Can someone help me simplify it down plz? ps: The premium acct has no check …

Software Development c++
Member Avatar for ~s.o.s~
1
122

The End.