132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MosaicFuneral

I'm on Dev-C++ 4.9.9.2 default options, WinXP SP3, P4 w/ HT. When I c-shift a value, and then back I get back distorted values. Using the standard _rotr() and _rotl. [code] /*somewhere in main()*/ str = "I'm a fairy! abc xyz ABC XYZ"; printf("\n%s\n", str.c_str()); for(i = 0; i < …

Software Development c++
Member Avatar for ArkM
0
160
Member Avatar for Usha G

Hi I've two files for JDBC connectivity. 1)DBUtil.java - to establish DB connection using JDBC and close DB objects 2) GetEmpl.java - Uses DBUtil to connect to DB and retreives data. [code language=java] public class DBUtil { private static String dataSourceName = getJNDI(); private Connection conn = null; private PreparedStatement …

Software Development java
Member Avatar for Usha G
0
93
Member Avatar for Gannon56789

When i compile my code i keep getting an error. *** glibc detected *** ./main: free(): invalid pointer: 0xbfb82c34 *** . I can not figure out for the life of me what the issue is. I think it may have something to do with my constructor. Any suggestions would be …

Software Development c++
Member Avatar for Agni
0
212
Member Avatar for f.ben.isaac

Threads are scheduled to run based on their scheduling priority. Each thread is assigned a scheduling priority. The priority levels range from zero (lowest priority) to 31 (highest priority). ***Only the zero-page thread can have a priority of zero. (The zero-page thread is a system thread responsible for zeroing any …

Software Development c++
Member Avatar for f.ben.isaac
0
83
Member Avatar for sacarias40

can somebody help me with this?? i need to insert some text into a textbox, but it needs to go where i want it just not the very end every time. here is what i got so far Code: textbox1.text = textbox1.text & combobox1.text

Software Development vb.net
Member Avatar for sourav bansal
0
110
Member Avatar for adaykin

I've seen a lot of different possible ways to do so, but I was wondering what people thought the most efficient way was.

Software Development java queue
Member Avatar for adaykin
0
3K
Member Avatar for tech2001

Does anyone know how I can import a List into a text file? Is there any difference if I try the same process in Groovy?

Software Development java
Member Avatar for tech2001
0
110
Member Avatar for The Dark Knight

Without using MUL, IMUL, DIV, IDIV instructions and any iteration, find the product of 25 and a value in BL. save your result in DL . this is a task which i need some help in .. because i cant seem to figure how can we multiply without any iteration …

Software Development assembly
Member Avatar for carson myers
0
94
Member Avatar for nedsnurb

hi guys am a total noob with C++ and im trying to write a program that will take a user inputted integer and displays its divisors and then tell the user whether it is a perfect number or not. So far I have [code=cplusplus] #include <iostream> using namespace std; int …

Software Development c++
Member Avatar for MosaicFuneral
0
179
Member Avatar for skatamatic

I'm writing a function parser, which (hopefully) will be able to handle much more complex problems than basic operations. I've just completed the handling of the addition, subtraction, and brackets, but am at a loss of how to implement proper order of operations for multiplication and division. In order to …

Software Development c++
Member Avatar for skatamatic
0
199
Member Avatar for tones1986

Hey all.. i am working on a assignment for class currently, and am having a few difficulties. Right now i have a file that i am reading in, for each value read, i call my insert() function. This insert function push_bakc(item) into a vector, and then i call a function, …

Software Development c++ data-structure
Member Avatar for tones1986
0
141
Member Avatar for mandrake747

Hi All, Does anyone know how I can validate data entered into the cell of a datagrid? What I am trying to do is this: each time a user enters a value into a particular columns cell, I want to update the corresponding cell depending on the value entered. For …

Software Development
Member Avatar for Jugortha
0
108
Member Avatar for sivak

can anyone explain me about static method in c# .net with example?

Software Development
Member Avatar for Jugortha
0
81
Member Avatar for Tank50

HI Iam using domino object to send email from my project,and after Programs execute correctly,but I uninstall the lotus application and install it again,and now i have domino object 1.2 version,something like that,once I run the application it gave me error messages.Below I mention what is error message,pls help me …

Software Development assembly
Member Avatar for Jugortha
0
115
Member Avatar for sivak

when we go for webservices in .net webapplications? example plz? 2.what is mean by delegate and asynchronous delegate in .net 3.static method with example?plz

Software Development
Member Avatar for Jugortha
0
122
Member Avatar for sivak

difference between dictionaries ,hashtable,arraylist in c# .net? 2. i want to know about interface in c# .net? how do achieve multiple inheritance in c#...got some material in google..not getting clear idea..can anyone explain me with understanding example?

Software Development
Member Avatar for Jugortha
0
159
Member Avatar for MylesDBaker

Hello everyone, I am having some difficulty with a class assignment, partially because the professor has assigned it before we have covered the material. I have created a general case for the classes, but I really don't know what the assignment is asking me to do. Any help is appreciated, …

Software Development c++
Member Avatar for Lerner
0
201
Member Avatar for ROTC89

ok i have everything done for my program but it says i didnt declare myQ i dont understand some help would be nice here is the main #include <iostream> #include "queue.h" using namespace std; int main() { Queue myQ; int i; for(i=0;i<SIZE;i++) { myQ.enqueue(i*2); } myQ.dequeue(); myQ.dequeue(); cout<<myQ.front()<<myQ.back()<<endl; while(!myQ.empty()) { …

Software Development c++ queue
Member Avatar for ROTC89
0
128
Member Avatar for resduq

hi, i'm workin on a lab for an intro to computer science class which deals with c++... one of the ten parts of it says the following Read about the getline command for fetching an entire line from a input stream. Then make a text file of mixed words and …

Software Development c++ file-stream
Member Avatar for ArkM
0
167
Member Avatar for mjfall01

My name's makhtar new member. i was looking at the website and really like it. talking about that i have a huge problem and i need help. Can somebody help me urgently. You are to develop a program for an auto dealership. This program will keep track of the auto …

Software Development c++
Member Avatar for William Hemsworth
0
269
Member Avatar for revini

Hi all, Can somebody help me pls. I need to create an array of strings using a set of string pointers. char *name1 = "aa"; char *name2 = "bb"; want to make an array like char *nameall[] = {name1, name2}; But this does not work :( Is there a simple …

Software Development c
Member Avatar for revini
0
112
Member Avatar for BITMAN2124

I want redirect output console program to memory. It can be specified memory buffer, or buffer that I can gert ptr to later. I need to specifiy input and output of program and can do this with tmp file+redirect I/O, but that expensive operations+invloves tmp files. I know redirect output …

Software Development c
Member Avatar for BITMAN2124
0
310
Member Avatar for replic

Hi everyone, as the heading already says i want to check whether a folder is a network share or not. So far i tried to achieve this by reading the file attributes but that did not lead to the right solution. If anyone here knows how to do this please …

Software Development c++
Member Avatar for replic
0
464
Member Avatar for Tekito

There a lot of times in my program where I have large arrays of data and I would like to use the power of SQL commands (SUM, GROUP BY, INNER JOIN, ORDER BY) on this information. It is a great tool when you are doing anything beyond the most basic …

Software Development visual-basic
Member Avatar for Tekito
0
214
Member Avatar for Foe89

I don't usually ask for help on these but I missed a day of class and I'm a bit out of the loop. We're going over structures and for HW my instructer likes to do code fixes where theres code with errors that we need to correct. Anyways, I'm reading …

Software Development c++
Member Avatar for vmanes
0
498
Member Avatar for bondo

I have no clue why this isn't working. The top part that reads into size, shortTime, longTime, and threshold work fine. Down below where I try to do the exact same thing and read into x, i get segmentation fault every single time. It seems to me that everything is …

Software Development c file-system
Member Avatar for Narue
0
150
Member Avatar for DLightman

I have a bunch of sort methods in a class: [CODE=cplusplus] typedef int DataType; void bubbleSort(DataType theArray[], int n); void insertionSort(DataType theArray[], int n); void mergesort(DataType theArray[], int first, int last); void quicksort(DataType theArray[], int first, int last, char * pivot_type); void selectionSort(DataType theArray[], int n); [/CODE] In my main …

Software Development c++
Member Avatar for DLightman
0
88
Member Avatar for superman71903

I am fairly new to Python, so writing code in it is complicated right now. I wanted to know if anyone knew of a code to send a process started on a workstation to a multiprocessor supercomputer where the job could be finished while still allowing the workstation to be …

Software Development python
Member Avatar for superman71903
0
127
Member Avatar for new_2_java

Hi all, I have a simple JFrame windows with two JLabel, two JTextField and two JButton. I use SpringLayout to display controls in on the frame. But when I run the application, the windows is displayed in a very small size. Only the two buttons are displayed. But when I …

Software Development java
Member Avatar for BestJewSinceJC
0
236
Member Avatar for mrjoli021

why won't this work? i have a txt file that i need to read into a matrix. i want to read into a char array so i can analyze each char separate. String fname = "c:\\game.txt"; char[][] matrix = new char[4][4]; private void readFile() { try { Scanner s = …

Software Development java
Member Avatar for BestJewSinceJC
0
255
Member Avatar for Barvik

This is QT btw. I get the following error when i write "make" in the terminal window: [code]QObject::setParent: New parent must be in the same thread as the previous parent[/code] here's my headerfile: [code]#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QDate> #include <QMainWindow> #include <QTableWidget> class QAction; class QLabel; class MainWindow : …

Software Development c++ qt
Member Avatar for Barvik
0
257
Member Avatar for hellIon

hey guys i am using miracle c compiler on windows xp.... i am trying to figure out how does pointer to functions work..... i have gone thru many tutorials but all have them failed to compile.... [code] #include <stdio.h> int sum(int x, int y) { return x + y; } …

Software Development c
Member Avatar for Narue
0
136
Member Avatar for MaxVK

Hi there. I am using a RichTextCtrl on a window with a toolbar. The toolbar has a save button on it that is disabled by default when the application starts. I need this button to become enabled when the user changes something in the RichTextCtrl, but I'm having trouble working …

Software Development python
Member Avatar for MaxVK
0
81
Member Avatar for axfv

I can use ShellExecute to easily open a URL in a new default browser window. I'd like subsequent URLs to be opened in the same window, but ShellExecute always opens a new window/tab. I've been looking on google and msdn, but there doesn't appear to be a simple solution. Do …

Software Development c++
Member Avatar for dickersonka
0
119
Member Avatar for rmlopes

Hi all, I was developing my app under Linux, using the Loki library. No I am trying to work on it using visual c++ under windows XP. I can compile without errors both my project and the loki library, which created a loki_D.lib. I include this .lib through the makefile. …

Software Development c++ visual-studio
Member Avatar for rmlopes
0
205
Member Avatar for sonia sardana

I have made two resource files,named 1)Form1.en-US.resx Name Value Button1.Text English 2)Form1.fr-FR.resx Name Value Button1.Text France My Code is as Under- [code]Imports System.Globalization Imports System.Threading Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim ci As CultureInfo Dim aL As New ArrayList() For …

