132,726 Archived Topics
Remove Filter ![]() | |
i'm still working on the property to let program. and it sort of works... its just when the user selects to delete a line from it it will delete it fine, but it will then duplicate all the items that where previously in it... EG: My File looks like this … Software Development java | |
I want to write an x86 AT&T assembly function that compare a char-array one caracter at a time. If two characters at the same index are unequal it's suposed to return -1, else return 1. I'm going to call this function in a C code. So the function-call would look … Software Development assembly | |
Ok, Is there an easy way to do this: I want to take a string and convert it to a binary string with base of my choice and convert it back. So base 2 would be 1's and 0's, etc. example: [CODE=syntax] in_string = "testing" binary_string = string2binary(in_string, base = … Software Development python | |
Hello assemblers :) . I am trying to sort a word backwards, like this: abcde -> edcba This is my code [code] section .bss aloc resb 10 %macro print 2 mov eax, 4 mov ebx, 1 mov ecx, %1 mov edx, %2 int 80h %endmacro section .data str: db 'abcde',10 … Software Development assembly | |
HI I want to read Excel file from C#,below I menation the coding I use, I add Microsoft Excel 12.0 object library ,but Once I complie the coding it gave me error Meassage.The Error Meassage is 1."Type of Namespace for Application class Doesnt exsits" 2.Excel.Application.Workbook(object) is a method,which not given … Software Development c# | |
Hi guys, I have spent a morning working on this. Not sure if I will ever get it right. What I want to do is read a text file and based on list of constant values split the original file in two smaleer files. One of them to contain only … Software Development file-system vb.net | |
Can anyone tell me why i am getting error object invalid or no longer set.here is the code what i have written.any help would be greately appreciated. [code] Private Sub FillVendorList() Dim rs As New ADODB.Recordset, sqlQuery As String, i As Integer sqlQuery = "Select Suppliers.sup_id,Suppliers.Sup_name from Suppliers order by … Software Development visual-basic | |
Hi, First of all am new 2 .net concepts. I want to retrieve the image details from the database and to display it in the screen. eg: 1. I have stored the img details as [CODE]<asp:Image ID="Image1" ImageUrl="imgs/Titanic.bmp" style="width: 88px; height: 64px" runat="server" />[/CODE] inside the db. 2.i used some … | |
ok i have vc++ and i am making a form app and i am putting a progress bar in it but how can i hide it for like x seconds. is there a function for it? or something which hides the object temporarily . Thanks Software Development c++ | |
let say i need to create a cpu simulator and i need 32 registers, to make the demonstration i need 32 labels and let say i want those labels background color to be white, what should i do to avoid repetation of setting properties to labels? Software Development | |
Hi guys, trying to get a day number from 1 - 366 for a specific date. I've been working on this for a while. I can't seem to figure out. I'm not asking for an answer, just a push in the right direction. So far here is what I have … Software Development c++ | |
This is my next question: how to get a document from root? because I have this code: [code] myfile.open ("/home/ws14/Desktop/test.txt"); [/code] But I need to change the path home/ws14 if I change user. Thanks! Software Development c++ | |
Hi I'm only new to C++ and need urgent help with an assignment that's due tomorrow. I know this is frowned upon but I'm really stuck and don't know what to do. Can someone please point me in the right direction with this question? (A) Read the first name and … Software Development c++ | |
Write a program that uses inheritance to create various derived classes of runtime_error . Then show that a catch handler specifying the base class can catch derived-class exceptions? am i doing it rite this is my code : [CODE]#include <stdexcept> #include <exception> using std::runtime_error; class DivideByZeroException : public runtime_error { … Software Development c++ | |
Hi guys : i'm new in programming, i'm reading c++ by dissection and for chapter 2 i encounter with a exercise that i can't solve it,please help me on it. the program is : Write a program that finds the maximum and minimum integer value of a sequence of inputted … | |
Hi all, This is a problem that has been holding me up for a while in Python. I frequently get issues relating to "global ___ is not defined" and cannot figure out what I'm doing wrong. Here is a coin-flip function I wrote: [code] def coinflip(): import random import time … Software Development python | |
I am making a program that reads from a .txt file and outputs the names that are in my .txt file into an output file that the user specifies. My program compiles but then I get an error that says "int main(): Assertion `fin.is_open()' failed. Aborted" What am I doing … Software Development c++ file-system | |
Hi, I'm trying a very simple code as below. #include <fstream> #include <iostream> int main() { ofstream myfile; myfile.open ("example.txt"); myfile << "Writing this to a file.n"; myfile.close(); return 0; } But getting following error on myfile.open statement... Debug Assertion Failed! Program: ... File f:spvctoolsicrt_bldself_x86crtsrcopen.c Line 308 Expression: ("Invalid sharing … Software Development c++ | |
So, I have to write a program that calculates the five number summary of a .txt file with 2 columns and n rows. A snippet of the file would be 23 7.8 27 17.8 39 26.5 41 27.2 From this I am trying to input the numbers into a vector … Software Development c++ | |
I need to have my program use a function to read in numbers from a file to an array, and pass the array back to my main program to be outputted/used by another function; however, I am getting an error(cannot convert from 'int' to 'int [100]'): Here is the relevant … Software Development c++ | |
I am trying to call the Oracle stored procedure in java. I have given below,stored procedure and java method which calls the stored procedure and returns the result set. I am getting the error Invalid column type :1111 or invalid column index. Can anyone tell me whats wrong in the … | |
Hello everyone! I am looking for a simple free c/c++ IDE which does not need to create projects in order to build applications. If possible, I would like something that has code completion on par with MSVC Intellisense, or NetBeans code completion. However, the most important feature I am looking … Software Development c++ ide open-source | |
I have a .dat file with many lines. I need to overwrite a certain line. Let's just say I have to overwrite the 5th line of the dat file. How would I set the RandomAccessFile to overwrite at line 5 (or any line in general)? (P.S.: each line has 10 … Software Development java | |
i am creating a small cpu simulator and i need to parse the assembly instruction which is like "add $s1 $s2 $s3", i need to get these four individual words ignoring the white spaces, if i use string.split(' '), it wont work if user enters more than one space between … Software Development assembly | |
hi, im trying to learn python and this is giving me [ICODE]>>> x=input("Enter a value: ") if x % 2 ==0: print ("even") else: print ("odd")[/ICODE] then when i execute: Enter a number: then i enter a number but it does not print even or odd. why? Software Development python | |
Hi I want to write a program which reads a hexadecimal number and returns an decimal number. I wrote that code(inspired by some code pieces from web): [CODE]#include <stdio.h> int main() { int hexa; scanf("%x", &hexa); printf("%d", hexa); return 0; } [/CODE] but it does't give the answer I want … Software Development c | |
I am getting the above error when trying to compile.. main.cpp [code=cplusplus] #include <windows.h> #include <string> #include "resource.h" #define GETITEM(item) GetDlgItem(hWndDlg, item) static bool keeprunning = true; static bool keeprunning1 = true; static bool keeprunning2 = true; static void run(); static void breakrun(); static void lunchrun(); static void end(); static … | |
Hi, I'm using C#.net 3.0,I want to divide a videofile into its constituent frames and save these frames in image format so that I can use these frames for the purpose of watermarking. Please tell me how to do this thanks Software Development | |
Hey everyone. I'm new to the forums and to C++, and I was working on a program used to call data from a file containing various information about cars when I ran across the error: undefined reference to (and then it proceeds to list all of my declared functions). Here's … Software Development c++ | |
i am trying to get my program to cout only certain arrays but i keep getting 0's and bus errors and segmentation faults. i think i have the general idea but i cant find a way to fix this problem. [code] #include<iostream> #include<fstream> #include<cstring> #include<iomanip> using namespace std; void findvin(int[],string[],string[],int[],int[],double[]); … Software Development c++ | |
Hello everyone, I'm working on a small assignment where I am supposed to write the code for the itoa function [icode]char* itoa(int Value, int Base);[/icode] without using any built-in functions, and where the returned value is allocated on behalf of the caller. Value being the integer to convert, and base … Software Development c++ | |
[code=c]printf("reading input image ... \n"); /*unidata.image = (image_ptr*)read_pnm(argv[1], &(unidata.rows), &(unidata.cols), &type); */ printf("hello.jpg"); printf("image read successfully \n"); printf("rows=%d, cols=%d, type=%d \n", unidata.rows, unidata.cols, type); /* error here*/ printf("well"); [/code] the errors are coming between the two final printf statements. when the read_pnm() is left uncommented it is a segmentation fault, … Software Development c | |
Hello, I want to total up a variable that changes every time a function is run. [code]import random def flip(): h,t = 0,1 cheads, ctails, = 0,0 cflips = random.choice((0,1)) if cflips == 0: cheads += 1 return 'h' else: ctails += 1 return 't' def repeat(f,n): for i in … Software Development python | |
Hello, I am trying to write a program that flips a coin until it gets the sequence "heads tails heads" and then stops and says how many flips it took to get that sequence. This is what I have so far: [code]import random import time import string def coinflip(): heads … Software Development python | |
Ok so hers the deal im in a programming class and i am attempting to solve this problem but i have no idea how to go at it really. Its due tomorrow and i had no Idea where else to go. Thanks in advance. Write analysis program to read the … | |
I have hit a stone wall this week. I have tried numeous methods to get a functioning array into this code, and get the code to call for a total value. Now I have changed code around untik I no longer have compile errors, but now all of my values … Software Development java | |
hi i need help writing a program that will read in input file containing c++ code and then checks for grouping matching symbols like { } ,[ ] ,and ( ). if there is a mismatch symbol in the input file the the program will read and recognize the error. … Software Development c++ | |
Howdy, I've been having problems letting the computer figure out my answer to my math riddle. Im given a multiplication problem to find the answer to the following problem: 7xx x 4x _____ xxxx0 In this problem, every number from 0-9 is used only once. I found the answer the … Software Development java | |
hey, I got a question regarding functions returning a linked list. Here's the data structure of my linked list (just in case it deviates from the standard way of doing it) [CODE] template <class T> class Link { private: unsigned int size; Link<T> *nextRow; Cell<T> *firstCell; public: Link(); ~Link(); //functions … Software Development c++ data-structure linked-list | |
Provided the following template: [code=cplusplus] template <class T> class MyTemplate { private: T myData; public: MyTemplate(const T &data) : myData(data) {} bool Contains(const T &); }; [/code] Is there a way to ensure at compile time that the argument T derives from another class? I want T to derive from … Software Development c++ linked-list | |
Hello, I am currently working on a program which will take a set of strings from a data file and store them into an array called word. So far my code has compiled correctly however I just added in malloc and it just doesn't like me. I need to malloc … Software Development c | |
I am an infant attempting to learn to crawl through Java. I have been learning for just over four weeks now, and have been doing relatively well. However, I am now on arrays, and find myself not only floundering, but drowning! My text seems extremely difficult to understand, and I … Software Development java | |
Hey all, My program creates panels with textfields. The actual goal is to draw lines between the textfields. But i'm stuck way before that stage. I can draw lines with the button connection lines and you click on two points and it draws a line. The 2 problems I have … Software Development java java-swing | |
I'm a first semester CINT student and I'd like to add some "bling" to my final project. I want to add blinking text to my final forms clearform button. My code so far: [code]Private Sub orderForm_Load(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles MyBase.Load 'disabling the animation on … Software Development vb.net | |
Hey , for my class I have to create an Infinite Integer class which holds can hold a really, really large integer using a doubly linked list. It holds 3 integers per node, so 5,697,343 would be held like [5] [697] [343]. I implemented my constructor and toString method fine, … Software Development java linked-list | |
How do I have the algorithm below to sort my list in opposite direction (right to left) instead of left to right. Also, how do I make it sort simultaneously or alternatively in both directions? Thanks. [code=python] def bubblesort(l): for passes in range(len(l)-1, 0, -1): for index in range(passes): if … | |
How r u every body. I have some qoustions: 1)What is the difference between an instance data field and a static data field?? 2) Also I have assignment and i wont to add txt on text area and when add new one txt it must appear in next line of … Software Development java | |
Hello ppl, m computer science student and have learnt c&c++ and want to learn a new language in which i can create gui application with gud performance...i found that java and c# can be 2 option..so which will be best and useful...c# or java???? i found that java is a … Software Development gui | |
Hi guys , after finishing my text based game , when i send the executable file to my friend he cannot open it .. he get an error that smth is wrong in configs file .. he also has framework installed Software Development c++ | |
Hi i have a program that outputs a bunch of hexadecimal numbers. Here is a example: 18 3048 ffff8007 The thing is i want all the outputs to be 8 digits long, so i want the out put to be something like: 00000018 00003048 ffff8007 so yea basically i just … Software Development c |
The End.