132,726 Archived Topics
Remove Filter ![]() | |
You can insert a no. at any pt. in this program. here is the code: #include<stdio.h> #include<conio.h> #include<process.h> #include"goto.c" void line(void); void cross(void); int main() { clrscr(); int a[9][9]={8,6,7,5,4,2,3,9,1, 4,3,2,9,1,8,5,7,6, 9,5,1,7,6,3,4,2,8, 5,2,9,6,8,4,7,1,3, 7,4,8,3,5,1,2,6,9, 6,1,3,2,7,9,8,5,4, 1,8,5,4,2,6,9,3,7, 2,9,6,8,3,7,1,4,5, 3,7,4,1,9,5,6,8,2}, b[9][9]= {8,6,' ',' ',' ',' ',' ',9,' ', 4,' ',2,' ',1,' ',5,' ',' … Software Development c | |
Can someone help me determine if 2 stacks are the same? I am fairly new to stacks and need help. My header file is also below. Currently I am getting an error message using "==" and "!=" in my if statement. If someone can help, I will appreciate it! Thanks … | |
I've bene banging my head against a brick wall trying to work out how to do this. I need to be able to read a text file line by line and to read each character of the line. When the character is a space, anything up to that is added … Software Development c++ | |
I have a project with more than one form and I move between them with a button click that hides the current form and shows the one I want. But what is I want to perform some procedure each time the form is shown? I tried this code on my … Software Development vb.net | |
private bool OpenDbConnection(SqlConnection sql_con_obj) { try { SqlConnection.ClearPool(sql_con_obj); SqlConnection.ClearAllPools(); if (sql_con_obj.State == ConnectionState.Closed || sql_con_obj.State == ConnectionState.Broken) { sql_con_obj.ConnectionString = "Data Source=.;Initial Catalog=Practice;User ID=sa;Password=sa"; sql_con_obj.Open(); return true; } else { return false; } } catch (Exception ex) { ShowMessage(ex.Message); } } I get following error on execution: Error 1 '_Default.OpenDbConnection(System.Data.SqlClient.SqlConnection)': … Software Development open-source | |
I'm having Java course and I have to submit the following programs by the coming Wednesday for what I am not skilled enough till now. Please may you code those for me for this time? PART 1 P1. Write a java program to calculate the roots of a quadratic equation … | |
for some reason when i run the program the print method for the array gets called instead of the one for the matrix..but it jus print out "array index out of bound".which is the exemption...the code is attached Software Development c++ | |
When I try to compile this: [code] #define NODES_MAX 100000 extern node_t _nodes[NODES_MAX]; [/code] It gives me this error: ------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------ Compiling... main.cpp c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.h(12) : error C2148: total size of array must not exceed 0x7fffffff bytes Generating Code... … Software Development c c# c++ visual-studio | |
I have made a window that has message boxes, menus and dialogs, but can someone tell me what is wrong with this .rc code? It looks ok for me it gives me this error: [Resource error] syntax error on the line 3, the one that starts with style. [CODE] #include … Software Development c++ | |
![]() | Hi, I've created a class called [B]MyClass[/B] which just contains some data: [CODE]public class MyClass { #region Private Variables private string _ValueA; private string _ValueB; #endregion public MyClass(string ValueA, string ValueB) { _ValueA= ValueA; _ValueB= ValueB; } public string ValueA { get { return _ValueA; } set { _ValueA= value; … Software Development |
Hello guys I want to convert an integer to a hexadecimal string examples lets say i have an integer value 1 i want to convert it to 0001 integer value of 16 => 0010 245 =>00F5 and so on the string must have a length of 4 digits my code … Software Development python | |
Hi, Is this valid in C++?? struct A{...}; class B: public A{...}; Thanks! Software Development c++ | |
/* A Program testing for rational number*/ #include <stdio.h> #include <stdlib.h> typedef struct rational_t { int numer; int denom; } rational_t; int gcd(int a, int b) { /* To reduce the rational number to its lowest form. */ if(b==0) return a; else return gcd(b,a%b); } /* r_init: Creates rational number … Software Development c | |
I want to write a C program to test whether the character is uppercase, lowercase, digit or special symbol. [code=c] void main () { char ch; printf("\n Enter any character from the keyborad"); scanf("%c",&ch); if (ch>=65&&ch<=90) printf(" \n the character is uppercase); if(ch>=91&&ch>=122) printf(" \n the character is lowercase); if(ch>=48&&ch<=57) … | |
hello,i have a database.mdb and i want all the fields of the database to be showed in the datagrid.i have an adodb connection and i do not want to use a flexgrid.how can i do this?[CODE] Private Sub Form_Load() Dim sDate As Date Dim eDate As Date sDate = #6/15/2009 … Software Development visual-basic | |
Hi, when installing VS 2008 C++ application on a pc , does the pc need the .net framework? -Thanks Software Development c++ | |
I want to help me to Write a program which will draw an “X” shape as shown in the figure below. Your program must consist of one class named “Picture”. In your main method you must declare and initialize some String variables which you will later use in a print … Software Development java | |
Okay, I wrote a simple calculator, not in GUI form, but a calculator for simple stuff. So I'm wondering, would this layout be considered OO? I think this is how it works. Now I do know that I didn't use an object to handle the class since it just wasn't … | |
guys, i have a project that needs using GUI in cpp. my lecturer suggests me to use Microsoft Visual Studio 6 and create a MFC based application. But i don't really understand how to use it. Can anyone please give me a link that can explain about that MFC stuff? … Software Development c++ gui visual-studio | |
I need to "decode" a string into numbers. it should convert 1=ij 2=abc 3=def 4=gh 5=kl 6=mn 7=prs 8=tuv 9=wxy 0=oqz so i made a code where i use a dynamic string array which should get filled up according to the above table, but when i try to print the … Software Development c++ | |
Hi Friends, I need to write a piece of code to identify if an Excel session(the process which is listed in the Task Manager) is already running or not?. Can anyone guide me with this? Any help will be much appreciated! Regards, Dinil | |
I find a problem which says An approximate value of pi can be calculated using the series given below: Pi = 4 [ 1 – 1/3 + 1/5 – 1/7 + 1/9 … + ((-1)n)/(2n+1)] Write a C++ program to calculate the approximate value of pi using this series. The … Software Development c++ ![]() | |
Hello I have a task to perform an addition of 2 Big Integers. Each Big Integer is stored in a linked list in reversed order. [B]Is my add function correct?[/B] For eg; we have 2 Big Ints to add together [QUOTE] First BigInt = 245 { strored in the linked … Software Development c++ linked-list | |
Hello, I need some advice to help me write a program to convert postfix to infix. However, I am having difficulty getting started. I tried to search for more information, but all I got was infix to postfix results. This is what I have so far, but I want to … | |
Hello all, I have an app that I'm building, slowly as I learn, and I'm having some issues with the JDialog implementation. I'm using NetBeans which generates pretty much everything except for the gutsy bits of code needed... (i.e. code for button actions, etc) I have my main application which … Software Development ide java java-netbeans java-swing open-source | |
I'm trying to create an applet that records your voice to a file, then plays that file back to you. I have already managed to complete the second parts (using AudioClip) but I have no idea how I can record sound in an applet. Could anyone give me some advice? Software Development java | |
Hi , i there is VB 6 app that our client has which must be converted to VB.NET/C# . The application is a database application and application logic is stored in VB6 code and about 8 stored procedures. There is a Test environment and there is a Production environment which … Software Development vb.net visual-basic | |
I am using this code for displaying images on JPanel, in which i succeeded, but the images are volatile. When i maximize or minimize the frame, it vanishes. [code] public class ImagePanel extends JPanel{ private BufferedImage image; public ImagePanel() { try { image = ImageIO.read(new File("image name and path")); } … Software Development java java-swing | |
In this assignment you to implement a short C program that works with factorization of integers. You will write a C program that computes and prints out the sum of all natural numbers below 100,000 that are multiples of 3,5 or 7. In Detail If you are asked to sum … Software Development c | |
Hi, I am writing a C code to add two matrices. I want to take input with a feel of real martice, some thing like 1 2 3 4 5 6 7 8 9 but the Scanf function automatically enter EOL and hence my input looks some thing like this, … Software Development c | |
I am currently working on polymorphism in class, part of my homework is the classic point inside a shape test. I always have access to the lower left point of the triangle and it is always assumed to be isosceles. Last year I solved this problem using linear inequalites but … Software Development c++ | |
Hello everyone. I recently installed Windows 7 and I am looking for a development environment that is very compatible with it other than Microsoft Visual C++ Express Edition. I ask because i have never used another development environment. Thanks for your help in advance. | |
Hi guys, Please help me here. I want to obtain the individual data in rows and columns from my database. I mean after loading the data in a data table.... I think I need some attributes of the data table, so as to obtain data from the rows and columns Software Development vb.net | |
Hi, I don't understand the if statement here. Can anyone explain how the execution of if loop will proceed. Why are we using || and && operators here. #include<stdio.h> void main { int year; printf("Enter the year: "); scanf("%d",&year); if(year%400 ==0 || (year%100 != 0 && year%4 == 0)) { … Software Development c | |
Hi all, This is my first post here. Basically I want to use friend classes across namespace. eg: [CODE]#include <iostream> namespace NamespaceA { class ClassA { public: friend class ClassB; void print( ) { std::cout<<std::endl<<data<<std::endl; } private: int data; }; }; namespace NamespaceB { class ClassB { public: ClassB() { … Software Development c++ | |
Hey everyone. I am supposed to create a program that will input the miles driven and gallons used for each tank full of gas. program has to calculate and display the miler per gallon obtained for each tankful and print the combined miles per gallon for all tank fulls up … Software Development java | |
when i compile i get an error message saying the following "51: error: assignment of read-only location" line 51 reads: c[i][j] = a[i][j] + b[i][j]; any help to get rid of this problem???[code]#include <iostream> #include <iomanip> using namespace std; #define N 3 void addMatrix(const double a[][N], const double b[][N], const … Software Development c++ matrix-multiplication | |
Hi I am working on some code for my class that requires me to validate a floating point number. Once the user enters the number I have to check to see if it is valid, and it is only required that I check the first digit. so if -80 was … Software Development c++ | |
I am very new to computer programming and am struggling with my Computer Science class... I have been working on this program all week long... My assignment is to ; Write a float function that will have four float parameters. The four parameters represent two Cartesian points, 2 x's and … Software Development c++ | |
i am a begginer , i want to create a Master detail in c#.net using ADO.net with navigating tools like add ,edit,forward and prvious. please help me Software Development | |
How do I add an array? I tried this: [code] #include <iostream> #include <cstdlib> using namespace std; int main() { int i, numEntered, total; int number[10]; for (i = 0; i <= 9; i++) { cout<<"Number: "; cin>>number[i]; numEntered = number[i]; } for (int i = 0; i < 10; … Software Development c++ | |
Hi all well this is the first time in this forum so I'll be clear about my question and thanks in advance I'll create a software in C#, this app takes a cvs file (about 73,000 lines). This files comes from another system, also the cvs file can change, what's … Software Development file-system sql | |
Hi, I'm sorta new to c++ I've tried messing around with java but I like c++ better for it's speed. I think the reason why I'm still a newbie at this is because I can't grasp the scientific concept of the syntax. But enough small talk...... I can't seem to … Software Development c++ | |
Hey, I have been searching this for a while now, and I cannot find a c++ code that expands the window once opened. I have found multiple codes that claim it opens it in an expanded window, but in the end all I get is compiling errors. If someone would … Software Development c++ | |
I am creating a GUI program with java and when I run it, I get this stack of errors. [CODE] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at ButtonPanel$AllocateListener.actionPerformed(ButtonPanel.java:52) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at … Software Development gui java java-swing | |
The problem I'm having is that I have a min heap class that is created with java generics. In the class where I use the min heap class(call it sorter) I have a float array, which is full of primitive float values. The constructor for the min-heap class takes a … Software Development java | |
java float example float f1 = 5.5f; float f2 = 5.4f; how would you initialize a static float without using the wrapper class? static float f1 = 5.5f would that be correct? Software Development java | |
when I compile, there are no errors, but when I run the program it tells me there are build errors and then "the system cannot find the file specified." I have copied and restarted a new project, then new item and still get same error message. Can someone tell me … | |
I've been working on a piece of code for a while, and it works as it is intended to. Now, though, I'm trying to the code down so that there is one main functions and every "action" is a function that is called. But, I have very little experience with … |
The End.