199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tesid2k8

Hye I want to store my teachers name, course name in file. But the names can also include spaces... using getline() func I can store the string with spaces in to file... But while reading I want that instead of considering space as an indication of new string... there shd …

Member Avatar for mrnutty
0
113
Member Avatar for MoZo1

Well, so if I use static initialization blocks to access another static data inside another class: [code=java] public class StaticTestA { public static Queue queue = new LinkedList(); static { System.out.println("A start"); StaticTestC.queue.add("A"); StaticTestA.queue.add("A"); StaticTestB.queue.add("A"); System.out.println("A stop"); } } public class StaticTestB { public static Queue queue = new LinkedList(); …

Member Avatar for JamesCherrill
0
129
Member Avatar for DoEds

In this program i want to ask the cashier if the customer wants to buy anything else. Typically, Ask customer what beef product he wants to buy. Ex. 1 //Chicken Liver Ask customer how many kilo(s) he will buy. Ex. 2 //2kg (problem) Then ask the customer if he wants …

Member Avatar for abhi.navale
0
470
Member Avatar for XodoX

Hello, I need to do the following problem, but I totally don't get it. [code] Operators Overloading The purpose of this lab assignment is for you to write a class called Character that provides a character functionality including possible operators support. The class must support the following operators: 1. from …

Member Avatar for mrnutty
0
91
Member Avatar for sotvisal
Member Avatar for FaMu

Hi, In this code: DrawPanel.java [code=java] import java.awt.Graphics; import javax.swing.JPanel; public class DrawPanel extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); int width = getWidth(); int height = getHeight(); g.drawLine(0, 0, width, height); g.drawLine(0, height, width, 0); } } [/code] and this the application DrawPaneTest.java [code=java] import javax.swing.JFrame; public …

Member Avatar for harsh2327
0
106
Member Avatar for Nathan Campos

Hello, I'm starting in Java ME development, but when i finished the code, that i'm developing using Eclipse, it shows that my code have an error, with that red x in the left of the code line, here is the code: [code=java]package comm; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; import javax.microedition.lcdui.Display; import …

Member Avatar for Nathan Campos
0
95
Member Avatar for daviddoria

