132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bpl1960

Hi! I'm writing a statistical analysis program where I don't know, in advance, how many variables will be involved. I'm having the user enter data for each variable in a datagrid. First I ask for the number of variables. Based on that, I add as many new columns as needed. …

Software Development vb.net visual-basic
Member Avatar for bpl1960
1
108
Member Avatar for miteigi-san

I've been reading sites that talk about clock() but I don't really get an answer by doing that. I mean, I still need to confirm and know some more stuff. I hope you could help me... Here's what i would like to know: 1] what does the value returned by …

Software Development c++
Member Avatar for mrnutty
1
622
Member Avatar for Diode

I know they don't have standard ASCII values, but how do you check for them? I am making a command prompt-type interface for a text-based RPG a friend and I are making, and I would like to be able to use the arrow keys to navigate in menus. I am …

Software Development c user-interface
Member Avatar for hsp700
1
4K
Member Avatar for alphaman1101

Im creating a simple program. (soon to be vastly complex) that is connecting to a server, and sending an authentication code to connect. I got the connection part, but what keeps breaking up is the method of authenticating. I have the entire authentication process in a while loop, so that …

Software Development client-server vb.net
Member Avatar for alphaman1101
1
170
Member Avatar for ppotter3

Hello! My name is Page, and I am having problems figuring out how to read a name for example like; SMITH, JOHN in a string array. From there I would like to find the space and read the last name into a vector and the first name into another vector. …

Software Development c c# c++ file-system objective-c
Member Avatar for ppotter3
1
7K
Member Avatar for vegaseat

Wallpaper or tile images are small images that can be spread across a background repetitively. A common practice on web pages. The surface created with wx.PaintDC() can be used for this effect and still allows other widgets to be put on top of the wallpaper. The small tile image is …

Software Development python
Member Avatar for vegaseat
1
984
Member Avatar for ahaykal

Hello i am new here i liked this community: I have a c++ homework could you check it if it is correct? 1. Rewrite the following loop so it uses pointer notation (with the indirection operator) instead of the subscript notation: [code] for (int x = 0; x < 100; …

Software Development c++
Member Avatar for nezachem
1
487
Member Avatar for Szabi Zsoldos

Hey, this is my first post here, glad to be here and learn from you guys! what i'm trying to do is this: I would like to enter 2 names and then hit a number from lets say 1 to 10, and i have the array Q1,Q2... etc. these should …

Software Development c++ gaming iphone
Member Avatar for jonsca
1
375
Member Avatar for jemz

please help me how to make on how to get txt on a file...hoping for your positive responds.....

Software Development java
Member Avatar for jemz
1
103
Member Avatar for hermann87

Greetings from Greece, this is my first post! I'm having some minor trouble with an application I've been working on the past week. So if you could please shed some light into this. Thank you. The problem I'm having is that when the user is trying to save a file …

Software Development c++ file-system
Member Avatar for mitrmkar
1
507
Member Avatar for justinclev

I've been looking through the site for topics on how to code your own DLL's in C++ and so far i have not come up with much, I'm hoping to create a DLL in which i will code functions for using the win32 API and kinda making a small framework …

Software Development api c c# c++
Member Avatar for Frederick2
1
128
Member Avatar for SnipeTechie

Hi guys! I was wondering if anyone could provide me with useful tips or answers to the question stated below: Why is the programming language C++ is often used as the main programming language for Biometric Applications compared to Java the programming language? Your help would be really appriciated!

Software Development c++
Member Avatar for love angel
1
297
Member Avatar for Lukezzz

Hi, I have a task where I programatically will open 2 Explorer Windows in a minimized mode. I have searched and the code I have come up with looks correct to me but what happens is that these 2 browser windows do open in a Normal mode. That will be …

Software Development c++
Member Avatar for Lukezzz
1
202
Member Avatar for cascade3891

Hi all, My first post here, but long time troller. I was looking for a GUI platform to develop on and couldn't decide between wxPython, PyQT and/or IronPython or Jython. I decided to go with wxPython after getting a couple of headaches elsewhere. I'd really like a quick IDE to …

Software Development gui ide iphone open-source python visual-basic
Member Avatar for vegaseat
1
527
Member Avatar for chromatinpt

Hi all, I need to store some data in a txt file from a textbox.text. I have try this and works: [code] FileInfo t = new FileInfo("data.txt"); StreamWriter Txt =t.CreateText(); Txt.WriteLine(textbox1.text); Txt.Close(); [/code] But.... How can I create multiple files without delete the older one, e.g., Gives the name to …

Software Development
Member Avatar for chromatinpt
1
178
Member Avatar for abhimanipal

[code=c] union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("n%d", sizeof(u)); printf(" %d", sizeof(u.a)); printf("%d", sizeof(u.a[4].i)); } [/code] Hello People. I just came across this piece of C code. I have a couple of question The third printf statement gives me the …

Software Development c
Member Avatar for kvprajapati
1
110
Member Avatar for yemu

Hi all! I've been working on some school/hobby project for some time now. It's a kind of a simple statistical tool for analysis of data from psychological experiments. Not being professional programmer I encountered a couple of problems concerning data storage. Let me explain the how the data is structured …

