43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gcardonav

Afternoon: I am trying to create a loop to give me a series of random numbers. I need the random numbers to be between 100 and 999, this is necessary so I can divide the numbers by 1000 and then use this numbers for another program. My problem is that …

Software Development c++
Member Avatar for mrnutty
0
162
Member Avatar for dima shawahneh

hello every one i m trying to minimize the form size but less than what it allows for me if i do like this .. it is okey this.Size = new Size(124, 36); but less than these values for the width and length it won't work.. i need to make …

Software Development
Member Avatar for sharensla
0
134
Member Avatar for YingKang

the program draws lines, but every time I draw a new line, the previous one disappears. How can I let it show all the lines drawn? I know my problem is in the array, but how to fix it? thanks for help [code] import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import …

Software Development java java-swing
Member Avatar for YingKang
0
825
Member Avatar for miskeen

Hi guys, Can I enable/disable an #ifdef based on a specific condition? Let's say that I've a loop [CODE]#define MYCONDITION 1 // code here for (int i=0; i<5; ++i) { printf("Hello #%d", i); #if MYCONDITION printf("I wanna be reached only if i == 3, is that possible?"); #endif }[/CODE] Is …

Software Development c++
Member Avatar for miskeen
0
107
Member Avatar for whiteyoh

Hi all, this is a bit of a follow on from a previous post, but slightly different so thought a new post would be best. i want to pass my scanner variables into an object. the following is the last scanner (Added as example), followed by the creation of a …

Software Development java
Member Avatar for whiteyoh
0
119
Member Avatar for AutoPython

I can't find a compiler to compile version 3 Python scripts to .exe. All the compilers I see are all for Python 2.

Software Development python
Member Avatar for vegaseat
0
189
Member Avatar for whiteyoh

