132,726 Archived Topics
Remove Filter ![]() | |
Hello All, I am trying to convert structures to Byte stream(Serialization). I have one concept, Now I am converting each structure object to char pointer, but for structures with pointers this logic wont applicable. can any one help me with any logic for serialization in C/C++ Software Development c++ | |
1. I am using strtok() and am storing the return value into a char array. eg. char word[]; word = strtok(file[][], " "); Do I need to initialize 'word' to a constant size before using it? The thing is I don't know how big the string from strtok is going … Software Development c | |
I wanted to use the a far pointer in my program the declaration was like this char far* ptr; but when I compile the program the compiler gives error message that far undeclared, can any one help me in this regard how to use near, far, and huge pointers in … Software Development c++ | |
[php] #include <iostream> using namespace std; typedef struct Template { int a; Template * link; // goes forward (one way reference) } list; typedef list * listptr; int main() { listptr head; // head is a type listptr listptr p ; listptr next ; head = NULL; //therfore make it … Software Development c++ | |
[code] # include<stdio.h> void main() { int p; p = (1,2,2,100,1); printf("%d",p); } [/code] I dont know what will be the output . Can anyone please tell me what exactly second line implies ?? :rolleyes: Software Development c | |
[B]Intro[/B] In part 1 we learned mostly about the header of the JPEG file. In this part we get to display the image and also extract and show any embedded comments. [B]wxPython[/B] To display the image we use wxPython. The raw JPEG image information is first pushed into a data … Software Development file-stream file-system image python | |
hello everyone, i think im going to ask a very silly and noobie question but here it goes. im using VB 6.0 and im trying to create a program that would detect keypresses over another program. then automatically press something else for me say if i press f12 it should … Software Development c++ | |
Code compiles w/o error but print function does not pull data from base class. I have looked over the chapter numerous times. This is a long one, sorry [code] class extClockType: public clockType { public: void getTimeZone(int& timeZone); void setTimeZone(int timeZone); void printTime() const; extClockType(); extClockType(int hours, int minutes, int … Software Development c++ | |
I've just started using C++ for my engineering course. I downloaded the Dev-C++ compiler and I am having trouble with the cout command. Everytime the compiler outputs a value/ sentence etc, the command prompt shuts down before anything is displayed. I am running the program on XP Pro Does anyone … Software Development c++ engineering | |
We have a struct defined as : typedef struct tagWINDOWPOS { /* wp */ HWND hwnd; HWND hwndInsertAfter; int x; int y; int cx; int cy; UINT flags; } WINDOWPOS; Then we are sent a message... WM_WINDOWPOSCHANGING WPARAM wParam LPARAM lParam; Parameters wParam This parameter is not used. lParam Pointer … Software Development c | |
hi, if some site uses this code [PHP] <script language="JavaScript"> var url = "http://www.aaaa.com"; var wh = 'width=250,height=250'; var time = 10; ////////// var winopop; window.onload = function(){ winopop = window.open(url,'news',wh); winopop.focus(); window.setTimeout(function(){winopop.close()},time*1000); } </script> [/PHP] they can open the site [url]http://www.aaaa.com[/url] in a window for 10 sec and then … Software Development java javascript | |
Is it right to say that....since arrays are passed by address automatically...so there's no need and reason to return arrays from functions(Is that the reason why it is not allowed in c/c++) Software Development c++ | |
i know it is possible to use python with c/c++ but can python be used similairly with c#/vb? | |
I'm trying to put together this program that creates a for loop but my end result is not positioned the way I need it like this but flipped around so it looks like a christmas tree effect. * ** *** **** ***** Please help I'm still learning and I can't … Software Development c++ | |
Okay I have a problem where the name of my vector is highlighted in yellow throughout my code and my output. I changed the name of the vector but on the output the word list is still highlighted in yellow, why? Below is my code: [code] #include <iostream> #include <string> … | |
This is in VC++.NET. I dynamically create the number of buttons the user specifies. I add these buttons to an Arraylist. The buttons names goes from b1 ..bn where n is the max num of buttons. The user will provide me the button number and the text to be added … Software Development c++ | |
Hi, I'm currently writing a basic program (only been using Java for 3 weeks), and am trying to locate the "index position" of the first number in a string. For example String = "slow by 10.40s" or "fast by 1m2.2s" and want to use a method that returns me the … Software Development first-post java | |
hi i need some help with doing screen dumps or print screens in turbo pascal. when i press the print screen button whilst my program is running and then go and paste it in word, powerpoint or paint, all that pastes is the text and boxes i have created but … Software Development pascal | |
Hi All, I am reading a textfile and ready to import into an access database. The issue that has just arisen of hidden characters in line of text. The file is sent to us by a third party. e.g. Problem_Details: all the objects were all very soft and were split … Software Development pascal | |
I need to create a JAVA Class TicTacToe program. There are API doc of the class TicTacToe and TicTacToeApp.java which program control TicTacToe game play. Would you please tell me how to write the Java Class program. Thanks a lot! TicTacToeApp Java Program as shown below: /** * TIC TAC … | |
Program a student uses the computer to figure out his average in this class. As long as he enters grades between 0 and 100, it computes the average. If he enters -1 for a grade, it stops computing and prints out the average. I need help please someone help me … Software Development c++ | |
Is there a good way to invert dictionary so key:value gets to be value:key? Software Development python | |
I wondered if someone knew how to make a binary counter with vb? Software Development visual-basic | |
sorry about my post on pygame, but i'm having more trouble. frist off im ending the simple program that opens a window with if event.type == QUIT: raise SystemExit That makes a window pop up asking me if i want to quit. Is there another way to exit the window? … Software Development display first-post python | |
Can anybody in this forum page help me on getting example source codes like these ones: Any network game on Turbo C (2.01, 3.00)somethin' like that (with a filename extension of *.c) and any maze program on turbo C++ (with a filename extension of .cpp) if anybody would be able … Software Development c++ | |
I have some Visual Basic programing experience but I am new to C++ I am working on a homework assignment and I am not sure why my code is not working out. I am trying to write a program that changes numbers form 1 to one , 2 to two,... … Software Development c++ visual-basic | |
Ok, I need to make a program that will let the user enter a sentence. then find all of a certain word (and) and print out the count of how many times that word was in the input. I would like to do this in a while loop. Not sure … | |
I am trying to write a program which will derive one class from another class by adding a data member to store the time zone. Below is what I have so far. However I am unsure on how to write the function to set the time zone. could someone please … Software Development c++ | |
I happen to be writing a very simple text browser, and I'm having a problem connecting to servers using HTTP1.1 GET messages... HTTP1.0 works fine, I just have a string like this: [CODE] const char *request = "GET / HTTP/1.0\n\n"; [/CODE] This works great, and I receive my html back … | |
I have a program in which a series of events occir each time the timer runs. However i want to stop the timer when a certain variable reaches another variable. I have tried If variable1 = variable 2 then timer.enabled = false but the timer continues. Why is this. If … Software Development visual-basic | |
I was helping my 6 year old read some sentenses he learned in school. for example: the dog is on skates the bird is on a plane the pig rides the horse I noticed he was not really reading(kind of) the individual words, he had the whole sentenses memorized. When … | |
hi everybody :) , Python is relatively new to me and i have installed python 2.4 and am not able to use IDLE(to run the modules) that comes along with python. can anyone help me out with this. Regards, vanitha Software Development python | |
Hi all Sorry, I didn't know where to post my perl programming question. I'm having a problem creating objects in perl. I found a piece of code on the internet, that gives an example of classes and objects in perl. I modified it a little bit, and now have this … Software Development first-post perl | |
how can create password for database programatically through ADO open connection? Software Development c | |
Hi there, I was thinking about which[U] program design methods is better[/U] than any other methods.But, i am interesting Jason's Structure Diagram more than others . !! Software Development java | |
I just switched from c++ to java and i am completely clueless :o . My friend gave me a BlueJ program which is supposed to make it easier but i am still just as confused :rolleyes: . Does anyone have any good online sites i can go to get me … | |
I've been trying to compile OSKit under Cygwin. It gave me a bunch of errors, most of which I fixed. I can't fix this one though: [code] /* * Copyright (c) 1996-2000 University of Utah and the Flux Group. * All rights reserved. * * This file is part of … Software Development c c# c++ open-source | |
[COLOR=Blue]I am a final year computer science/networks student, i am going to hand in my final year project, and i was thinking of creating an online learning system which would include a database for storing student and staff details. Please i need ideas on what i can add to my … Software Development java | |
Hi,i am a computer science student and i was thinking of creating an online chat system for students in my uni as a final year project, i really need ideas on how i can go about my project, especially with the design, i am planning to use java socket programming … Software Development gui java socket-programming | |
Hi there, i was thinking of creating an e-mail communication system witha GUI using java. I am planning to bas my final year project on this idea. Please if you have any ideas in relation to e-mail communication please share it with me. I will really appreciate any help given … | |
I am trying to write down a Win32 program that recovers corrupted files on CDs and DVDs. I used ReadFile() function to read the corrupted file. ReadFile() is supposed to return ERROR_READ_FAULT value whenever any read error occurs. Unfortunately, the program stucks at the ReadFile() function when there exist a … | |
Hi! I have problem with type conversion. when I compile the program I get this error: ( 'count' : redefinition; different basic types ). please tell me about type conversion. [Code] #include<stdio.h> int count(double houre, double charge); int main(){ double h=4; double c=2; printf("%d\n", count(h,c)); return 0; } int count(double … Software Development c | |
When a structure is assigned, passed, or returned, the copying is done monolithically....what does this monolithic mean any example?? Software Development c | |
I everyone, I have two C Socket questions. I have searched the net and read my reference books, but cannot find my answer. Anyway, I am making a simple telnet based server. To create a new socket I am using the following code: [CODE]newsockfd = accept(sockfd, (struct sockaddr *) &cli_addr, … Software Development c c# c++ client-server | |
Im having trouble implementing this Queue simulation. This simulation basically estimates how long a student has to wait in line for lunch at my high school. I get the following messages when trying to compile [CODE][C++ Error] davislunch.cpp(30): E2034 Cannot convert 'line *' to 'line::node *'[/CODE] Heres the source: davislunch.h … | |
As null pointer points to nothing. So, How does the following code works #include <stdio.h> class cb { public: void HelloB() { printf("Calling cb\n"); }; }; int main(void) { cb* pb = 0; pb->HelloB(); // should it crash here ? return 0; } Software Development c |
The End.