132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for NagendraR

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++
Member Avatar for Narue
0
248
Member Avatar for Dark_Omen

Hello, I am having a problem with %. I am trying to find all the years from 1628 to 2005 that are divisible by 15, so I did this: [CODE] if((year % 15 == 0) || (year % 100 == 0) || (year == 2005)){ System.out.println("Print something"); } [/CODE] So …

Software Development java
Member Avatar for Dark_Omen
0
178
Member Avatar for desertstorm

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
Member Avatar for Narue
0
136
Member Avatar for md_salman

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++
Member Avatar for Ancient Dragon
0
149
Member Avatar for Acidburn

[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++
Member Avatar for akshatvig19
0
130
Member Avatar for harshchandra

[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
Member Avatar for akshatvig19
0
135
Member Avatar for vegaseat

[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
0
120
Member Avatar for tachoink

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++
Member Avatar for tachoink
0
108
Member Avatar for tommouse

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++
Member Avatar for tommouse
0
140
Member Avatar for kdw3

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
Member Avatar for Narue
0
602
Member Avatar for AhmedHan

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
Member Avatar for AhmedHan
0
289
Member Avatar for userb

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
Member Avatar for jwenting
0
93
Member Avatar for SpS

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++
Member Avatar for Stoned_coder
0
181
Member Avatar for plazmo

i know it is possible to use python with c/c++ but can python be used similairly with c#/vb?

Software Development asp.net python
Member Avatar for plazmo
0
193
Member Avatar for smallville

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++
Member Avatar for smallville
0
315
Member Avatar for djbsabkcb

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> …

Software Development c c# c++ display
Member Avatar for Ancient Dragon
0
107
Member Avatar for DotNetUser

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++
Member Avatar for DotNetUser
0
142
Member Avatar for jakeday

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
Member Avatar for server_crash
0
3K
Member Avatar for mpx10

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
Member Avatar for abdullah
0
331
Member Avatar for mmouse

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
Member Avatar for abdullah
0
115
Member Avatar for young

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 …

Software Development api display java
Member Avatar for NPH
0
118
Member Avatar for simon126

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++
Member Avatar for Lerner
0
261
Member Avatar for tejtan

well hi guys new to the forum and i need some help im writing a program where a guest’s name is entered and then assigned to a room. The motel has three floors and 30 rooms thus im using a 2D array (arr[3][10]) its supposed reserve a room and the …

Software Development java
Member Avatar for NPH
0
120
Member Avatar for bumsfeld

Is there a good way to invert dictionary so key:value gets to be value:key?

Software Development python
Member Avatar for bumsfeld
0
3K
Member Avatar for selot

I wondered if someone knew how to make a binary counter with vb?

Software Development visual-basic
Member Avatar for invisal
0
154
Member Avatar for ankitrastogi82
Member Avatar for Rashakil Fol
0
142
Member Avatar for TheSkunkMan

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
Member Avatar for vegaseat
0
177
Member Avatar for rekkoha

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++
Member Avatar for Narue
0
101
Member Avatar for Ryrra

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
Member Avatar for Ryrra
0
119
Member Avatar for elec

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 …

Software Development dataset java
Member Avatar for jwenting
0
71
Member Avatar for btech

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++
Member Avatar for Dave Sinkula
0
784
Member Avatar for Daishi

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 …

Software Development c google
Member Avatar for Daishi
0
169
Member Avatar for cobra2003

I need help with my homework. If someone is willing to help me then I will pay you for your time. Thanks my email is << moderator edit: email address deleted >>

Software Development c c# c++ email
Member Avatar for Dave Sinkula
0
101
Member Avatar for nathanoverall

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
Member Avatar for w00dy
0
171
Member Avatar for shanenin

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 …

Software Development gui python tkinter
Member Avatar for bumsfeld
0
274
Member Avatar for vanitha

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
Member Avatar for xav.vijay
0
89
Member Avatar for apcxpc

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
Member Avatar for apcxpc
0
144
Member Avatar for lsy

how can create password for database programatically through ADO open connection?

Software Development c
Member Avatar for lsy
0
96
Member Avatar for Andrew Minus

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
Member Avatar for jwenting
0
112
Member Avatar for Kamikazi23xl

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 …

Software Development java pdf
Member Avatar for jwenting
0
158
Member Avatar for mmiikkee12

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
Member Avatar for mmiikkee12
0
138
Member Avatar for bondito

[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
Member Avatar for freesoft_2000
0
273
Member Avatar for topaz

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
Member Avatar for freesoft_2000
0
79
Member Avatar for shad

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 …

Software Development email gui java
Member Avatar for freesoft_2000
0
96
Member Avatar for AhmedHan

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 …

Software Development api c++
Member Avatar for Ancient Dragon
0
170
Member Avatar for PeterX

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
Member Avatar for PeterX
0
101
Member Avatar for SpS

When a structure is assigned, passed, or returned, the copying is done monolithically....what does this monolithic mean any example??

Software Development c
Member Avatar for Rashakil Fol
0
169
Member Avatar for calcop

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
Member Avatar for calcop
0
104
Member Avatar for 3nCrypti0n

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 …

Software Development c++ queue
Member Avatar for Rashakil Fol
0
160
Member Avatar for ankitrastogi82

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
Member Avatar for SpS
0
180

The End.