132,726 Archived Topics
Remove Filter ![]() | |
hi : ) I wrote this code for count a specific word selected by user in an array but it have a logic error .. and also is there another way to write it without using pointer ? [ICODE] #include<iostream> using namespace std; int j,i=0; const int size=500; char array1[size],search[100],*cnt; … Software Development c++ | |
The conditions for the question 1. you dont have any head ptr 2. you cant traverse as you dont have head ptr 3. its a singly link list 4. each node is dynamically allocated You only have a pointer to the node which you have to delete, and that is … Software Development c | |
hello frndz, i was doing this program and then i encountered this strange problem... it is a program in which i want to open two text files and then compare it.. It is giving me two errors: 1)variable f1 might not be initialised. 2)variable f2 might not be initialised. and … Software Development java | |
Guys I have a created a test windows form to try few of the HAP functionalities..... I have the following code as shown below: The function below deals with HTML Parsing whereby removing unwanted HTML metadata. [CODE] Function SanitizeHtml(ByVal html As String) As String Dim doc As New HtmlDocument() doc.LoadHtml(html) … | |
Hi, I have a csv datafile with stock price data that I've read into a vector of structures that looks like this: 09/11/2009 9.30 open, high, low, close, volume 09/11/2009 9.31 o, h, l, c, volume and so on to 09/11/2009 16.14 o, h, l, c, volume //next day starts … Software Development c++ | |
Hi all, I am currently extending a large C project with an own extension and I am stuck in a pointer/array/struct problem: The project offers a struct of this structure [CODE]struct ip_addr{ unsigned int af; /* address family: AF_INET6 or AF_INET */ unsigned int len; /* address len, 16 or … Software Development c | |
I'm having a problem on try again program.I checked the syntax and yet is still not working.am trying to make a program that will output the student's grade and when the program is finished it will ask whether to try again or not.If the input is y or Y, the … | |
| |
Hi I am making a banking system in c++ but getting a problem I am not sharp in programmin if you can help then thanks [CODE]//*************************************************************** // HEADER FILE USED IN PROJECT //**************************************************************** #include<iostream> #include<conio.h> #include<stdio.h> #include<process.h> #include<fstream> #include<ctype.h> //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** using namespace std; class … Software Development c++ file-stream ios | |
I am trying to make a program in which the user is prompted to input a number(max length of 4 digits), and then the program shall produce the number of outcomes of a two dice roll meaning that 1 roll includes two die. The outcomes could be 2-12 and I … Software Development | |
[CODE] #include <time.h> time_t whatTime(const char* month, const char* day, const char* year) { time_t rawTime; time(&rawTime); struct tm* convTime = localtime(&rawTime); std::cout << "Today is: " << ((convTime->tm_mon)+1) << "/" << convTime->tm_mday << "/" << convTime->tm_year << std::endl; } [/CODE] When using this code I get the output '7/27/111' … Software Development c++ | |
Hello I need to rename a folder within / inside a ZIP file, preferably without extract it and compress it off-course. How can I do this (only with free help stuff if needed) ? Thanks Software Development python | |
These days ,I am learning inheritance and dynamic binding. I could figure out what the code means. However, I can't see much point in setting such base classes So,I want to know why should we set up base classes and derived classes Software Development c++ | |
So I was trying to add elements into my list. But for some reason the words inside the list are very very small.... is there anyway to increase the font? I tried setFont, doesn't work. :( [CODE] import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import javax.swing.event.DocumentListener; public class sub … Software Development java java-swing | |
hi, can anyone tell me what's wrong with my code or show me a working code to add in to my program so that i can study and understand how the code actually works.. after i type in textbox, i want to be able to hit "enter" key instead of … Software Development | |
![]() | Basically, I made a small calculator. It does the PEMDAS and factorials. Part of my code is here:[ICODE]#include "stdafx.h" #include "iostream" #include "stdio.h" #include "math.h" using namespace std; short MENU (void); void raiz (void); void suma (void); etc..... [/ICODE] [CODE]int main () { short OPC; OPC=MENU (); do { switch … Software Development c++ |
Hi, I am trying to change this program to compile in g++ compiler in terminal in linux. I have reached a point where I am stuck. I would really appreciate some help. I am getting the following errors: test@linux:~/signalgenerator> g++ -o audio audio_backup.cpp -lasound audio_backup.cpp: In function ‘int main(int, char**)’: … Software Development audio c++ file-stream | |
I have a Textbox named txtage.text.Now I want When Insert in txtage.text as 30/12/1980. disable tabindex.and messagebox show "You can not give admission".If Insert in txtage.text as 30/12/2005. Enable Tab index .its mean student 's age must be 6 year not greater nor less. Software Development | |
I have run into a unsolvable runtime error, I always get the message invalid floating point error, with the following C++ program. This program reads floats from a file(float.txt) 1.56 .98 5.78 Then sorts to put the largest float on top. But when I try to read this I get … | |
I'm frustrated by the nature of time.sleep(), which prevents the script from doing anything else during the allotted time period. For example, I have: [CODE]while True: checkSomething() time.sleep(0.1) print 'hello'[/CODE] In this case, "hello" is never printed. I really want to check something every few milliseconds, but I also need … Software Development python | |
Good day friends, so we have a homework about areas of a circle, rectangle, and cylinder. Now I know how to code this entire program in c++, but in c sharp, not that much because I am only starting to learn c sharp this term. Anyway here is my question: … Software Development c# | |
[LEFT]Looking for a code for editing XML[/LEFT] Thanks Software Development xml | |
//include files #include<stdio.h> #include<conio.h> #include<stdlib.h> #include"c:/includes.h" //stores the structures of master and index file #include"c:/function.cpp" //stores all the functions for the file primitive /* The main function input: none output:none calleed by: OS. calls: ADD_RECORD,DELETE_RECORD,MODIFY_RECORD,SEARCH_RECORD,DISPLAY_RECORD */ void main(void) { int choice; int status; int roll_no; char ch; clrscr(); printf("Enter the … Software Development c | |
Hi im fairly new to developing (started making some basic small programs yesterday) and today I was working on a program which is essentially a updater/update checker and what the program does is it checks the version of the checker and compares it to the current version.txt and if they … Software Development vb.net visual-basic ![]() | |
i) Create a class called Complex for performing arithmetic with complex numbers. ii) Write a driver program to test your class. Complex numbers have the form realPart+imaginaryPart *i Where i is: √-1 Use floating point variables to represent the private data of the class. Provide a constructor method that enables … Software Development java | |
Hello guys. I'm doing a project now. I'm having a problem on getting specific file type from my computer using the .getfiles function. Here's my codes. [CODE]Private Sub dlgOpen_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles dlgOpen.FileOk Dim filepath as String = "C:\" dlgOpen.CheckFileExists = True txtOpen.Text = dlgOpen.FileName … Software Development vb.net | |
Hi all, I am a beginner in C# and am exploring dataGridView currently ,am stuck at a point would be amazing if i could get a professional insight on the below problem. I want to capture the data from the cell of the dataGridView.Basically i want the value of the … Software Development | |
In the code below I am attempting to establish a method of inputing a year with digits (only digits) into the character array of year. It works, but now if the inputed non-digits are 4 or more (i.e. "abcd") the program runs the printf command more than once. I recommend … Software Development c | |
hello there! i am developing a registration form of users data...but i got a problem...what i want to happen is that if an id,name, username,password already exists msgbox will appear that it is already existing...here is my initial code..can u add it for what i want to happen with my … Software Development visual-basic | |
Hello, Any Help will be much appreciated. i m entering information of each person in Employee Information form and saving it in MS Access database. Now i want to Show the data of each person Individually and the information of the next person will be shown on the next button … Software Development vb.net | |
hi, I have following question 1) is main thread is daemon thread? if yes then how? 2) what is meaning of daemon thread? 3) Does daemon thread require main method for execution? 4) Daemon thread do its execution without main method? 5) if Daemon thread require main method can any … Software Development java | |
Looking to work as freelancer in ASP, ASP.Net,C# and Sharepoint. If anyone needs this type of work, please contact us. [email]O.Narasimharao@crawler.com[/email] 09962353555 Software Development asp asp.net sharepoint | |
Hey, I'm wondering if it's a good idea to put my email in the about box of a utility I wrote, and in the source code. My thinking is the developers or users will be able to contact me if they have problems with it or ever need to update … Software Development | |
Ok, this is my 3rd time asking a question so far I can see that people here are very helpful and I appreciate it :) today I have a question if something like this is possible [CODE]#include<stdio.h> #include<stdlib.h> int difficulty() { char difficulty; printf("Level of difficulty? (l-Low,h-High) - "); scanf("%c",&difficulty); … Software Development c | |
[CODE]struct marks{ int p:3; int c:3; int m:2; }; void main() { struct marks s={2,-6,5}; printf("%d %d %d",s.p,s.c,s.m); }[/CODE] Output 2 2 1 Software Development c | |
Hi there, I'm having a rather bad morning today and my brain is being stupid. I have an ArrayList containing String Arrays. How do I convert my ArrayList to a 2D Array? What I have: [CODE] ArrayList<String[]> transactionList = new ArrayList<String[]>(); String[] resultSetRow = {"String1","String2","String3","String4","String5"}; int resultsSetRowSize = resultSetRow.length; for(int … Software Development java | |
i need help regarding the code. the problem is when i try to make a new process payment. here is the situation, first, i click this button. [IMG]http://i1120.photobucket.com/albums/l483/farid011/first-1.png[/IMG] second, i click the payment button [IMG]http://i1120.photobucket.com/albums/l483/farid011/second.png[/IMG] third, i click balance button to calculate the payment and charge [IMG]http://i1120.photobucket.com/albums/l483/farid011/third.png[/IMG] fourth, i click … Software Development pay-per-click vb.net | |
is there a way to add command1 onto form's boderstyle ? like there is close and maximize and minimize can i add a new one nearby them Software Development visual-basic | |
Ive written a small program to convert celcuis o Fahrenheit and vice versa. The script as it stands works : [CODE]#!/usr/bin/python import sys def convert(t,fc): if t == "c": print (fc * 9) / 5 + 32,"Degress Fahrenheit" elif t == "f": print (fc - 32) / 9 * 5,"Degress … Software Development python | |
Hi, I'm new to Python, I'm practicing queries sqlite3 database, I will present what I have so far. until now I have not seen an example of how to reflect queries a database using wxPython I hope I help, do not write very good English. frame.py import wx import sqlite3 … Software Development python | |
Hi all, i found [CODE] <Window.CommandBindings> <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" /> </Window.CommandBindings>[/CODE] to be a very effective and useful. But I was expecting it to tunnel and not bubble. I want it to call "PasteExecuted" no matter what control is selected.. Is this possible? Without having to add this to every … Software Development | |
I am just learning python. I am switching from visual basic so this is a bit new to me. I am trying to write a loop for a super small script. It is below I am trying to understand the def f() how to loop that short code over and … Software Development python visual-basic | |
I have to write a code that accepts 5 grades and sorts them from smallest to greatest using linked list.This is what I have so far using examples from the book. #include <iostream> using namespace std; struct List { int value; List *next; }; int main() { int num, num1,num2,num3,num4; … Software Development c c# c++ linked-list | |
Hi everyone.. I am trying to write a perl code which appends a text file after taking two inputs from the user. It saves the file in tab delimited format. I have the input text file attached here. Now I want the file to check if the user given input … Software Development file-system perl | |
I basically am trying to figure out how to store data into an array by calling a method enterSalary() within another method enterAllEmployees(). This is what the assignment is. I don't understand how to do it. Your solution must: • Store the salaries in an array (the department may not … Software Development java | |
I copy data from a "DataGridView" to the clipboard, but it contains lots of mysterious tabs that shouldn't be a part of the data, here's a sample of what I mean: [code] Keywords Searches omaha nebraska apartments 260 houses for rent in omaha nebraska 140 houses in omaha nebraska 720 … Software Development | |
Hello, I'm trying to write a function for a DLL in c++ what would check if a website is online or not and return either a error or the status code returned from the server, is there are any clever people out there, your help would be awesome, thanks. i … Software Development c++ | |
I am working on a snake game. I have posted about it before. It is going well, and now I would like to implement a high score option, that saves the score online, so that everyone can see it. I am planning to make a menu, that will have a … Software Development java |
The End.