Software Development data-structure python storage
Member Avatar for vegaseat
1
125
Member Avatar for adcodingmaster

hi all. from where i can download this header file ncurses.h for windows? thnx in advance

Software Development c
Member Avatar for jonsca
1
124
Member Avatar for Snubnose

Hi, I'm having a problem with a motion tracing effect in an animation on a Windows Form in C#. The effect generated by painting a transparent black background over the Form each time it is redrawn. The idea is that, as an object moves, it's previous images should be gradually …

Member Avatar for kvprajapati
1
135
Member Avatar for flyingguitar

ok, so I have the following code. [CODE]#include <iostream> using namespace std; int main() { char name[80]; cout << "\n\nEnter your name: "; cin >> name; cout << name; return 0; }[/CODE] but here's the problem. whenever I enter a space in the name, everything after the space doesn't appear …

Software Development c++
Member Avatar for flyingguitar
1
96
Member Avatar for carey_amanda

HI, I have finish my project and need to make my project into EXE(windows application) by using project setup. does anyone know how to go about doing that? i mean those EXE where when you double click on it and it will prompt you to install and those agreement statement …

Software Development
Member Avatar for sknake
1
111
Member Avatar for hondros

This code should be able to get you started to design 2-D scrolling games, like Mario. I spent a few hours trying to figure this out, and firgured I'd put up my efforts. I think there might be a better way to do it, but this should help you get …

Software Development python
1
1K
Member Avatar for Dearster

I have got given a homework: FileDescription program requests (as shown) and reads three lines of text. It then processes the data. For each line the first string (containing no spaces) on the line is a file name – followed by a file description. If the file name has the …

Software Development java
Member Avatar for stultuske
1
124
Member Avatar for asa88

i am trying to convert decimals to binary ..the reason i am using function is becoz i want to include -ve numbers too .......i was sucessfull for the positive but for making it run for -ve numbers to i divided into a new function....but i am not able to figure …

Software Development c++
Member Avatar for jonsca
1
225
Member Avatar for bkruep

I have a quick question with visual studio. This is the first program I have ever tried with the 2010 version and get the following error... 1>------ Build started: Project: test, Configuration: Debug Win32 ------ 1>Build started 1/17/2010 4:53:30 PM. 1>_PrepareForBuild: 1> Touching "Debug\test.unsuccessfulbuild". 1>ClCompile: 1> All outputs are up-to-date. …

Software Development c++ visual-studio
Member Avatar for jbennet
1
153
Member Avatar for wolfkrug

It is supposed to take a ceral box measurement in ounces and convert it to metric tons, as well as tell how many boxes it would take to equal a metric ton. Here it is. [CODE] #include <iostream> using namespace std; double ounces; cout << "Enter the box weight in …

Software Development c++
Member Avatar for wolfkrug
1
178
Member Avatar for kobi

Hello , Im trying to show an animated gif on a form while i read a file, but the animation freezes until all the file operation is finished Any idea? PS im using visual studio 2003

Software Development visual-studio
Member Avatar for ddanbe
1
155
Member Avatar for Katsurou

Hi so I have the next problem (didnt write it in code yet because I dont know how i should start) I have to make a program in Visual Studio 2008 that would add words to numbers and make it a word again s ofor example: monday + 4 =friday …

Software Development c# visual-studio
Member Avatar for Katsurou
1
238
Member Avatar for DavidDD

Hello there! This is my first post so I'd like to say hello to everyone on the forums! Anyway, I am coding a hangman game. I read my words from a text file with ifstream, then I randomize a word and I set the string "sSelectedWord" to the randomized word. …

Software Development c++
Member Avatar for DavidDD
1
130
Member Avatar for johnny_gear

[CODE] while(getline(bookFile,books[count].title,';')) { bookFile>>books[count].year; bookFile.ignore(1); bookFile>>books[count].author; bookFile.ignore(1); bookFile>>books[count].price; count++; } [/CODE] the code seems to just ignore the deliminating character and enter the whole first line into the title member of the books struct. I can not figure out why, any help would be appreciated .. thanks

Software Development c++ file-system
Member Avatar for johnny_gear
1
147
Member Avatar for blasata

Hi all, I have a problem with winsock in c++ while developing a client program: - When I send the first, it is ok, appears in the Server, but the other "sends", in the server appear as a empty string! the send command return is Ok, the number of bytes. …

Software Development c++ client-server
Member Avatar for blasata
1
203
Member Avatar for mindbender

I have to create a random matrix m*n where m and n are user inputs. Now i have to fill the matrix with random nos. Finally I must have a matrix where each value is either 0 , 1 , a fraction no between 0 and 1, and also sum …

Software Development c
Member Avatar for Nick Evan
1
5K
Member Avatar for k1_zav

Hi people, I am writing a code to do some matrix manipulation stuff. like replication of a matrix in a bigger matrix vertically and horizontally, or putting some elements on a specific diagonal. The problem is that when the size of 2-D array goes to 290, the program crashes. The …

