132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tahataha

is there a possibility to make animation with cpp is there any documentation for this

Software Development c
Member Avatar for tahataha
0
106
Member Avatar for shalin

Hi all here is small C program main() { int i=2; printf("%d\n",++i * ++i * ++i * ++i); } it gives o/p 480 why..? Thanks for u r reply. shalin

Software Development c
Member Avatar for pursottam tiwar
0
139
Member Avatar for the_one2003a

Hi I made a class that has a public integer pointer and I use this pointer in main like code below: ([I]Just a sample code,I know about memory leaks and other related bugs,just a sample[/I]) #include<iostream.h> class Cat { public: int *Pointer; }; main() { Cat *pCat; pCat=new Cat; pCat->Pointer …

Software Development c++
Member Avatar for the_one2003a
0
137
Member Avatar for michelle13

/**I commented everything out dealing with the word count so it works. The problem is that I am not able to read what the file name is. It does not catch the file name, but it prints out the contents of it when it goes to the catch **/ import …

Software Development java java-swing
Member Avatar for cosi
0
177
Member Avatar for Bill T

I have a stopwatch program and the last of the code has to be a static class can someone help running out of time. I've tried all i know examples aren't helping. Here is the code I've written. I hope someone can help. TY... // import java.io package and utility …

Software Development java
Member Avatar for Bill T
0
140
Member Avatar for ecashwell

I'm trying to get started in ASP.NET, but I just don't understand the errors being returned to me. I'm trying to connect to my MySQL database. I have followed several examples from books and the internet with no success. Could someone look at my code and see if I'm screwing …

Software Development asp.net mysql vb.net
Member Avatar for ecashwell
0
144
Member Avatar for Sukhbir

EXplain me about these function cin.clear(); cin.ignore(); tell me what function i use for flushing a input bufer in c and c++;

Software Development c++
Member Avatar for stg110
0
107
Member Avatar for drdregambit

struct vertex //object in the list { int data ; list <edge*> edges ; }; list <vertex> thenodes ; //user defined function object struct checking : public binary_function <vertex,int,bool> { bool operator()(const vertex &a,int b) { return (a.data == b) ; } }; //the function using the find_if function list …

Software Development c++ microsoft
Member Avatar for glSuccinct
0
165
Member Avatar for RITZY_G

[i]post deleted-- we don't do homework for you![/i]

Software Development c first-post
Member Avatar for alc6379
0
128
Member Avatar for ihvc4

I have the 10 classes car and a member of this class is the integer weight how can i create an aray of the ineger weight with ponters to that member? [B]car[/B]

Software Development c++
Member Avatar for glSuccinct
0
310
Member Avatar for i_me_roo

Hi, This may be a really basic query, but im not really a java expert! In my program, i am drawing rectangles and the colour of the rectangle depends on a number stored in an array, so if the number is 1 then i want to set the colour to …

Software Development java
Member Avatar for cosi
0
125
Member Avatar for tnorton

Using this code: Fees = ovrh + (wr * z); I am getting the following error: error C2440: '=' : cannot convert from 'double' to 'float [6][3]' Fees, ovrhd, wr and z are all declared as float. I believe if I can figure out what the problem is, I will …

Software Development c
Member Avatar for Dave Sinkula
0
333
Member Avatar for edison

#include<iostream.h> #include<math.h> void main() { float x,y; cout<<"Please enter one number "; cin>>x; y=x*x; cout<<"The square of the number you enter is "<<y<<endl; } :eek: Pls help... thx u very much...

Software Development c++
Member Avatar for freesoft_2000
0
155
Member Avatar for ze_viru$

this is my program and i want 2 put it in terms of modules(functions): #include<iostream> #include<string> #include<iomanip> using namespace std; int main() { //initialization phase. string month; int day=0,cones; char choice; double price; //processing phase. while(day <= 31)//day must not be greater than 31. { cout<<"Welcome to The Ze_Viru$ Ice …

Software Development apple c++ ios
Member Avatar for payam
0
151
Member Avatar for srthomso

I have some code which examines an array to see if it contains a particular value: boolean found = false; int []a = new int[100]; populate(a); // populates the array a with a set of random values int valueToFind = 123; // or whatever we want to find while((n < …

Software Development java
Member Avatar for srthomso
0
330
Member Avatar for srthomso

Could anyone give me a hand with my mock exam, i'm on msn - [email]get_jiggy_widit@hotmail.com[/email]. I'm struggling a bit - with some of the simple things really n it's getting on my nerves. Any help would be greatly received. Thanks Steve

Software Development email java
Member Avatar for srthomso
0
136
Member Avatar for kohkohkoh

for a simple program... #include <iostream> using namespace std; int main() {[color=magenta]int x[/color]; cout << "enter password\n"; [color=red]cin >> x[/color]; return 0; } for the pink colour part.. if i want my password to be in integer and alphabets, so what command line should i put? and when i enter …

Software Development c++
Member Avatar for Pikachu
0
142
Member Avatar for Asif_NSU

