132,726 Archived Topics
Remove Filter ![]() | |
parser for c language help me -------------------------------------------------------------------------------- i want parser in language i have grammer is that SS->AAaBBb AA->a|b BB->aAA this a letter for language a ,b [code=cplusplus] int lexan() { int lookahead; lookahead=getchar(); return t; } int match(int t) { if(lookahead==t) lookahead=lexan(); else error(); return lookahead; } void error() … Software Development c | |
i've created a linked list which stores some info about documents such as code,title,creator,filename,... i've also stored some info about some other documents in a *.txt file i've got a search function in my program that gets a code from the user and tries to find that code either in … Software Development c++ ios linked-list | |
Dear All, thanks in advance for helping me.... plz can anyone provide the url for the basic tutorials to practice the linux shell script?????? With regards, S.Rajesh Software Development shell-scripting | |
Hi All, I'm doing a mini project which is adding items to the listview and calculate the total price in a label outside the listview. How do I print the final receipt with all the sold items listed and the total etc Thanks in advance for ur help How do … | |
I want to declare my linked list as external in my header file..so that my head and current pointers are globals..i have done something like this but i dont know where the problem is..i want the values of head and current to be initialized and used by all the other … Software Development c++ linked-list | |
Hi I am trying to make function which returns a substring as a [ICODE]char*[/ICODE], but [ICODE]string::substr[/ICODE] returns a [ICODE]const char*[/ICODE]. So I have managed to make a function that will return a substring as [ICODE]char*[/ICODE], except when I was comparing the speed of the two, I found that [ICODE]string::substr[/ICODE] was … Software Development c++ | |
Hello, I'm having an issue with a line of code that really doesn't seem that it should be giving me an error. Before posting, I've googled this error and looked at related links with no help whatsoever. Most of the "solutions" were for correctly-placed brackets or different names (since some … Software Development c++ | |
following program compiles Successfully, but exe gives above error, kindly can someone tell what is wrong using System; //using System.Data; //using System.Data.SqlClient; public class zzz { public static void Main() { try { string t; t = System.Environment.GetEnvironmentVariable("QUERY_STRING"); char[] v; v = new char[1]; v[0] = '='; string[] u; u … Software Development | |
Hello I have older c functions which I want invoke in new cpp program: [code=cpp] // Example of old c function void c_function(int** x, int r, int c) { int i, j; for (i = 0; i < r; i++) { for (j=0; j<c;i++) printf("%i ", *(*(x+i)+j)); printf("\n"); } } … Software Development c++ | |
Can you help me with this question 1. Having the following function headings: void GetValues(int &length, int &width, int &depth); void CalcCubic(int length, int width, int depth, int &cubic); void PrintCubic(int cubic); Write a C++ program that asks the user to enter the length, width, and depth of a swimming … Software Development c++ | |
i wanted to put a Exit for statment. how can i put it Public Class Form3 Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim i As Integer Dim Name As String For i = 1 To 10 Name = InputBox("Enter the Name") Exit For Name="Done" … Software Development vb.net | |
[CODE] /* Super Simple Login - Version 1.0 Created By - FTProtocol */ #include <iostream> #include "connect.h" using namespace std; char* cookies; int exec_gunz() { char* buffer = (char*)malloc(120000); char *path = (char*)malloc(256); initialize_winsock(); memset(path,0,256); strcpy(path,"/common/prelaunch.nhn?gameId=u_gunz&subId="); connection conn = connect_to_server("gunz.ijji.com",80); http_get(conn,"gunz.ijji.com",path,NULL,NULL); memset(buffer,0,120000); rrecv(conn,buffer,120000); cookies = http_getcookies(buffer); endconnection(conn); free(buffer); return 0; … Software Development c++ | |
Parking Software Parking software is to be installed on parking areas P1 and P2 at Centurion Plaza. Parking P1: Only for VIPs. Free of Charge Available Area for: 10 cars Parking P2: For Public use VIPs can Park if P1 is FULL Charging Rs. 05 / hour VIPs will park … Software Development c++ | |
hi i have dialog based application... i want to know when i minimize the dialog ...and right click the minimized dialog ...a menu (taskbar menue ) with "restor" and "close" and "about" options will appear..for me its not how can i do that.... any kind of help will be appriciated … Software Development c++ | |
can anybody give me the program to solve booth algorithm............ | |
Hi guys, i want to add a character to the begining and the end of a multilne text box and save it into a file. e.g 1234 6789 9087 output '1234', '6789', '9087' i will appreciate the code to achieve this in vb6 Software Development visual-basic | |
![]() | I am writing a launcher program for some software. How can I get the value from HKEY_LOCAL_MACHINE\SOFTWARE\Argonaut Software\Croc2\1.00\InstallPath and store it as a string? Thanks in advance. Software Development c++ ![]() |
Hi, I need to convert english to morse code, atm Im using iterator and store the morsecode in vector. and store the result on new vector the problems is it'doesn't do the line properly. when I try to change the itr instead of store to new vector i't give me … Software Development c++ | |
Good day, Generally speaking, for C programming, what can I do, if the application which I am writing requires the heap to expand and contract dynamically? Software Development c | |
I have some problem with putting object in vector her's the code [code=cplusplus] #include <iostream> #include <vector> using namespace std; class Pair { public: Pair(int a, int b) {x=a; y=b;}; int get_x() {return x;}; int get_y() {return y;}; private: int x; int y;}; int main() {vector<Pair> set(); Pair* a1 = … Software Development c++ | |
Hello, I am trying to get the properties of a Microsoft's Notepad.exe window. I have an instance of this application running when I execute the code below. [CODE] #include <iostream> #include <windows.h> using namespace std; BOOL CALLBACK PropEnumProcEx(HWND hwnd, LPTSTR lpszString, HANDLE hData, ULONG_PTR dwData) { cout << "Property Label: … Software Development c++ | |
I have a parent form that has a combobox. Whn the form loads I get the data from the db and bind to the combobox. that works fine and here is the code I use in form load to cause this to happen: [code] conn.Open() cmd.Connection = conn da = … Software Development open-source vb.net | |
I'm really stuck on this Assignment and I need to find a solution ASAP before I get too far behind. Basicly, we're fuddling with inheritence and I've created 3 child classes from a parent 'Employee'. Each is a different type of employee. Right now, what I have is [code=cpp] Manager … Software Development c++ | |
Hello. I got a problem of that type: for example i have a simple program like this: [CODE]int main(){ sleep(10); }[/CODE] now if i define time to be 10 sec, prog works fine. [CODE]#define TIME 10 sleep(TIME)[/CODE] but i am trying to do something like that: [CODE]char time; // or … Software Development c | |
Hello! I am new here, I am posting as I can not find any help on sun.com java forums for my problem! Here what I posted: Hello all! I am intending to do a simple thing: a quick bird like made with 3 boxes: 2 for the wings, one for … Software Development java | |
Hi friends how to generate random numbers in between 0 to 1. I need to generate around 100 random numbers in between 0 to 1..please help me.. Thanks, Software Development c++ | |
Hi, I'm new here and need help with if problems. [code] int main(int argc, char *argv[]) { list<char> charList; vector<vectordata> myvector; if (argc != 4) { printf("Syntax : euro file\n"); return 0; } cout << argv[1]; if ( argv[1] == "e" ) { loadList2(charList, argv[2]); //printList(charList); loadList(myvector); encode(charList, myvector); printvectordata(vectorresult, … Software Development c++ | |
Having problems with the following... [code] // this is contained within "UF_styler.h" and can not be alternate ... [B]typedef int (*UF_STYLER_cb_f_t)(int dialog_id, void *client_data, UF_STYLER_item_value_type_p_t call_data);[/B] struct UF_STYLER_callback_info_s { char *object_id; int cb_type; int is_dialog_launching_cb; [B]UF_STYLER_cb_f_t callback_proc;[/B] }; typedef struct UF_STYLER_callback_info_s UF_STYLER_callback_info_t, *UF_STYLER_callback_info_p_t; .... [/code] [code] // my dialog.hxx file … Software Development c++ | |
So I'm trying to create a fairly simple program that allows a user to modify a list of games. The user can add, remove or simply call an enumeration of the games currently inside the list. The compiler keeps telling me that there is a problem with my use of … Software Development c++ | |
hi all I want to genrate a control corssponding to each checked items of checklist box control. will you help me . thanks in advance. Software Development | |
Hi I'm currently taking an introductory programming course and my final project is to write the infamous N-Queens program (find & display all possible solutions for N queens on an NxN board such that they cannot attack one another) using recursion I feel like I at least have a slight … Software Development c++ | |
hi how r u? i have solve to find out prime number. But i can not do this problem which is: if i take a number. supose it is 40. the program will display 1-prime, 2-not prime,3-prime upto 40-prime. plz solve my problem. thnk u. bye Software Development c | |
I am having problems with my program. I am altering it to show the GUI which should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, the value of the inventory … Software Development gui java java-swing | |
I am creating a properties JFrame for use in my GUI, and I wanted to save all of the data inputted into the frame into a file called config.properties. The Poperties class already has several convienent methods to save, load, and get properties, but it stores all the data in … | |
I'm finishinh up my game for submission. Right now I'm doing the menus, and it's highly procedural, nasty long-winded chunks of code, as you can imagine.. And I'm trying to implement the following logic as part of a huge compound switch block: If MENU_FLAG is STATUS, then display the status … Software Development c++ | |
GIVE ME YOUR CODE Not really. Anyways, I'm looking to create a program that simulates dialog. Why? For my own personal amusement of course. *pets evil cat* I've been jumping around languages until I find one that works. All I've learned is that I suck at every one of them. … Software Development c++ | |
Hey, Does anyone know how to pickle classes that have classes within them? I get back the top level attributes, but not the attributes under them. For instance: [code] import pickle class authorObj(): class authors(): pass q = authorObj() q.authors.name = 'somebody' output = open('test.pkl', 'wb') pickle.dump(q, output) output.close() [/code] … Software Development python | |
Can somebody please help my try to understand how to add an equals method to my Person, Purchase, and Customer class? I am very new to Java and I can't figure out how to call the equals test from main and have it reference to the other classes. Any help … Software Development java java-swing | |
I program board and card games in VB6 Prof on WinXP system. I am also a linguist familiar with several European languages, including Russian all of which I can use in Office 2000. Most languages in Roman(Western) script have accents and I use Character Map to produce what I need … Software Development visual-basic | |
Can some one help me??? I'm doing a basic Java course and need help with this code I'm trying to get this line to work but keep coming back with a "'.class' expected" I have tried different combinations but nothing is working for me. public void paintComponent (Graphics page) { … Software Development java | |
How can i add objects such as buttons, labels or textboxes at runtime? Software Development visual-basic | |
Hello, I have script to gather total FS usage size. I use to list of the FS's in another notepad file and this script will read from that file. finally it will give me output of total allocated space, used space, available space and percentage of space. This script works … Software Development shell-scripting | |
Can someone please tell me what I am doing wrong with this loop. I want to end the loop when either one of the tanks armour reaches zero. Also if I wanted to add more tanks how can I have the loop end? Thanks import random class Tank (object): def … Software Development python | |
From the given code below everytime i need to print the name as rama+value of the integer variable. if i=10; then the output:rama10 should be printed... i have probelm to add string to the integer variable..please help anyone...thanks in advacne... class abc { private: int a,i; string name; public: void … Software Development c++ | |
Hey, I was reading my book about C++ and read the default input piece of equipment was the keyboard, I was just wondering if there was a "simple" (ish) way to change it, example if i pressed a button on the monitor it would "cout << "monitor = pressed";" or … Software Development c++ | |
hi to all im new at vb6 and ive made a few basic programs using tutorials etc to get me started. i wanted to make a smiley tool for msn and yahoo for myself. doesnt sound like anything brillant i know but as i said im still learning and i … Software Development google image visual-basic | |
Please help, I can't get more than 5 decimal places in my answers and I don't know how to tweak the code to allow for this. Any help would be greatly appreciated. DB #include <iostream> using namespace std; int main() { system("title You can Convert Miles to Kilometers or Convert … Software Development c++ | |
why cant we use strcat without initialing first parameter? e.g. char *b = "a"; char *a; strcat(a,b); Software Development c++ |
The End.