Software Development c++
Member Avatar for k1_zav
1
83
Member Avatar for Banderson

Hi, This will show you how to create a login form using swing. Please be aware that this form does not connect to anything. ( eg. A URL or a database) This is just a little advanced example of one of the many things you can do in swing. A …

Software Development java java-swing
Member Avatar for masijade
1
2K
Member Avatar for lrh9

I'm just wondering if it is possible to import a module as an object attribute. The basic description of what I want to accomplish is that I'm creating a software agent object. This agent will have a set of abilities (functions), but I don't know what these are ahead of …

Software Development python
Member Avatar for lrh9
1
338
Member Avatar for kring08

how can i create a magic square using jcreator.. help me please..

Software Development java
Member Avatar for javaAddict
1
198
Member Avatar for landonmkelsey

This code defines a new operator new in C++ such that the memory returned is in the shared memory segment rather on the heap. This code exists to prove a point. "Objectifying" shared memory. One can not overload the new operator but one can overload operator new. Reference the C++ …

Software Development c c# c++
1
427
Member Avatar for Bobon

Hey, I've been going insane with a question I've been doing all day. Creating an application that prompts a user to enter a date. I have to use arrays to store the number of days in each month i.e 31 for January, 28 for February etc.. I have created a …

Software Development app-store java java-swing
Member Avatar for Bobon
1
190
Member Avatar for Slammer

Hi there. I need to write a recursive DFS function for graph which is implemented as follows: [CODE=c] struct nodes_arr { unsigned int position[50000]; unsigned int amount[50000]; node *next[50000]; } nodes_table[] = {0};[/CODE] [CODE=c]struct node { unsigned int position; unsigned int amount; node *next; };[/CODE] as a result i have …

Software Development c++ linked-list seo
1
113
Member Avatar for cwarn23

Hi and I am making a dll but the dll won't accept pointers due to what it links to. So below is my code and does anybody know how to make a string array without pointers? Also I'm using Visual c++ 2008. [CODE]//#pragma warning(disable:4996) //disable "depreciated function" warnings #include <windows.h> …

Software Development c++
Member Avatar for Ancient Dragon
1
205
Member Avatar for spxChrome

I know how to add the items during design time but how do you add the items through code. I want to fill the combo box in the datagrid with the results of an SQL query?

Software Development vb.net
Member Avatar for parkeyparker
1
91
Member Avatar for bonnysammy

Hi! I have a dropdown that is populated by a hashtable. THis part is working fine. But, I have to select an option in this dropdown according to information I get from a SQL Query. It's like this: The field in the table can have 0 - 3 0 First …

Software Development
Member Avatar for bonnysammy
1
146
Member Avatar for Stevoni

I'm normally a VB.Net/C# guy but because of a third party dll that isn't working in .Net, I'm having to interact with it using C++. I'm able to read and understand (for the most part) C and C++, but I've never actually written any code in it. The third party …

Software Development c++ vb.net
Member Avatar for Ancient Dragon
1
234
Member Avatar for defeater_man

i make a program to multiply 2 binarry numbers [CODE] #include <iostream> #include<string> using namespace std; void main() { string y,a; string S1="00000"; cout<<"plz ener two numbers"<<endl; cin>>y; cin>>a; cout << "Sting S1\t\t" << S1 << endl; cout << "S1.size\t\t\t" << S1.size() << endl; int n=a.length(); n=a[4]; if(n[4]==0) { string …

Software Development c++ visual-studio
Member Avatar for jonsca
1
152
Member Avatar for madmax007

Hi, I am trying to write some code in order to communicate with a telnet clent from a c++ application. My idea was to open a telnet session with popen and to use the input/output pipes to communicate but it does not seem to work. When I test, the program …

Software Development c session
Member Avatar for madmax007
1
1K
Member Avatar for gerard4143

What is going on here. Copy this C code , compile and run. What do you think is going on? Note I don't want the answer, I know what's going on here. This is just something for the rookies to play with... Also this is not the best way to …

Software Development c
Member Avatar for jonsca
1
114
Member Avatar for Hofik

Hello everybody. I have to make "an-OCR-like" programm in C - it gets for example this to stdin: [CODE] *** *** *** * * * * * * * * * * * * * * * * * * * * * *** *** *** * * * * …

Software Development c
Member Avatar for Hofik
1
87
Member Avatar for avirag

HI ALL, i am writing this snippet to working with text files, here i explain the basic functionality of read/write operation on text files.....:) Here each method has a single parameter, the file name you wish to work with.

Software Development
Member Avatar for jonsca
1
206
Member Avatar for eliile5

hello, and happy new year! i'd like you guys and girls to show me another or similar but a bit different way to write this code, which a simple employe class with 4 different sub-employers types. thanks. this code is not mine, and i need to write somethink like this …

Software Development
Member Avatar for jonsca
1
205
Member Avatar for Ihatepullups

Hello, this is my first time here, although I have hit this website many times on google looking for quick fixes to my problems. I am a student in high school and I persuaded my teacher to let me study c++ (as opposed to 3ds max). I have been working …

Software Development c++
Member Avatar for niyasc
1
109

The End.