Software Development vb.net
Member Avatar for sourav bansal
0
232
Member Avatar for AcidG3rm5

[code] //checks for leap year bool checkLeapYr(int year) { bool isLeap; if ((year%4=0) && (year %100!=0) || (year%400=0)) //error here. Non-Ivalue assignment { isLeap=true; return isLeap; } else { isLeap=false; return isLeap; } }//end function check leap year [/code] i have the above function to check if a year is …

Software Development c++
Member Avatar for AcidG3rm5
0
166
Member Avatar for gangsta1903

As far as I know, exceptions that are not subclasses of runtime exception or error should be caught (handled). When a file exception occurs, it should be caught because its a subclass of exception class, but how can it be recovered? If file is not found,it sounds silly to recover …

Software Development java
Member Avatar for gangsta1903
0
102
Member Avatar for kitty7

Hello, I'm am really new to C++; I've only been doing it for a couple of months. However, in my class, I have no idea what I've been doing wrong...I'm posting my program and the assignment because I desperately need the insight. I'm not sure if I am in the …

Software Development c++
Member Avatar for kitty7
0
138
Member Avatar for ting_ting

this is question and the answer...but i cannot compile it in dev c++ correctly..help me //(a) Get five integer numbers from the user. //( Store the numbers in an array called Number. //© Display all the numbers on screen. //(d) Modify the program so that it prints the reverse of …

