132,730 Archived Topics
Remove Filter ![]() | |
Hello, I'm tring to read a text file and pull pieces of the line into separate functions. I can open and close the file in the main. When I use the getline() it reads the whole line, I only want to read up to a certain point using strings instead … Software Development c++ file-system | |
I know this is a slightly esoteric question, but I'm just curious how you guys define your function macros. Do you put a semicolon at the end or not? For example: [code=cplusplus] #define EVENT_RESIZE(_event) ::SDL::HandleEventResize(_event, hScreen, fnSDLKey); // or #define EVENT_RESIZE(_event) ::SDL::HandleEventResize(_event, hScreen, fnSDLKey) [/code] In the first case, the … Software Development c++ | |
Hello, i have a easy problem for u guys =). I have searched the webb but can't find a solution for it. How do i solve this kind of problems, Sorry for the spelling as usual ;)? [code] Text::Text(const char ch) { strcpy(m_str,ch); }[/code] m_str is a char *. ch … Software Development c++ | |
i want to to able to access to a class's vairable but this varible is not declared class's header file it is in the cpp file i couldn't write a method that acces to it because methods cannot access it(since the variable is not in the header file) how can … Software Development c++ | |
I have a VB6 application that uses DAO to read and write MS Access files. Since the program uses Access files exclusives, it was written in DAO instead of ADO. The recordsets within the program are based on queries in the database. I need to add a field to the … Software Development visual-basic | |
Just some questions. Can Visual C++ express be used to code non-CLI applications? What is the proper way to do this? What's up with the stdafx.h header? Can somebody explain what that is for please? How come I can't use stdio.h for C code in it? (yet printf and other … Software Development c++ microsoft visual-studio | |
My hosting server is located in Texas and when I use the localtime() function, I get Texas local time rather than Massachusetts local time (where I currently reside). I want to standardize all my time information so that when I store it into the MySQL database, I store GMT rather … | |
Hi, I need some help writing this program. The question states to write a program that specifies three one-dimensional arrays named current, resistance, and volts. Each array should be capable of holding 10 elements. Using a for loop, input values for the current and resistance arrays. The entries in the … Software Development c++ | |
how would i write a maximum number test function that will take any number of arguments and returns the greatest of them??? i know i need to used recursion function, but how should i declare the function?? here is what i have so far [code=c++] double maxNumber( double inputNum,A double … Software Development c++ | |
Hi all, Im having some problem in my application .i want to take input of tasks and preceding activities. What I want to do is to draw circles for the given number of tasks and connect them according to their preceding activities.e.g, if user input 1,2 for preceding activity 3 … Software Development | |
The purpose of this assignment is to give practice programming in writing functions, developing algorithms and using loop structures. Positive integers can have the following personalities: prime or composite, happy or unhappy, square or not square, smug or not smug, and honest or dishonest. You will write a C++ program … Software Development c++ | |
Hi all, Im having some problem in my application .i want to take input of tasks and preceding activities. What I want to do is to draw circles for the given number of tasks and connect them according to their preceding activities.e.g, if user input 1,2 for preceding activity 3 … Software Development | |
hey there, does anyone know a way that will allow the user to enter as many positive integers as they want, for each one i need a message to appear that states whether the number is odd or even? cheers guys Software Development pascal | |
Hi basically i have a program that gets a handle on a USB device lusing '\\\\?\\e:' but i want to be able to get a handle on it using its device instance id 'STORAGE\REMOVABLEMEDIA\7&324ACC50&0&RM:' How do i impliment this, i have tried the following below and it just doesnt work … | |
the address of the array is contained in the array name that is a pointer to the array it means when we are declaring an integer array a[5] we are getting 10 bytes for the array elements and two bytes for the pointer a? means 12 bytes are occupied in … Software Development c | |
Can someone help me with my delete function? I am having trouble figuring out why my delete function is not reporting false when attempting to delete a bank id that does not exist. Thanks. [code=c++] bool Bank::RemoveBankNumber(int bankID) { Bank *temp, *back; if (head == NULL) return false;//(isEmpty()) return; // … Software Development c++ linked-list | |
Hi there^_^, How can I create a class from this program? [code] #include <iostream> #include <ctime> using namespace std; int main() { // Obtain the total seconds since the midnight, Jan 1, 1970 int totalSeconds = time(0); // Compute the current second in the minute in the hour int currentSecond … Software Development c++ | |
I am trying to learn the Kexi database program, and am at the point of looking into scripting. I know this can be done using Python, but I can't find any tutorials or lessons on how to do this. In fact, I can't find much of anything relative to Kexi. … Software Development python | |
I want to create a C++ Program to edit the Windows Registry. For example to change the home page of internet explorer. But I don't know how to read or edit the help. I am doing this program just for my own self and is not a part of homework. Software Development c++ | |
Hi, this is my first post here, I searched the forum and google for my error and I found some results but they were not about exactly this error, if there is and if I missed it, I'm so sorry already. Here is my problem; const int flightNo; int ***Flights; … Software Development c++ | |
how to write c code function implementing the first heuristic algorithm [CODE] void binpack_firstfit(int item) { int s = 0; int bin_Value; do{ bin_Value = bins[s]; if (bin_Value + item < BIN_VOLUME){ bins[s] = bin_Value + item; s = NUM_BINS; } }while(s++ < NUM_BINS); }[/CODE] | |
Dear friends , file is test.sh [CODE] echo expr 2+4; [/CODE] its give result 2+4 not 6 so plz tell how can i get the right result sanjay Software Development shell-scripting | |
Hi all, (I apologise if this thread is out-of-topic) I need some ideas for my project. I have to develop a web application for some users to approve some documents. The problem I have is that I [U]can't[/U] give these people a login account (due to my project requirement). I … | |
I have to pass a char as a parameter using the stack, but the stack doesn't allow anything smaller than 16bits. So I put a char on a 16bit register, push it into the stack. But how do i get the char from my function in order to work with … Software Development assembly | |
Hi all,i am very new to shell and awk scripting,..hope u guys can help... I need help in sorting and grouping the data in one flat file.The file look like this: 040171011140820070000000009650244002933170003000000075272 1F921338300506 01082007000014000000027665 1H912279980109 01082007000012000000042420 1S503377200110 01082007000014000000005187 1S503377200110 01082007000688000000005188 3SF98 I need to rearrange the file to become like … Software Development shell-scripting | |
Hi all, My cosin give me your site today when I called him, he kind of had the same problem. I have a file and i'm trying to read from this file as follow ID, first, last name and from the numbers (buyer.type) two things type, and how many pound, … | |
Plz help me.. I want to install my selfmade proj into Different P.C. by using a single database.. i've connected every P.C. into a network, and also install VB 6.0 in its unit togather with my project, but when i try to add data.. it never updates their databases.. Software Development visual-basic | |
I am a newbie at coding C++. I have a program idea to make, like a audio media player or a DJ program...Kinda like windows media player and the others. If anyone could be able to help, that would be greatly appreciated. | |
I have this code [code=cplusplus] CPoint* points; int numPoints (200); points = new CPoint[200]; [/code] I have another class called CPlanet, and a bunch of pointers like: CPlanet* pSun = new CPlanet; ... and CPoint and CPlanet call the same functions, so I would like to use -> to call … Software Development c++ | |
**MY QUESTION IS BASED ON A COURSEWORK** I am trying to produce a sin wave using *'s to represent sample values for 1 cycle of the wave. For example when the user enters 7 the output should look like this: .........................................................* ..........................................................................* ..........................................................................* .........................................................* .......................................* .......................................* .........................................................* please ignore the … Software Development c++ | |
Hello everyone...I have been learning Java in our school using BlueJ and there is a certain problem i need to work out... I need to create a frame with four panels in it...like this.... [ATTACH]4481[/ATTACH] Sorry if i can't provide the codes because it's really hard learning java... Can anyone … Software Development java | |
Ok so this is really annoying me...I'm trying to go through and parse a bunch of .csv files for content but I can't get past trying to open them. I want to read the directory contents and then open the specified file. I have the code working so it prints … | |
hey I would see on the screen like that UNDER THE mınumum array IT SHOULD WRITE MAX OR MIN WHATEVER YOU CHOOSE for example if we write 2 arrays 3.4 5.6 0.6 8.6 it must write on the screen " Arrays 3.4 5.6 0.6 8.6" MIN MUST WRITE UNDER 0.6 … Software Development c | |
Hi friends, I have a problem where I am reading a string value from data file through my Record Set into basic string and then trying to convert it into LPCSTR or say LPSTR and where I am getting into trouble. The record set that i used is as follows: … Software Development c++ | |
I am relatively new to vb.net but have many years of programming experience. I am seeing a behavior that I do not understand using vb.net 2005 on a windows form. You have a command button and some radio option buttons on the same form. ie Go button, followed by 3 … Software Development vb.net | |
Home Work Problem. I understand what the program is suppose to do, but I do not understand how to implement it using Link List. Please help me to understand the problem. Write a program to perform ariththmetic with integers of unlimited size. You must read data from the input file, … Software Development algorithm java linked-list | |
I am new to C++, and I am currently learning pointers. I am fully aware of the whole homework help restriction guideline stuff on this site. I am slowly understanding the logic of pointers. I just need help with the coding syntax. My assignment is as follows: I have a … | |
Hey, what does the following code do? [CODE]#define _ -F<00||--F-OO--; int F=00,OO=00; main() { F_OO(); printf("%1.3f\n",4.*-F/OO/OO); } F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_ }[/CODE] I found this interesting question from [URL="http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c"]http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c[/URL] Software Development c | |
Hello, I am currently working off the sticky thread filled with practice problems etc. I have got a couple of the practice problems out of the way, and I am currently working on a program that will find the factoral of a number entered. So far i have an array … Software Development c++ | |
Hi Guys.., Where can i find this particular package javax.media.*; and is there any specific link there to download the javax packages...? If so kindly help me out... Thanks in advance.. Vinod Software Development java | |
Is there a simple way to create multi-line tool/tip text boxes ... nothing special, no balloons or anything, just multiple lines ??? Software Development visual-basic | |
Is there a way to simplify this code? I tried iterating around just one [I]for [/I]loop, converting the loop variable into a String and concatenating it with the variables arreglo2, 3 and 4; but it doesn't work. It doesn't even allow me to concatenate the variables ... [code] Indice = … Software Development java | |
sir/madam i m a new student to learn VB.net.But i know the visual basic 6.0.so now i want to know what is the difference between .net and visual basic 6.0. Software Development vb.net visual-basic | |
has anybody here used the free Oracle 10G database with VB6?? if so, is it easy to setup?? is the connection string similar to an MS Access connection string?? I have heard it is probably the best database. Software Development oracle visual-basic | |
suppose u r makin a class to carry out oprations on complex numbers... over loading the '+' operator for adding objects' made frm dat class is simple..... but how would u carry out this operation??? a= 10 + b; // it's not (b+10) where a & b are objects of … Software Development c++ | |
AA All i want to know about future of Vb.Net i am a vb6 and Vb.net developer since many time. but now i see from every where that ever body says that C# over comes vb.net in future and vb.net no more available and finish. so how much its true … | |
What is the need for calling default constructor by JVM? why the JVM should intiializes default values to the data fields if the constructor is not there in our class? Software Development java |
The End.