guys, i have been working on a project, i have been trying to use dxsmithlib (a directx wrapper from codeproject) and win32 CONSOLE application in visual c++ 6. When i try to build the project by specifying "use MFC in a shared DLL" it shows no errors or warnings and …

Software Development c++
Member Avatar for Chainsaw
0
354
Member Avatar for srthomso

code: public static void menu(){ String reply; System.out.println("Make your choice:"); reply = getLineFromUser(); //assume this function works correctly if(reply.equals("play")){ playgame(); } else if(reply.equals("end")){ stopGame(); } menu(); // recursive call. Don't use!!!!! Any ideas? i struggle with while loops at the best of times.

Software Development java
Member Avatar for bvvkrishna
0
149
Member Avatar for mrb260478

[FONT=Courier New]I want to toggle caps, num or scroll lock using c++ program on a unix machine. Can some one help?

Software Development c++ unix
Member Avatar for cosi
0
227
Member Avatar for fang221914

Pls help me regarding with this problem show me a complete program of a Commission or Brokerage Problem what is written below. The amount of money paid to an agent for buying or selling goods C= Commission R= Rate of Commission S= Sales Formulas: C= R * S R= C/S …

Software Development c
Member Avatar for alc6379
0
105
Member Avatar for teritori

hi everyone -In the code below, the line marked by *** is where i read my text field. -The value of the text field is stored into a variable "InputUserName ". -My question is: What do i put in the place of @@@@@ so as to have the same variable …

Software Development java sql
Member Avatar for cosi
0
106
Member Avatar for Dark

Hi, if you don't know me my name is Dark, i need help with my assignment on Java. Could anyone help me. Here is what my project is about. [url]http://www.chevalier.nsw.edu.au/academic/computing/courses/sodad/axes.jpg[/url] :-|

Software Development java
Member Avatar for Dark
0
166
Member Avatar for ellisrn

Hi, I have this monster program. But, mostly I need help in Main and in Derivs. I know some is written in a juvenille form, but I'm not a C++ student! I have defined all these arrays in the Main function and I need to write an "if" statement in …

Software Development algorithm c++ ios
Member Avatar for Dave Sinkula
0
179
Member Avatar for MSUMichelle

I am working in MS Access 2000 and trying to have the computer continue an ID pattern I have. Right now I have a table with a field "Customer Program ID". There are currently 5 of them...CP001, CP002, CP003, CP004 and CP005. When the user selects new record I would …

Software Development visual-basic
Member Avatar for MSUMichelle
0
99
Member Avatar for chock

Hai , i am getting the correct result for the below query rs.Open "SELECT DISTINCT RepTL From PEList WHERE RepFL='" & CriteriaName & "'", Cnn, adOpenStatic, adLockReadOnly, adCmdText but the thing is i need to display the record in the Order by RepId, but when i add RepId in the …

Software Development display visual-basic
Member Avatar for mnemtsas
0
175
Member Avatar for leeegglestone

Im starting to design some software/system for work even though its not in my job description, and learned a little of it at college so thought id speed the process up rather than waiting for the IT monkeys downstairs to get their act together. I will be including a database …

Software Development database-design pdf visual-basic
Member Avatar for mnemtsas
0
104
Member Avatar for srthomso

I've come up with some code to try and reject ages outside the range of 18 to 64, but i cant seem to find my errors or how to fix it. Feel stupid as its probably somethin easy, but i'm just learnin the language, can you help: int age; age …

Software Development java
Member Avatar for srthomso
0
124
Member Avatar for nanosani

how to make my frame as full screen. Is there any API that implements this in java.

Software Development api java
Member Avatar for nanosani
0
149
Member Avatar for srthomso

here's the code: string reply; reply = getLineFromUser(); //assume this function works correctly if(reply == "JAVA"){ System.out.println("OK to continue"); } else { System.out.println("Error - try again!"); } i cant seem to see where i'm going wrong, thus cant get a correct version to work. I need it to keep repeating …

Software Development java
Member Avatar for srthomso
0
138
Member Avatar for paynekiller

I've got a singly linked list, and the following code is supposed to delete all nodes that are ranked as "Trainee", it deletes them all, but if the last node is a "Trainee", it will not delete it, why is that? [code] void LinkedList::removeLowest() { Soldier * ptrDelete; ptrCurrent = …

Software Development c++ linked-list
Member Avatar for Chainsaw
0
134
Member Avatar for RITZY_G

ANY ONE WHO CAN PLEASE HELP........ Design and write a C++ program for the problem given below. Apply the rules of good programming style by making your program modular, and using parameters and local variables in subprograms or functions. Add comments where necessary for each function. Use meaningful variable names. …

Software Development c++
Member Avatar for RITZY_G
0
166
Member Avatar for coolice

Hi ! I am sorry if I posted in a wrong place, but I could not figure it out, where I should. I am urgently looking for a POP3 Server VCL component for Borland C++ Builder. I had checked through all components site, but I could not find one. Is …

Software Development c++
Member Avatar for coolice
0
119
Member Avatar for red_evolve

Greetings. I was just wondering whether this is normal or not:- When I hit the Print button, it takes a while before the printer starts printing. The printer spools for a few minutes before printing. :-|

Software Development printer visual-basic
Member Avatar for red_evolve
0
130
Member Avatar for Naveen

i am unable to compile and run network based applications like client/server apps. what should i do now?

Software Development c client-server
Member Avatar for hivework
0
313
Member Avatar for Mahen

Hi everyone, Some questions in my previous post is still left unanswered. Here it is again: How can i accept decimal numbers from STDIN and perform arithmetic operations on it in C. How can i create a subroutine within a program, that can be called again & again at different …

Software Development c first-post
Member Avatar for Dave Sinkula
0
182
Member Avatar for stg110

I have a code which is near to this one struct first { int data ; list <second> seconds ; }; struct second { int data ; list <first>::iterator vert ; }; how i could get rid of the circular reference problem in c++ note : i must put the …

Software Development c++
Member Avatar for stg110
0
94
Member Avatar for kohkohkoh

[font=Times New Roman][left]here is the question:[/left] [left]Use a two-dimensional array called [/font][b][font=Times New Roman]price [/b][/font][font=Times New Roman]to hold the prices for Proton’s car[/left] [left]regarding to the models and CC as listed below. [/left] [left]--------------------------------------------------------------------------[/left] [left]in 2d array..i could get[/left] [left](for example)[/left] [left]void disp(a[][3]);[/left] [left]int main()[/left] [left]{[/left] [left]num[3][2] = { {1,2},{4,5},{7,8} …

Software Development c
Member Avatar for freesoft_2000
0
134
Member Avatar for Milan

Hi. How can I call common open dialog box in MS Visual C++ 6.0 ? I tried to use getOpenFileName() and CreateFile(). But my function doesn't work. There is tehe body: void FlashProgram::OnButtonPOpen() { // TODO: Add your control notification handler code here OPENFILENAME ofn; // common dialog box structure …

Software Development c++ display
Member Avatar for freesoft_2000
0
250
Member Avatar for smartdetect

Which funcn of java do iuse if i want to communicate with a certain hardware and confirm its presence or absence:?::?::?:

Software Development java
Member Avatar for Iron_Cross
0
106
Member Avatar for x38class

I have a combo box I want to limit user input I have the following code on 'keypress' event dim keyascii as short = asc(e.keychar) dim s as string if keyascii = 45 then exit sub end if ' allow '-' key s=checkalphanumeric(s,"AN") ' My function to check keyascii 's …

Software Development vb.net
Member Avatar for x38class
0
185
Member Avatar for Elektro

hey everyone :confused: i have a new java task comming up and it involves making a game that impliments buttons. for this task i have started to build a golf game but everything i do seems to not work i keep getting stuc. bellow is a copy of my task. …

Software Development image java oop
Member Avatar for nanosani
0
162
Member Avatar for LuSiFeR

Hello, Can someone write few interesing problems for novice c++ programmer? Can't come up with any good ideas :( Thx in Advance :mrgreen:

Software Development c++
Member Avatar for alc6379
0
151
Member Avatar for Sukhbir

consider the following statement & tell me why it i undetermined or ambigious int i=9; i=i++; PLS EXPLAIN ME FULLY

Software Development c
Member Avatar for alc6379
0
115
Member Avatar for taimour

Hi i am new programer in c++ and want somebody to show me the first step, Thank you all :cheesy:

Software Development c++
Member Avatar for Dave Sinkula
0
93
Member Avatar for merlin208

[FONT=Arial]undefined[/FONT] I am newbie to C++ and am trying to teach myself to program. Could someone please explain in very simple language what data validation means and how should I check for it (in relation to input data) before any processing occurs. :-| Merlin208

Software Development c++
Member Avatar for Chainsaw
0
147
Member Avatar for Naveen

hi. can someone please explain what are message passing interfaces and how i can code them? regards, naveen

Software Development c
Member Avatar for Chainsaw
0
160
Member Avatar for andremc

i'm trying to keep track of how many comparisons and swaps my sorting algorithms are making. i know it's probably a variable referencing problem, but i can't seem to get it to work right. it's fine when i run only one of the sorts, but if i run both, moves …

Software Development c++
Member Avatar for andremc
0
1K
Member Avatar for Mr A

I need some help, heh, i have to store a twelve digit number somewhere... as i've understood it nothing like unsigned int or long double or anything won't work :-/ have i missed something? or can anyone point me to anything which i can use to be able to do …

Software Development c++
Member Avatar for The Code Poet
0
231
Member Avatar for zrixter

as title mentioned, i face problem with convert a jumbled text file to unjumbled text file, some of you might not clear what i am saying, well a example will give a clear idea what this all about. jumbled text file contain a few line of number, after unjumbled it, …

Software Development c file-system
Member Avatar for FireNet
0
146

The End.