Software Development c
Member Avatar for Narue
0
137
Member Avatar for ddanbe

Anyone out there any ideas why this compiles and runs? I'm using Visual C# 2008. [CODE=csharp]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public enum fluf_value { thegood, thebad, theugly, }; static fluf_value MyFunc() { return fluf_value.theugly; } static void Main(string[] args) { MyFunc(); …

Software Development
Member Avatar for ddanbe
0
193
Member Avatar for mgirl

Hi, My change counting program runs perfectly except the counters don't return to 0 when I try another number. The change adds up from the first try. Is there any way to fix this? [icode] #include <stdio.h> int main() { int toonie=0, dollar=0, quarter=0, dime=0, nickel=0, cent=0; float amount, change, …

Software Development c
Member Avatar for ajay.krish123
0
294
Member Avatar for ccandillo

I am trying to run the following screen scraping script but it's not displaying any output. Can someone tell me what I'm doing wrong? [CODE=python] from BeautifulSoup import BeautifulSoup import urllib url = 'http://toronto.en.craigslist.ca/search/cta?query=civic&minAsk=min&maxAsk=max' doc = urllib.urlopen(url).read() soup = BeautifulSoup(doc) tags = soup.findAll('p') for tag in tags: addate = tag.contents[0] …

Software Development python
Member Avatar for ccandillo
0
174
Member Avatar for Sally123

