132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
/**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 | |
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 | |
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 … | |
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 … | |
[i]post deleted-- we don't do homework for you![/i] Software Development c first-post | |
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++ | |
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 | |
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 | |
#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++ | |
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 … | |
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 | |
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 | |
![]() | 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++ |
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++ | |
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 | |
[FONT=Courier New]I want to toggle caps, num or scroll lock using c++ program on a unix machine. Can some one help? | |
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 | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
how to make my frame as full screen. Is there any API that implements this in java. | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
i am unable to compile and run network based applications like client/server apps. what should i do now? Software Development c client-server | |
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 | |
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++ | |
![]() | [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 |
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 … | |
Which funcn of java do iuse if i want to communicate with a certain hardware and confirm its presence or absence:?::?::?: Software Development java | |
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 | |
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. … | |
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++ | |
consider the following statement & tell me why it i undetermined or ambigious int i=9; i=i++; PLS EXPLAIN ME FULLY Software Development c | |
Hi i am new programer in c++ and want somebody to show me the first step, Thank you all :cheesy: Software Development c++ | |
[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++ | |
hi. can someone please explain what are message passing interfaces and how i can code them? regards, naveen Software Development c | |
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++ | |
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++ | |
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 |
The End.