132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blsnls

My problem with the program listed below is when the question asked for the title of the book and you type in more than one word with white spaces inbetween the words like "History of Me" it will skip the next question. Any help will be appreciated. #pragma hdrstop #pragma …

Software Development c++
Member Avatar for mrnutty
0
85
Member Avatar for DdoubleD

Can anyone tell me how to get my blocks of code to automatically indent when I place the final closing brace--"}". This works fine when I am coding in C# and I know there must be a way to enable this feature for CPP source documents.

Software Development c++ ide
Member Avatar for DdoubleD
0
143
Member Avatar for dumbncool

Hi, CAn anyone tell me what does the following statement do in C. [icode]*p++ = val[/icode] My understanding is that because ++ and * have right-associativity, it is equivalent to [code=C] p++; *p=val; [/code] Similarly [icode]val = *--p[/icode] is equivalent to [code=C] p--; val = *p; [/code] Is it correct?

Software Development c
Member Avatar for Aia
0
150
Member Avatar for Sylenas

Hey, i am working on a project that saves and load text files just so i can get the coding down for later projects. I am able to specify the location of the file to load eg. the Load File Dialog and the user specifies the location of the text …

Software Development vb.net
Member Avatar for kvprajapati
0
139
Member Avatar for trikker

I'm having trouble overloading >> in a fairly specific manner. When the program reads from a file, I want it to read the data into multiple classes. However, you can't pass more than 2 arguments to an istream overload. I've fiddled around with making one class a base class of …

Software Development c++
Member Avatar for GDICommander
0
146
Member Avatar for PhiberOptik

Hey folks, Now java may be the wrong language for this but I would like to get a motion sensor program going (if possible). Basically I already have hooked my webcam up, and can import it to a window via java. I am trying to find a way to basically …

Software Development java webcam
Member Avatar for jakx12
0
387
Member Avatar for scias23

i just dont know how to convert this. i have three integers for month, date and year. year is a two digit input. i want to convert these three into one variable type long.. but i dont know how to do it. i tried adding the three integers, but i …

Software Development java
Member Avatar for scias23
0
107
Member Avatar for hket89

Anyone know that c program got wat type of error?

Software Development c
Member Avatar for LordoftheFly
0
191
Member Avatar for BOONISRIDHAR

Hi am new to Java and am developing a multi agent application using Jade. I have coded 1 agent using Java and the other agent using vc++. My problem is communication between java and vc++. 1) I need to run the vc++ program within the java program for which i …

Software Development c++ java
Member Avatar for BOONISRIDHAR
0
79
Member Avatar for LordoftheFly

Hey guys. Thanks for taking the time to read this post. I'm relatively comfortable with C++ and am taking a class in C for the first time. I'm finding it difficult and frustrating to adapt to the new language. It's kind of like trying to box with a hand tied …

Software Development c
Member Avatar for LordoftheFly
0
165
Member Avatar for invisal