I was wondering if it was possible to bound 2 combo boxes to each other. the first combo box with a set of information. Based on what the user selects, the second combo box changes. this involves 2 tables. table 1 ProductID Descritption table 2 Id FK_ProductID Category example: the …

Software Development vb.net
Member Avatar for dickersonka
0
116
Member Avatar for gab_sk

Hi, I have a python script which uses a COM object. This script works correctly when I run it from pywin, however, it does not run when I run it from windows command line - it throws an exception occurred in this COM object. I know that this COM obj. …

Software Development python
Member Avatar for jlm699
0
140
Member Avatar for prushik

I would like to know once and for all how to convert a double to a const char* I've tried it a few times, but have never succeeded, I know it can be done, but I haven't figured out how to yet. I've tried some different things. Sometimes it won't …

Software Development c++
Member Avatar for Seta00
0
2K
Member Avatar for drgenius

You are the owner of a sportswear store that sells tennis shoes of three different brands. The shoes have different prices, as follows: 1. Nike: $100.95 2. Sketchers: $125.5 3. Adidas: $92.45 Write a program that does the following: • Ask the user to enter a product number (1 3: …

Software Development c++
Member Avatar for drgenius
0
250
Member Avatar for tomtetlaw

Hi all, Im making a test text game and i got this error when i was trying to run it, after i had told it i wanted to attack: [code=python] Traceback (most recent call last): File "/home/tom/Desktop/Python/Text game/main.py", line 109, in <module> main() File "/home/tom/Desktop/Python/Text game/main.py", line 105, in main …

Software Development python
Member Avatar for tomtetlaw
0
251
Member Avatar for raavi.munaf

Can any body show me the code to use usb mouse as an interface device [B]ie usb mouse driver code in .asm[COLOR="red"]?[/COLOR][/B]

Software Development assembly
Member Avatar for raavi.munaf
0
123
Member Avatar for Tellie

Hi All I have a select statement: [size=2]Select PERMISSION_BUTTON_ID from ALC_SECURITY_PERMISSION where ROLE_ID = 1 Now I want to store / retrieve the values of the field that I am querying without using dataset. Is this possible? If yes how can I do this? Is it possible that I declare …

Software Development dataset sql vb.net
Member Avatar for bruce2424
0
170

The End.