(As a warning - if at any point you think "umm why don't you just use X to get your 2 column display - I'm all for that! This is the only way I came up with). I want to end up nice looking display of data on the form …

Member Avatar for daviddoria
0
1K
Member Avatar for nizar-t

[COLOR="Green"]How can I block a content from being copied and right clicked ...................................I want to block some images and some text........ please I want it fast[/COLOR]

Member Avatar for almostbob
0
81
Member Avatar for himgar

[code] #include <iostream.h> #include <conio.h> int main() { cout<<"hello"; textcolor(2); cprintf("hello"); return 0; } [/code] Errors i am getting : call to undefined function 'textcolor' in function main call to undefined function 'cprintf' in function main I am using Turbo c++ 4.5 Windows XP SP2 Also graphics.h header file is …

Member Avatar for necrolin
0
104
Member Avatar for seakayaker

I am trying to get the text from a text window. However, the GetWindowText() call keeps on getting me the text in the window header and not the text in the window itself... I have read up on the function call and seen that this happens if you call it …

Member Avatar for seakayaker
0
521
Member Avatar for S.DALI

hi all, I'm a computer-science student and I'm finding a real hard problem finding a final year project, I want a little help and i hope i'm in the right place. i'm looking for something related to the following topics: 1- i'm very good with databases (i have three certificates …

Member Avatar for S.DALI
0
82
Member Avatar for NRaf

*sigh* Malloc get's me every time... Basically what I'm trying to do is read data from a file to populate a square array on integers. I'm declaring the array as 'int** matrix' in main(). I pass this to the function which handles reading the file (the parameter for the function …

Member Avatar for Dave Sinkula
0
90
Member Avatar for phantom1000000

Hi all, I've written a piece of software that connects to a server's SQL database. The software has a timer which fires every second, and the timer connects to the database every time and pulls out a list of current to do's from a table (CurrentToDoList). This database only has …

Member Avatar for sknake
0
138
Member Avatar for scooby36

I am not too sure if this is easy or not but I have a datagrid with a return date field. All I want to happen is if any of the dates in the grid are before the current date Datetime.Now then turn a picturebox to visible. I have had …

Member Avatar for scooby36
0
72
Member Avatar for javac#

I am new to C# guys, So please suggest free e-books links for c#-for console and form app too

Member Avatar for ddanbe
0
79
Member Avatar for k007

I need to write a template for binary search routine so that it works with arrays of various types (int, char, c style strings). Here is how I have it written,it seems to work when I have a interger array but fails on chars. I need help fixing this. Binary …

Member Avatar for k007
0
154
Member Avatar for Spartan697

i just got into this python thing and i asked my friend how to do this and he doesnt know he told me to write this here so you guys can understand how to make an if statement (if x == 10 to 24) with proper syntax

Member Avatar for shadwickman
0
77
Member Avatar for suganthi87

Hi I am using named pipes to transfer text between vc++ and delphi. The delphi code is shown below: [CODE] procedure TForm1.OnServerPipeMessage(Sender: TObject; Pipe: Cardinal; Stream: TStream); var S : String; begin SetLength(S, Stream.Size); Stream.Read(S[1], Length(S)); Memo1.Lines.Add(S); end; [/CODE] The problem i face is that I am able to receive …

Member Avatar for FlamingClaw
0
234
Member Avatar for darkelf94

I built a vb.net solution and it works well on my computer but it doesn't on other computer. so what files I have to copy with the solution

Member Avatar for GeekByChoiCe
0
89
Member Avatar for amazing_grace

hi expert, first of all, i have to say sorry for my poor english.i am working on a phone-book project and come across a big problem. my approach: 1. i ask to users to identify the type of data he would like to search,eg, name, tel no 2. i ask …

Member Avatar for FlamingClaw
0
110
Member Avatar for ggl0rd

anyone can help me with this problem to make coding about : example question : me got 1 table with item X,1,2,3 and other table with item Z and value at row 1,2,3 i want make 1st table item 1,2,3 got a same value at other one table at row …

Member Avatar for ggl0rd
0
106
Member Avatar for auto9817

Hi everyone!! I have a scientific C++ program which requires a good speed to run.(the program runs a lot of matrix and vector operations) For doing that, I come across following options on the net: 1. Use of turbo C++ 2. Use of Linux instead of window XP My current …

Member Avatar for Salem
0
158
Member Avatar for memegha123

hi! i m trying to write some user entered entries to a text file on server... here is my code [CODE] String news=new String(); String path=application.getRealPath("news.txt"); news=request.getParameter("news"); PrintWriter pw = new PrintWriter(new FileOutputStream(path)); pw.println(news); pw.close(); [/CODE] this just doesnt seem to work....can anyone help?News is a text are field on …

Member Avatar for memegha123
0
144
Member Avatar for renovat0

#include <iostream> using namespace std; int main () { int R,G,Y; int r,g,y; int a; cout<<"enter your input"<<endl; cin>>a; if (a==R||r) { cout<<"please stop"<<endl; } else if (a==G||g) { cout<<"you can go"<<endl; } else if (a==Y||y) { cout<<"prepare to stop"<<endl; } else cout<<"Out of range"<<endl; return 0; }

Member Avatar for renovat0
0
110
Member Avatar for rajasekhar1242

Hi I am developing a small application in that i have only labels. My Output like this.. S.No Customer Name Customer Code City 1. Raja 1242 Vsp 2. Sekhar 1243 Hyd 3. Ram 1244 Bang Hear i want to develop my application with one control ie, for example i have …

Member Avatar for rajasekhar1242
0
86
Member Avatar for elidotnet

Hello, the first question is, how do iknow if the SQLEXPRESS server that in my machine is work well? i have sqlExpress and i also have the sql studio management, i am creating database and tables and all works fine. but when im tryin to call to a database from …

Member Avatar for elidotnet
0
136
Member Avatar for catcit

Hi everybody! For the last five days I`m working on a project and I see only python syntax in from of my eyes. I have a small problem and I got stuck. I have a string like this : file = "E:\xxx\yyy.txt" and I want to format it in order …

Member Avatar for vegaseat
0
116
Member Avatar for jaasaria

Hi guys .. i wanted to open some of my files. like mswords that save in any of my folders. also wanted to open .txt, .jpg, html etc files. any code for this.. i have an idea using shell "location of exe" but it open exe files only. i wanted …

Member Avatar for jaasaria
0
290
Member Avatar for b_bayaraa_d

hi everybody! what plugin download in ecplise for phyton. sorry for my english skill

Member Avatar for vegaseat
0
86
Member Avatar for fleem
Member Avatar for nikhil31888

Is it possible to develop a case tool for asp.net like we have case tool for UML? the case tool will guide to generate asp.net based websites or simply asp.net codes. I want it to develop using Asp.Net. Please suggest is it possible to do this?

Member Avatar for Ramesh S
0
125
Member Avatar for B0tman

I'm having trouble gaining admin access to user accounts whose names are spelled the same, with the only difference being that one is spelled in lowercase. (ex.: Bill vs bill.) When I try to bring up the lowercase account in the ACP, it always brings up the uppercase account by …

Member Avatar for B0tman
0
137
Member Avatar for slacke

I have lots of Drytek > Vigor 2700,2800 routers on the public net. I manage this networks and since this type of routers has Log support I write an application on my linux box to collect those logs. The routers are sending UDP datagrams to a configurable address and port. …

Member Avatar for slacke
0
211
Member Avatar for agaba

When i rebuild the program , I get this error 1>c:\users\agaba\documents\visual studio 2005\projects\car\car\school.cpp(97) : error C2447: '{' : missing function header (old-style formal list?) 1>Build log was saved at "file://c:\Users\agaba\Documents\Visual Studio 2005\Projects\car\car\Debug\BuildLog.htm" 1>car - 1 error(s), 0 warning(s) The code .................. [code=cplusplus] // Short-term parking at the airport, from 4am …

Member Avatar for agaba
0
115
Member Avatar for Pgmer

Hi All I need to capitalize the first word of each new sentence as user types. How will i come to know about the start of new sentences? do i need to use regular expression for this?

Member Avatar for JadeSimon
0
140
Member Avatar for Zebibyte

I just started learning Python a couple days ago, and my main goal for now is a text-based game, in which the user inputs commands to interact with the virtual world. My problem thus far, however, has been splitting a string up so that I can detect what action the …

Member Avatar for Zebibyte
0
110
Member Avatar for agaba

When i try to rebuild this what i m geting 1>------ Rebuild All started: Project: depreciationarry, Configuration: Debug Win32 ------ 1>Deleting intermediate and output files for project 'depreciationarry', configuration 'Debug|Win32' 1>Compiling... 1>arry.cpp 1>Compiling manifest to resources... 1>Linking... 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\agaba\Documents\Visual …

Member Avatar for agaba
0
282
Member Avatar for hzx_300

Hi, I need a help to find out solution to these problems (1) Write a program that will ask the user to input a hexadecimal number and display the number of binary one’s within that number. (2) Write a program that will ask the user to input his name. Then …

Member Avatar for wildgoose
0
262
Member Avatar for WoBinator

Hi, im new to programming. I have read alot of posts on this site and am wondering if i need to learn C before i learn C++. Is learning a language before C essential? or will i just get the hang of it. This is my second post, asking about …

Member Avatar for Zacadx15
0
504
Member Avatar for liveonfire

I was just wondering what the best way to deal with command line arguments is? Should I just use some different function, should I embed all the checking into main(), should I create a class that deals with them or is there another option I haven't thought of? I know …

Member Avatar for liveonfire
0
81
Member Avatar for krisfr

Good Morning I am seeking some general guidelines to present a proposed project to a Client. The Client is expecting a meeting on Tuesday the 11th. I am just trying to give the client an overview and introduction to what his needs are. I would like to get a little …

Member Avatar for wildgoose
0
107
Member Avatar for yasaswyg

This is a short summary of my project make two text files with random stuff in it and then make them into bin files and then merge them into one and u take two text files and combine into one text file the code is pretty damn long #include <stdio.h> …

Member Avatar for Hiroshe
0
151
Member Avatar for vbnewbie5

I was just wondering for future information if you add a message to a combo box such as this: [code] ComboBox1.Items.Add(ComboBox1.Text) [/code] is it possible to save it in the combo box so that if the form is closed then re-loaded that message will still be stored? Thanks

Member Avatar for vbnewbie5
0
83
Member Avatar for yasaswyg

this code takes out the spaces in between and i want to shrink this code a bit. like in function modify. It doesnt work if i take out the `if(s[i] == ' ')` I want to make this code work without using that. Any help?? #include<stdio.h> #include<stdlib.h> char* modify(char*); void …

Member Avatar for wildgoose
0
83
Member Avatar for AnnA.B

I'm trying to do program to basic operations in math. So, I want that the program calculate for example 3*2+4 etc. I already did something, but it needs upgrade. The problem is with division (/). Everything I write it's always the same result- 0. I don't know why. It is …

Member Avatar for FlamingClaw
0
153
Member Avatar for Hiroshe

Hey guy's. I've never really cared for game dev befor, but it sounds kinda fun. I'm expecting a spair class next year and need to have something to do in my spair time. I'm thinking of making a clone of rogue (the 80's unix rpg). I'm wondering what the best …

Member Avatar for Hiroshe
0
136
Member Avatar for Hawkpath

In a rubiks cube solving program I'm writing, i wanna make it so if the space is red, then a red "R" appears. I don't know how to do this with out changing the color of all the text on the screen. I use: [CODE]system("Color XX");[/CODE]

Member Avatar for Hawkpath
0
109
Member Avatar for zimis

Hello, I'm trying to make client program which connects to server, and comunicates with it for unlimited time. SOCK_STREAM (TCP). Is there a way to change the way of getting server messages? Now it's just infinite loop. (I think thats not good, and requires a lot of CPU cycles) [CODE=c] …

Member Avatar for Salem
0
308
Member Avatar for gopi17

can somebody help me with this....i'm creating a 4X4 sudoku program...with 8 auto-generating numbers and 8 user inputs...i used the random number function rand() but the numbers keep on repeating...the problem is i'm not allowed to use arrays... [CODE] int main() { int row1col1,row1col3,row2col2,row2col4,row3col1,row3col3,row4col2,row4col4; int row1col2 = 0; int row1col4 …

Member Avatar for wildgoose
0
222

The End.