Hi all, I have a constructor with 2 numbers both set as longs however in my driver class, it is showing as an error, even after casting the already longs to a long again. This is constructor [code]public Personal(String forename, String surname, long dob, String add1, String add2, String county, …

Software Development java
Member Avatar for whiteyoh
0
105
Member Avatar for JLynn

Hello, I am having trouble figuring out the correct syntax for a small portion of my code. I am trying to have my code search through a column and for each entry in that column copy and paste only the rows that have the following characteristics: the first character = …

Software Development visual-basic
Member Avatar for JLynn
0
130
Member Avatar for Hirez

Hi, I'm new to c# although have written in a few other langues in the past. I'm trying to get a list of services and their status and create an xml file from this info. I use the ServiceController. [CODE]ServiceController[] services = ServiceController.GetServices();[/CODE] If I send the info to the …

Software Development xml
Member Avatar for Hirez
0
83
Member Avatar for necrolin

My C++ course hasn't covered a topic yet, but I'm expected to solve a few problems with this material. I've got some working code I just don't fully understand it. Can someone help me, please? [CODE] void f(int** a) //What is this ** business? (1) { cout << **a; //prints …

Software Development c++
Member Avatar for dkalita
0
90
Member Avatar for e04047

hi all, I have this file [myfile.txt] with some user data. example: $cat myfile.txt FName|LName|Gender|Company|Branch|Bday|Salary|Age aaaa|bbbb|male|cccc|dddd|19900814|15000|20| eeee|asdg|male|gggg|ksgu|19911216||| aara|bdbm|male|kkkk|acke|19931018||23| asad|kfjg|male|kkkc|gkgg|19921213|14000|24| aera|bprb|male|cccc|pppp||15000|20| . . . // and so on So what I want to do is to take out (to a file) the missing fields as following format: <FName> <LName> <Company> Missing …

Software Development shell-scripting
Member Avatar for natufor
0
202
Member Avatar for xyz12

Hi all i have a problem in C# window application........... Well i am making a application in which i am making treeview control, in which i have some nodes, and when i click on particular node, so related form is displaying in side panel............ But the problem is that,After debugging …

Software Development
Member Avatar for sknake
0
214
Member Avatar for wangatang126

hi im trying to write a C program that produces an array like this 1,2,4,8,16... Basically i produce an array with with the power of 2 starting at 0 and going up to n. Here is my current code: However the array dosent show. What is the problem? # include …

Software Development c c# c++
Member Avatar for neithan
0
158
Member Avatar for Tajna

hello ! I`m trying to use sqlite database with c++, but something isnt working right... The problem I`m dealing here is that i cant insert other datas into the table i`ve created except NULL, because i get following error message: Error in select statement : INSERT INTO a (a,b,c,d) VALUES …

Software Development c++ sqlite
Member Avatar for Tajna
0
102
Member Avatar for restrictment

The question is in the title. I am trying to make an image that includes this character... *typo in title. It should say 'do', not 'to'.*

Software Development c++
Member Avatar for jbennet
0
871
Member Avatar for mymyzzz

i need to know how many times the while loop is done. while (myin) { myin >> name; cout << name ; myin >> num1 >> num2 >> num3; cout << " " << fixed << setprecision(0)<< num1 << " "<< num2 << " "<< num3 ; average = (num1 …

Software Development c++
Member Avatar for nambro
0
83
Member Avatar for BestJewSinceJC

After compiling the code found [URL="http://beej.us/guide/bgnet/output/html/multipage/clientserver.html#simpleclient"]here[/URL], I immediately got a number of errors. (Unfortunately, Beej is the starting point my instructor suggested to implement our FTP client's "minimal" commands, but that's another story). Anyway, I got rid of a few of them, then ran into this: [CODE]client.c:32 - error: storage …

Software Development c storage
Member Avatar for BestJewSinceJC
0
188
Member Avatar for Goalatio

Hey all, I've been working on this little program in NASM 16 bit assembly, under a windows operating system. It works, I just have a problem. If you don't pass it any arguments, it fails to see that there is an end of line character. You pass arguments as.. INKEY …

Software Development assembly operating-system
Member Avatar for Goalatio
0
1K
Member Avatar for avirag

Hi ,I have made an application in which I am matching a string entered in textbox with the Text property of the forms.In that , I am matching 0.75% characters of strings and the text of the result forms are displayed in listview. But the problem is that the string …

Software Development display listview
Member Avatar for abc16
0
244
Member Avatar for brando|away

yeah i can't find this on google but i understand how to output data using 16bit (with int 21h/ah=02) say im doing some math calculations, how can i output something in a 32bit register (eax, edx...)?

Software Development assembly
Member Avatar for NotNull
0
143
Member Avatar for lotrsimp12345

Error 1 error LNK2019: unresolved external symbol "public: __thiscall vector::my_vector<int>::~my_vector<int>(void)" (??1?$my_vector@H@vector@@QAE@XZ) referenced in function _main test.obj Error 2 error LNK2019: unresolved external symbol "public: __thiscall vector::my_vector<int>::my_vector<int>(void)" (??0?$my_vector@H@vector@@QAE@XZ) referenced in function _main test.obj Error 3 fatal error LNK1120: 2 unresolved externals C:\Users\...\Documents\Visual Studio 2008\Projects\Iterator and Generic Vector Container\Debug\Iterator and Generic Vector …

Software Development c++ visual-studio
Member Avatar for Dave Sinkula
0
144
Member Avatar for ajay_p5

Hi everyone Well I have been trying to install some modules like Bundle::DBI, DBD ::mysql and latex::Parser on my apple comp running mac OS X operating system. Every time I am trying to install a module I get an error like this : make had returned bad status, install seems …

Software Development apple operating-system os-x perl
Member Avatar for ajay_p5
0
156
Member Avatar for bunnyboy

So I would like to make a function which would add elements in container in sorted manner. Let's say we have a struct with two integer. I randomly initialize them and the add it to deque. And now what I want is that my function would add them in a …

Software Development c++
Member Avatar for Clinton Portis
0
137
Member Avatar for jmoran19

Hi, hope someone can help with an issue I'm having. Basically, I've got an input file containing, amongst other things, an int on each line representing a time stamp in the form of hhmmss. I needed to make a comparison from line to line to make sure that no more …

Software Development c++
Member Avatar for jmoran19
0
102
Member Avatar for Star Frost

I know this might seem like a repeat of an already existent thread, however give me a moment to explain... What I have so far is a function that reads in a script file and stores each word in an array of custom objects. function: [CODE] void fileTester::readFile( string tempName …

Software Development c++ file-stream file-system
Member Avatar for Star Frost
0
187
Member Avatar for thehivetyrant

Greetings Pythoneers. I've got this problem and the problem is thus: i have drawn a shape using [B]pygame.draw.circle[/B] i am finding it hard to make it move. i tried [icode]self.move_to(self.x-5,self.y)[/icode] and also [icode]self.forward(random.randint(0,10))[/icode] (Where forward is defined as a function as [icode]self.x,self.y + 10[/icode])<== I dont think i defined the …

Software Development python
Member Avatar for vegaseat
0
8K
Member Avatar for P3run

I just started to learn Python before a week or so and i found this example and rewrited it in Notepad++ (btw it was really painfull to figure out how to connect Notepad++ with python.exe but i like notepad++ more than Python GUI) and this program just wont work nor …

Software Development gui python
Member Avatar for snippsat
0
130
Member Avatar for python.noob

Hello geeks, First of all thanks to the members of this forum for their active participation, contribution and willingness to help. Now i'm in need of your valuable suggestions for my project in python. 1) I want to have GUI interface in my project and now i'm using python 3.1.1. …

Software Development gui python qt
Member Avatar for vegaseat
0
139
Member Avatar for Gribouillis

Suppose that I have a program named myprog, and I type this in a shell [code] $ myprog -z hello -m "this is a message" [/code] The function main in myprog will receive a char** argv containing the following strings [code] "-z", "hello", "-m", "this is a message" [/code] So …

Software Development c
Member Avatar for Gribouillis
0
219
Member Avatar for discovery-power

Hi All, I have written a small interactive console application to help me understand variables, when you run the application it will ask you for a length and a width and it is supposed to work out the area. It works up to the part were it is supposed to …

Software Development c++
Member Avatar for discovery-power
0
96
Member Avatar for Voulnet

Hello everyone, I would like to write an application that would allow me to change the functions of the usually-useless F keys (especially F8, I hate that one) into functions that I specify in code. I would like to let some of them open certain files, or paste text.. etc …

Software Development
Member Avatar for Voulnet
0
160
Member Avatar for nerdagent

Just like the title says. I need help on clicking on a box in a grid and filling it in with a color. Right now each block is 10x10 so I would have to use a 9x9 rectangle so it doesn't overlap. [CODE] #!/usr/bin/python import pygame,os,sys from pygame.locals import * …

Software Development os-x python
Member Avatar for vegaseat
0
2K
Member Avatar for mishu5770l

I want to create a string like this: (just theoretically:-)) [CODE]import random list1 = ["1", "2", "3"] string1 = random.choice(list1) string2 = "Random Number is" + string1 [/CODE] but I want string2 to show up formatted like this: Random Number is [INDENT] 2[/INDENT] But, for the life of me I …

Software Development python
Member Avatar for vegaseat
0
106
Member Avatar for raigs

How to: 1. Buffer output ? 2. Get its size ? 3. Print the buffer ? [CODE]#include <stdio.h> int main(void) { printf("Tons of printf lines\n"); // 1. Somehow buffer the output up until this point printf("The size of the buffer is: %i\n", SIZEOFBUFFER); // 2. Get and print the size …

Software Development c
Member Avatar for raigs
0
4K
Member Avatar for racumin

Hi I have a class MapMaker [CODE] class MapMaker { private: Node *grid[MAP_WIDTH][MAP_HEIGHT]; public: MapMaker(); ~MapMaker(); /*this does not work*/ Node*** getMap(int i); }; [/CODE] I need a function that returns the "grid" attribute but I do not know how. Please help me. Below is the code that implements the …

Software Development c++
Member Avatar for Sky Diploma
0
157
Member Avatar for M.Jama

Hi there, I am new in java and some basic help would be appreciated. e.g 1-What's the out put of; double number = (1/3)*3; System.out.println("(1/3)*3 is equal to " + number); What's missing? 2- Convert each of the following mathematical formula to java expression; 3x and 3x+y Thank you in …

Software Development java
Member Avatar for M.Jama
0
88
Member Avatar for ankit894u

need to decode and encode the following text=== {Newton’s Law of Software Engineering Law 1: Every Software Engineer continues her/his state of chatting or forwarding mails unless s/he is assigned work by external unbalanced manager. Law 2: The rate of change in the software is directly proportional to the payment …

Software Development algorithm c++ engineering os-x queue
Member Avatar for asb77777777
0
720
Member Avatar for maverick405

Hello, I am trying to make a GPA calculator, the code below works fine and the output is also fine the only problem is if the GPA is 4.0 or 3.0 or 2.0 or 1.0 it gives me output as 4, 3, 2, 1 i had used variable as float …

Software Development c++
Member Avatar for maverick405
0
285
Member Avatar for johnroach1985

Hi there, Trying to write a small script in python. What it will basically do is this; 1- A SSH user initiates the python script (from SSH remotely) 2- The script gets the connected users IP (the user is connected through SSH) 3- The connected IP is sent back to …

Software Development lan-wan python
Member Avatar for johnroach1985
0
2K
Member Avatar for jrosh

I used below code to extract year from a date object. [CODE] java.util.Date ye = new java.util.Date(); int y = ye.getYear(); System.out.println(y); [/CODE] But it prints ,109 How I get the year as 2009??

Software Development java
Member Avatar for jrosh
0
228
Member Avatar for RC1007

I've got one form in a masterpage en here i've got one asp:button with a submit function that sends data to my mail for now. And then I made a contactform in a contentpage with a asp:button.Herefore is a second submitbutton. All code behind vb.net(the function) Problem: when i click …

Software Development asp vb.net
0
98
Member Avatar for ab00120

Hi there, At university I learnt Fortran to an adequate level for simple programs and as I enjoyed it i looked towards trying to learn C++. Up to now its been very slow but progressing, however i seem to have hit a bit of a brick wall. From just material …

Software Development c++
Member Avatar for ab00120
0
96
Member Avatar for power_computer

I have created a insert function which inserts the item in the template array, the position of the item in the array template list is depending on the ratio of wins over total games played, I have manged to work out the insertion sort if the two scores of a …

Software Development c++
0
80
Member Avatar for nizbit

This is a very basic question, but I'm very new to python. I want to read data in a file. The data is between two delimiters. I'm not exactly sure how I can extract the data and skip the delimiters. Any help would be great.

Software Development python
Member Avatar for vegaseat
0
279
Member Avatar for simpatar

Ok my program looks like this: [CODE]U = set([0,1,2,3,4,5,6,7,8,9]) A = set([2,4,5]) B = set([5,8]) C = set([5]) def main(): print('This is a program to give complement to given elements') x = input('Enter elements bla bla: ') y = U.difference(x) print('The complement of given elements are:', y) main()[/CODE] As you …

Software Development python
Member Avatar for simpatar
0
81
Member Avatar for rackster992

Hello Everyone I am new to this forum and new to learning Python. I was looking for a good book to help teach it to myself and on a recommendation purchased the book [I]Python Programming In Context[/I] by Bradley Miller and David Ranum. This is a good book in terms …

Software Development python
Member Avatar for dcghelp
0
1K
Member Avatar for JoQsh

I'm working on some code for a school project that involves outputting the average GPA of a group of male and female students. The total GPA (before dividing to get the average) needs to be rounded as each student's GPA is added in order to get the correct output. However, …

Software Development c++
Member Avatar for JoQsh
0
152
Member Avatar for Yeen

I ran into a something I did not expect when making a small program. I'm not including the whole program, just exemplifying the stick in the wheel, as it's part of a homework assignment. I'd just like some clarification on why the last "x = 1" is ignored. [CODE] x …

Software Development python
Member Avatar for pspwxp fan
0
101
Member Avatar for MattyRobot

I have been trying to get world coordinates of the cursor position for a program by: [LIST=1] [*]getting the top and left position of the client of the window [*]getting the global position of the cursor (GetCursorPos()) [*]cursor x - client left and cursor y - client top [*]zoom x …

Software Development c++ opengl
Member Avatar for MattyRobot
0
96
Member Avatar for SCoder1

Hi I can't seem to get this right I've looked online but I can't find the right page. I'm trying to make a simple program that takes a number but what if a character is entered. Well so far I get "140" as an answer. Here's what I mean in …

Software Development c++
Member Avatar for SCoder1
0
97

The End.