Recently, I have wonder how to execute machine code instruction from memory in C/C++. I am aware of data execution protection. Anyway, I have this piece of code: [code=cplusplus] int main() { // allocate 2 bytes for storing machine code char* mc_add = (char*)malloc(sizeof(char)*2); int reg_eax; // for storing register …

Software Development c data-protection visual-studio
Member Avatar for MosaicFuneral
0
280
Member Avatar for ramabala

how to check if a directory contains any files or not?if files exist how to delete them in vb?

Software Development vb.net
Member Avatar for sknake
0
1K
Member Avatar for vivekarora

Hello Friends, Generally, we have pure virtual function without body, but C++ does allow to write pure virtual function with body. Can anyone suggest any use-case where we need to write pure-virtual function with body? Regards, Vivek

Software Development c++
Member Avatar for vivekarora
0
188
Member Avatar for aroopv

Urgent Help needed, I am updating an access database using C#. Everything works fine except when there are multlines in text box controls, update command doesnot update these textboxes to text field or memo field. On screen I have a grid from the same datasource as that of the textbox …

Software Development c#
Member Avatar for sknake
0
208
Member Avatar for crys0011

Hi everybody, I'm an engineering student. Hee i would like to discuss about some basic and simple C++ interviews questions. I thnk the persons interested in it will participate. Ok can i ask one question? What are the differences between C language and C++ language?

Software Development c c# c++ engineering
Member Avatar for mrnutty
0
127
Member Avatar for AssaultM16

So I am trying to use multiple source files for my text based game. In Code::Blocks in doesn't even compile it says " cannot find -lfunctions.h". In Dev-C++ it compiles but the function doesn't work properly Here is the code Main.cpp [CODE]#include <iostream> #include <string> #include <fstream> #include "functions.h" using …

Software Development c++
Member Avatar for AssaultM16
0
99
Member Avatar for nickcampbell

Hi, I've got two tables in a database - one a list of schools (around 50 entries), and one a list of pupils (around 17,000). Both are spatially-attributed using PostGIS. Basically I need to allocate each pupil to their nearest school. Currently I'm looping through the schools repeatedly, using the …

Software Development multithreading postgresql python sql
Member Avatar for woooee
0
2K
Member Avatar for DoEds

I wonder what's the final values of the variables "a, b and c" after this program... It is in pseudocode.... [ICODE]start a = 2 b = 4 c = 10 while c > 6 perform changeBandC() endwhile if a = 2 then perform changeA() endif if c = 10 then …

Software Development c
Member Avatar for Aia
0
117
Member Avatar for ddanbe

Have looked around but I could not find an answer to this question. Is there a difference between these two field initialisations? Or does it really not matter and is it just a matter of style. [CODE=c#]class aClass { private int aField; public aClass() //default constructor { aField = 42; …

Software Development
Member Avatar for ddanbe
0
144
Member Avatar for amol14007

Hi, A specific set of range <10,20> <20,30> <30,40> <40,50> i have series of numbers in a buffer; say.. 11 14 19 23 28 45 49 is present in char* noInBuff; Every time if the number falls in specific range for the first time then i have to replace it …

Software Development c++
Member Avatar for VernonDozier
0
285
Member Avatar for logine

please help me to have a program that will compute for n! (n factorial) which is the product of all numbers from 1 to n.

Software Development c++
Member Avatar for mrnutty
0
93
Member Avatar for almasari

Task: Write a program to grade a test and print the student’s score. The questions are in multiple choices form. There are 25 questions given in the test and each question has 4 choices; A,B,C and D. Assumed that there are 20 students taking the test. Each answer is stored …

Software Development c++
Member Avatar for mrnutty
0
93
Member Avatar for chuppy

All Java applications must contain at least one method. The name of this method is either main() or Main() true or false??

Software Development java
Member Avatar for JamesCherrill
0
112
Member Avatar for Dajer

Hi I have a textbox which contains Text. I want to find all the words in the text. (which seprate from each other with space). what should I do? thx for ur attention.

Software Development
Member Avatar for ddanbe
0
119
Member Avatar for rhoit

I was writing the program for revised simplex method in devc++ (windows) and it was working fine... Now I am using ubuntu and trying to run the same program.......(with few changes) i compiled successfully using g++ but when i run it run but showed error some what like: [QUOTE]rhohit@Trashbox:~$ g++ …

Software Development c++ ubuntu
Member Avatar for Salem
0
206
Member Avatar for Lingson

hi, I'm newbie in python and I'm using python 3.1 From the project ideas thread, I try to write a small module to calculate your age in years, months and days. Calculating the ages without the month (only years and days) would be easy, but adding the months makes me …

Software Development python
Member Avatar for leegeorg07
0
144
Member Avatar for Dajer

hi friends... I have Written some codes for adding and retrieving data from RMS: [CODE] public void commandAction(Command command, Displayable displayable) { if(command==exit) { destroyApp(true); notifyDestroyed(); } else if(command==start) { try { recordstore=RecordStore.openRecordStore("My RecordStore",true); } catch(Exception error) { alert=new Alert("Error Creating",error.toString(),null,AlertType.WARNING); alert.setTimeout(Alert.FOREVER); display.setCurrent(alert); } try { String outPutData[]={"Mary","Bob","Adam"}; for(int x=0;x<3;x++) …

Software Development java
Member Avatar for puneetkay
0
137
Member Avatar for yorro

This is my code: [code=VB] Private Sub NextForm() Form2.Show() Me.hide() End Sub [/code] [B]Problem: [/B]The first form fades out and the second form fades in. Between the transition of [B]Show()[/B] and[B] Hide(),[/B] the actual desktop is seen. The only solutions that I could think of is; 1. Not to hide …

Software Development vb.net
Member Avatar for yorro
0
405
Member Avatar for ScienceNerd

What's wrong with my if else then function? It complies fine (Dev C++) but it doesn't function properly. It displays all the messages together. [code] void data(void) { cout<<"How many hours did you work: "; cin>> total_hours; cout<<"How many days did you work: "; cin>> days; return; } void process …

Software Development c++
Member Avatar for tux4life
0
143
Member Avatar for poncho4all

Ok i have a calculator program, but it can only do positive numbers, can anyone point me in the direction to make it get negative numbers also? [code]#include <iostream> #include <iomanip> using namespace std; struct Node{ float number; Node *next; }; Node* push(Node *stack, float data){ Node *utility; utility = …

Software Development c++
Member Avatar for Salem
0
118
Member Avatar for Stefano Mtangoo

Hi all, I have been using PNG files for icons and they are good. But I want now to use xpm as they can be included just as I include header file. How do I do that? Any free tool?

Software Development c++
Member Avatar for Stefano Mtangoo
0
116
Member Avatar for shadwickman

Hello, I've just recently tried to make a class template whose constructor should be able to accept a variable amount of arguments of the class passed to the template. I have something like this, with the prototype inside the class definition, and the actual implementation of the constructor defined outside: …

Software Development c++
Member Avatar for shadwickman
0
167
Member Avatar for nani123

I have a python script whihc logs in some file. This script calls some outside bat file which also logs in same file. The out side program complains that it cant get lock on log file. The python script has lock to log file so it has to temporarily release. …

Software Development python
Member Avatar for Stefano Mtangoo
0
237
Member Avatar for namehere05

I have the following code and it wont compile, it says no matching function for call to `autop::autop(autop)' at this part [CODE]autop j = f();[/CODE] I don't understand why the copy constructor wont accept the autop copy Im sending it. [CODE]#include <iostream> using namespace std; class autop { public: autop(int …

Software Development c++
Member Avatar for namehere05
0
174
Member Avatar for akil007

Hi, Our project is based on bluetooth technology . the PDA is communicate with PC via bluetooth. So that what should do for write code in PDA as well as PC.

Software Development c#
Member Avatar for Dajer
0
81
Member Avatar for Samran

Hi, I ve been working on my assignment. Having problems. Please solve them for me. I will be thankful to you all. What I am doing, or want to do is, read a file in a PROCESS, read it character by character, send each character, one by one through pipe, …

Software Development algorithm c
Member Avatar for sathish_s
0
237
Member Avatar for VibhorG

Hi!!! I am making an window application in C# .NET, in which I want that when user enters any text in textbox and if there is spelling error then,the system should mark it with red line to tell the user that spelling is wrong. Like here in forum when we …

Software Development
Member Avatar for Diamonddrake
0
133
Member Avatar for java dummy

I am trying to say " if a number is divided by 2 and the modulus is equal to 1" if(count/2% == 1) or if(%(count/2) == 1) It's not working. What am I doing wrong? Would really appreciate help. Thanks.

Software Development java
Member Avatar for java dummy
0
92
Member Avatar for and12

I can't seem to control the size of the applet when it appears in the appletviewer and i assume that will be how it looks on the web. Right now, on the web, my applet is too big: [url]http://blogfriendlyzone.webs.com/WheelOfFortune/WheelOfFortune.html[/url] When i run it as application, it obeys setSize to make …

Software Development java
Member Avatar for llemes4011
0
98
Member Avatar for gretty

hello I am reading a text file & trying to store some information into a 2d array. [B]My problem [/B]is when I go to store a piece of data into the 1st row (1d area ?:P) I get this error error: [QUOTE] incompatible types in assignment of `float' to `float[25]' …

Software Development c++
Member Avatar for mrnutty
0
123
Member Avatar for mn_kthompson

A couple weeks ago I was reading a thread about character counting and Vegaseat made the comment that [QUOTE]Function calls are time expensive in Python, so I modified Sneekula's count_char2() approach by replacing all those calls to islower(), isupper(), isdigit() and isspace(), and also changing the order of if/elif to …

Software Development python
Member Avatar for vegaseat
0
277
Member Avatar for EAnder

Im confused and I need to know how to read from a tkinter textbox in order to create a text editor. Also would it be possible to have certain words colorized as you type in words? I would like to make this into a code editor possibly. Any help would …

Software Development python tkinter
Member Avatar for vegaseat
0
821
Member Avatar for muzhe

hi, I am wondering if you can give me some ideas about below: I've a program which uses 3 dimention cartesian co-ordinate system, I've written a program which generate input files for that program based on the 3D co-ordinates. However one thing that I dont get hold of is how …

Software Development c++
Member Avatar for muzhe
0
170
Member Avatar for metalclunch

Hello, it's Metalclunch here, and I've got a pretty simple and straightforward question: How would one implement a scripting language? Prefferably Python. Thing is, I'm pretty much a beginner, I know about the if, else if, for, while statements and functions. Okay. Here goes. I've made a very simple text-based …

Software Development c++
Member Avatar for Tigran
0
163
Member Avatar for vs49688

hey, I have a program that uses a certain algorithm to decrypt dll files from the game, half-life. but once i have decrypted them, the game crashed whenever i try to start it with the un-encrypted files. How would I reverse the algorithm, making the program encrypt them instead of …

Software Development algorithm c
Member Avatar for bughunter2
0
260
Member Avatar for trikker

This program reads information from a text file with an istream_iterator and initializes a vector with the data. Everything has been working fine, but when I created a constructor for the class to use for insertion into the vector, I get a compiler error involving the istream_iterator. [code] #include <vector> …

Software Development algorithm c++
Member Avatar for DdoubleD
0
185
Member Avatar for papanyquiL

Hi all, I'm pretty fluent with C#, but I was wondering what everyone's recommendations would be as far as an intermediate level book for C#. I pretty much have a grasp on the language, there's just some small details that I need to enhance my knowledge on: some interfaces, class …

Software Development c#
Member Avatar for papanyquiL
0
146
Member Avatar for a_kumar

Hi Team, In our Project We are using V6 and Microsoft office 12.0 object library to access the Ms Word into the Vb Application , every thing is working fine English , we have a requirement to Support the Chinese language also . kindly advice what are the step need …

Member Avatar for UniversalClicks
0
111
Member Avatar for fareast87

Hi, I am using a code to read a grayscale image and store the pixel value in a 1D array. But the code is taking a default image(though i am providing the complete path for the image to be loaded) and the height and the width are returned as -1. …

Software Development java
Member Avatar for fareast87
0
126
Member Avatar for mayanktalwar

>>> print "hello world" syntax error :invalid syntax(<pyshell#0>, line1) where is the prob

Software Development python
Member Avatar for sneekula
0
70

The End.