43,549 Solved Topics
Remove Filter ![]() | |
Hello, and thanks in advance for any help I can get. This is part of a larger program for homework. Things were working when I called "addVacantStore" the first time before I wrote the search function. I then called it twice more to set up to test the search function. … Software Development c linked-list | |
Friends I m workin on vb.net ado.net oledb, I have also added datagrid Control to my form for retriving database from .Mdb file i used following code [code] 'decleared Name Space Imports System.Data.OleDb 'Dicleared Variabls in Class Form1 Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da … | |
i really need help with this error. it is an unexpected types error [CODE]public class ticTacToeDemo { //use a 3X3 array for the game board. private static char[][] board = new char[3][3]; public static void main(String[] args) { int turnNumber = 0; System.out.println(board[1][1]); newGame(); while(!winner()) { turnNumber += 1; if … Software Development java | |
I need to find the difference of 2 sets. below are my functions for the union and intersection of sets in my driver-file. Is the difference set a combination of the two? [CODE] IntegerSet IntegerSet::unionOfSets(IntegerSet b) { IntegerSet c; for ( int i = 0; i < 101; i++ ) … Software Development c++ | |
I am a biology student taking a required C++ class. As a result, I am very unfamiliar with programming but I definitely have gained a new appreciation for it. We just finished cin and cout objects two weeks ago and this is our assignment. I have some of it finished … Software Development c++ | |
![]() | Hi, My program keeps coming up with an Access Violation after I moved the code manipulating my linked list from the main function to a sub function. Looking at it with the debugger, I found that the sub function destructs the linked list, and then the main function attempts to … Software Development c++ linked-list microsoft-access ![]() |
I would be very happy if you could explain to me clearly to understand the insertAtRear function. I want to make an insertation like [CODE] void insertAtRear(int i, string s, string n) { //??? } [/CODE] and than also need to disply the inserted data by using printList() with and … Software Development c++ | |
I'm using Borland C++ 5.5, I code my programs using Edit, I compile and run my programs using console. Before, I was using Windows XP and I had no problem using Edit to code, compiling and running my programs using console. Also my programs were in [B]D:\My Documents\Borland\Programs [/B]and it … Software Development c++ | |
Hi I only have a simple query I am relatively new to c++ and I am trying to create 10 randomly placed items in a grid. I've used the following for loop: [code] for(int x=0; x<10; x++) { array[n1][n2] = aliveG; } [/code] and it only displays the item once, … Software Development c++ | |
[CODE]#include<stdio.h> #include"graphics.h" #include<stdlib.h> #include<conio.h> void main() { int graphdriver=DETECT,graphmode; int color,n,m; initgraph(&graphdriver,&graphmode); for(n=0;n<10;n++) { putpixel(250+n,350,BLUE); } for(m=0;m<10;m++) { int x=getpixel(250+m,350); printf("%d",x); } getch(); } [/CODE] I have to compile programs using graphics.h but i use Microsoft visual studio 6.0 . There is no graphics.h file in it... so i copied … Software Development c visual-studio | |
Hello guys... I'm trying to develop an application with a GUI that sends and receives data via http, by sending a url via POST and eading the content generated by the url. or instance, if i send a nick and order number, the server generates a SessionID via html. My … Software Development client-server gui html-css http-protocol java java-swing | |
Hello and thanks in advance for any help. I am currently trying to write a bit of code that simulates a keystroke via stuffing a scan code directly into the keyboard controller chip and have it return that scan code as though someone actually pressed that key. To be honest, … Software Development assembly | |
I have made a simple test application that I use to paint objects while I study and try to give them physics such as gravity, velocity, wind, momentum, etc. I have the app setup like this: [CODE]WM_PAINT PaintFunction(); break; DWORD CalculationsThread() { while( 1 ) { //-_-_Calculations here SendMessage( WindowsHandle, … | |
I am writing an x86 assembly language program that between base numbers.My problem is how to make it happen like this: [QUOTE]Welcome 1. Binary <-> Octal 2. Binary <-> Decimal 3. Binary <-> Hexadecimal 4. Octal <-> Decimal 5. Octal <-> Hexadecimal 6. Decimal <-> Hexadecimal Please enter the type … Software Development assembly | |
hello guys...i'm rookie in C...just starting out...:$ Well...the program i was trying to write was make a series like: 0 10 010 1010 . . . Now i wrote a program. But it's kinda behaving weird. Let me show your the output: [ICODE]enter the no of rows you want: 4 … Software Development c | |
Yes I am new to learning java. I am just learning loops. For my online college class I have to write a program using the for loops. This program needs to give all even numbers between 0-100. I have a program written that gives me all numbers 1-100. Can anyone … Software Development java | |
Hi everyone, This is my first post on daniweb! I'm fairly new to C++ and am trying to add sound to my application using FMOD. Now, I have managed to get sound playing correctly using FMOD, but I'm now trying to get all the sounds I want loaded, into a … Software Development c++ visual-studio | |
Hi im still quite a terrible programmer, so some of this is just confirmation of stuff i think is right (and please correct me if i have the wrong idea!) How would you program an anogram maker ? I was thinking of breaking up a String with substring, and then … Software Development java | |
Hi, Starts the program displays two processes, and emits This one error: "Access is denied". Compiling errors do not [CODE="C#"] foreach (Process proc in allProcs) { Console.WriteLine("process: {0}, id: {1} Time: {2}", proc.ProcessName, proc.Id, proc.StartTime ); } [/CODE] Software Development | |
So, I am working on a project that uses inheritance. I have a class Creature, which extends Thing. Also, I have classes Tiger and Ant that extend creature. I also have a TestCreature class. All of these are in the same directory, and they all compile. However, when I run … Software Development java | |
I have a database I am creating with about 50 users over a network. There are about 6 groups of users and these users are spread across 10 branches. I want to block/allow users from particular forms and views. For example I want branch users forms to be filtered by … | |
Ok I got the code to work but with some errors. First when i print out the aorted array to the file it is sorted escept for one number in the beginning second it gives me a negative number whihc i believe is a pointer how can i fix this? … Software Development c++ file-system ios | |
hi i have the next task to solve. [B] * We are given 5 integer numbers. Write a program that checks if the sum of some subset of them is 0. * Example: 3, -2, 1, 1, 8 ïƒ 1+1-2=0.[/B] do u have any other ideas then writing all the … Software Development | |
Hello, I am trying output number of repetion from user request. So basically there will be repetition print out of the times table when the user enter in the "Enter repetition" dialogbox. For example in the "Enter repetition" dialogbox, i will enter 2, then in "Which timestable do you want" … Software Development java | |
Hi! I am making a project about doublepointers and inheritance. Have some small issues that should not be difficult to resolve, but I just cant get a grip of it. The task is to add two types of vehicles that have some of the same characteristics but not all. I'm … Software Development c++ | |
I'm trying to understand how static ints work within classes, and I've fallen on some code that I don't quite understand how the answers come out to be what they are showing. [code] // static members in classes #include <iostream> using namespace std; class CDummy { public: static int n; … Software Development c++ | |
I want to create a link to a web page into an about box and i want it to open it with the default browser.I googled it and found nothing that helps...pls a little help Software Development c# seo web-browser | |
Hi! I have following problem. I need to select multiple random rows in DatagridView with keypress. Ex: Row1 -selected Row2 -not selected Row3 - selected I do have part of code that will update certain field in database on keypress, but i have no idea how to create multiple selection … Software Development vb.net | |
Hi... I am fairly new to VBA programming in EXCEL. So my apologies in advance. I have a USERFORM with several CHECKBOXs and one TEXTBOX. When the user clicks a checkbox the textbox appears next to it for the user to enter dollar amounts. I am trying to use the … Software Development vb.net | |
Heh, well my daily project is near finished, and I was looking around for a way to get rid of punctuation from a character array. I looked through the web a bit, and only found immensely complicated formulas which I did not feel like dealing with. So my question is: … | |
I have this code: [CODE] public static int pow (int x, int n) { if (n==0) return 1; int t = pow (x, n/2); if (n%2 == 0) { return t*t; } else { return t*t*x; } } public static void main(String[] args) { System.out.println (pow (5, 2)); } [/CODE] … Software Development java | |
![]() | I'll post the question below but I can't get the smallest and largest to print. I'm not even sure I have the math correct to calculate them because I can't get results to print. A local zoo wants to keep track of how many pounds of food each of its … |
I can get my code to compile and produce correctly (as I want it right now), except for one problem: Output: [code]What Degree Polynomial: 2 Enter Coefficient #: 8 Enter Coefficient #: 5 Polynomial selected is: 8x^(0)5x^(1) What Degree Polynomial: 3 Enter Coefficient #: 4 Enter Coefficient #: 5 Enter … Software Development c++ | |
Here's my string [CODE] string str = "a"; [/CODE] Now I use string.Remove() [CODE] str.Remove(0); Console.WriteLine(str); [/CODE] The character 'a' is still there, why is this? Software Development | |
[I]I i've looked for a shell scripted forum but it's based on .nix so it doesn't apply to me [/I]. I'm making a program that will attempt to lessen the effects of a flash drive when placed in an infected pc. Basically it will make a folder named autorun.inf then … | |
I'm currently trying to edit this program so that it would read 4 inputs on the first line of data, instead of one. All other lines contains just 1 input. I created a program to assign a letter grade to an integer score. This was my first data file: [CODE]95 … Software Development c | |
In the code snippet: [CODE=C] int Z; boolean ParsedOk; ParsedOk = sscanf( CommandLine, "%i", &Z ) == 1; [/CODE] I find that a successful parse occurs for both valid numbers, but also for numbers that have trailing rubbish, such as '3Q', etc. How can I detect (and reject) such malformed … Software Development c | |
I've created a simple GUI that's purpose is to square or cube a given number that the user enters into the textfield. This all works fine but what I now want to do is to fine-tune it by testing the input. For example if the user enters a non-numerical value … | |
I am trying to write a program that prints every line of the file until a certain string is found. The file is a plain text file. I put the sample context at the top of the code. But the function gets stuck in an infinite loop. I don't want … Software Development python | |
im trying to practice on: Basic User Defined Functions/ Pass by Value Functions for class and im confused. this code has a problem with it, its not printing everyting i want it to say. can someone help me understand this and what i am doing what wrong and what i … Software Development c++ | |
This is one mean function! I've tried everything I can think of. I registered a type library with LoadTypeLibEx() which is a really easy function to use. I mistakingly thought UnregisterTypeLib() would be routine. Its most decidedly not! The error I keep getting with FormatMessage() is... Error accessing the OLE … Software Development api c++ operating-system windows-api | |
Hello, I have made a program in C++ for which I am making the GUI in C#. I want to run the C++ program as a process from C#. The program loads and runs fine, but due to some reason it is not able to access the files. When I … | |
Hello, I am trying to get a response from a URL using the following method [CODE]public void IsUrlReachable() { HttpWebRequest webRequest; WebResponse webResponse = null; //Need to assign this as null otherwise it does not compile try { webRequest = WebRequest.Create("http://[myurl].asmx"); webRequest.Method = "GET"; webRequest.KeepAlive = false; webResponse = webRequest.GetResponse(); … Software Development http-protocol visual-studio | |
I want to calculate remainder of all the values inside nested loop with all the numbers inside the loop. for example when [icode] a=1 , b=1, c=remainder a=2, b=1, c=remainder a=3, b=1, c=remainder a=1, b=2, c=remainder a=2, b=2, c=remainder a=3, b=2, c=remainder a=1, b=3, c=remainder a=2, b=3, c=remainder a=3, b=3, … Software Development c | |
Hi I want the user to only type letters (a-z simple or capital) in the Name textbox.If the user types any other character(like numbers or commas,semicolons) I want to show a message.How can I check for it(in C#)? Thnx in Advance Software Development | |
I want to make a help file. but I want to do it without vb tools. I want to make it, use another tools. can any body tell me any software to make this kind of help file. Software Development visual-basic | |
I have a Computer Science degree (long2 time ago) .. I do know Java OOP but i am now trying to pick up C++. I do have C and of course data structure using C or pascal. I have started reading Bjarne Stroustrup book (The C++ Programming Language - Special … Software Development c++ data-science data-structure oop pascal | |
Dear Sir/Madam, How to measure memory consumption of a VB 6.0's programe? As a programmer in vb. 6.0, where i have to be conscious for getting less consumption of memory of my program at design time? Is there any free software to measure memory consumption of a programe? Please guide … Software Development motherboards-cpu-ram visual-basic | |
alphabet from lower to upper , using ascii what logic should be use to convert small letters into capital using ascii codes?? for example ascci code for A is 65 and ascii code for a is 97 how can i coonvert from integers to character ? Software Development c | |
I am trying to create a program to read a series of input characters representing grades (e.g., an 'a' or 'A' represents an A, a 'b' or 'B' represents a 'B', and so on) and prints the counts of each grade. [CODE]/* A program to count the number of grades … Software Development c |
The End.