132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for breatheasier

Hi, I'm wanting my program to loop and create different files outputting at different stages in a while loop, I just can't work out how to make it happen! here's a stupid example [code=python] while (a<10): a = a+1 if (a=4) or (a=6): output = open('output'+a, 'w') #something like this? …

Software Development python
Member Avatar for xopenex
0
5K
Member Avatar for sagngh8

Hi everyone, Please help me on this. “Could not load file or assembly 'Newtonsoft.Json, Version=4.0.3.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)”. 'NewtonsoftJson.dll’ assembly is required for posting to twitter .The version used is 4.0.3.0. …

Software Development api asp.net assembly json
Member Avatar for Momerath
0
434
Member Avatar for jonnyboy12

Hello all this is my c++ web server that i can get working on my computer but not connecting to others for some reason. I am not on a router, just using my external ip address. If i run the server and type my external ip address into my browser …

Member Avatar for jonnyboy12
0
215
Member Avatar for naraayanan1983

Hi friends, I need to develop a COM Port Application in the C#.Net? So What kind of code will i use to COM Port Application in C#.Net? Please Help me.

Software Development c#
Member Avatar for naraayanan1983
0
59
Member Avatar for saneeha.nust

I need to apply the "&" operator in where clause... the code is: [CODE]com = new OleDbCommand("select Accesstype from FTPSitesAuthorisation WHERE (SiteName = @site_name) & (UserName=@user_name)", conn); [/CODE] It does not give any error,,, but the result is not correct , the "and" operation is not applied... please guide , …

Software Development
Member Avatar for saneeha.nust
0
134
Member Avatar for newbie1234

i want to read data from file. I have test.txt. In this i have data a:123 b:223 c:323 how can search 'b' and get the data 223 and so. I found some where that i can go via getline and than tell and for data grabing seek. but i do …

Software Development c++
Member Avatar for tungnk1993
0
267
Member Avatar for stevo7624

Can someone help me finish this code off. Its a simple program that prompts two players to pick a card. Each picks between 0-51. An array is holding each of the cards by rank and suit using a struct. Everything works great except the greater_than function. The only issue with …

Software Development c++
Member Avatar for stevo7624
0
128
Member Avatar for saneeha.nust

I am using a select statement for selecting certain rows of database table. the statement returns multiple rows. please guide me how can i store all the rows so that they can be used latter for comparison. each row contains one variable of type string... I was using string user …

Software Development
Member Avatar for saneeha.nust
0
145
Member Avatar for ejohns85

Hello, I am trying to capture a video stream from a webcam, and simultaneously display the frames, using OpenCV. Previously, I have captured one image, and then at the end of my program displayed the image in a window, which works fine. However, when I try to capture a sequence …

Software Development c++ video webcam
Member Avatar for josephbeluan
0
497
Member Avatar for aderogba08

I wrote a program that allow users input a double value, if I input a string or a char value, it turns out to be a logical error. I've tried this: [code=c++]bool h; float value; do{ cout<<"enter a value"<<endl; cin>>value; if(cin.fail()){ cout<<"error, enter a value!"<<endl; cin.clear(); cin.ignore(); h=true;} else h=false; …

Software Development c++
Member Avatar for aderogba08
0
227
Member Avatar for konman795

Hello all, I have an assignment in which I need to subclass and implement an abstract method (java.io.OutputStream) to create an output stream called NumStream. The NumStream class converts digits to strings. We are given most of the code it seems and I need to only implement one area. It …

Software Development java
Member Avatar for ztini
0
234
Member Avatar for alreem

mr7b .. To calculate the value of e^x ,, I do this code but I THINK I have mistake . . ! Can any one tell me if it's true or not > ? [CODE]package calculate; import java.util.Scanner; public class Main { public static void main(String args[]){ double x, n, …

Software Development java
Member Avatar for ztini
0
2K
Member Avatar for sariberri

[CODE]import java.util.*; //You may assume that all Points are unique. public class PointSet { private ArrayList<Point> list; private Comparator<Point> compareMethod; //default constructor public PointSet(){ list = new ArrayList<Point>(); } //copy constructor for a point public PointSet(PointSet l){ list = new ArrayList<Point>(); for(Point p: l.list){ this.add(p); } } //randomly generating a …

Software Development algorithm java
Member Avatar for sariberri
0
909
Member Avatar for Johan__

hello If i want this private bool ReadAndValidateName(out string name) to call in to this private void txtPrice_TextChanged_1(object sender, EventArgs e) so every thing ho is in bool is going in to text

Software Development
Member Avatar for skatamatic
0
66
Member Avatar for ladybro

Thanks for taking the time to open this. I am just starting to learn Java and cannot seem to get past a point in the program I'm currently working on. I'm making a credit card verifier, where you enter the numbers and an algorithm deems it valid or invalid. I …

Software Development algorithm java
Member Avatar for stultuske
0
155
Member Avatar for NicoleD90

I have to create a program that simulates flipping a coin. The directions my teacher gave me are as follows: 1. Program should prompt the user for number of runs 2. Program should prompt the user for the number of times to flip the coin in a single run 3. …

Software Development java
Member Avatar for NicoleD90
0
700
Member Avatar for iRamble88

[CODE=java]import java.util.Scanner; class Sum { private int value; public int get() { return value; } public void set(int sum) { this.value = sum; } } class Summation extends Thread { private int upper; private int lower; private Sum sumValue; public Summation(int upper, Sum sumValue) { if (upper < 0) throw …

Software Development java oop operating-system
0
175
Member Avatar for jbutardo

Hi, I have this fileupload control which saves excel file on my server, but somehow, if the excel file is larger than 4 mb it does not save the file, i used this code fileupload1.SaveAs can you please help me on why does this happen? Thanks

Software Development file-system vb.net
Member Avatar for desynch
0
445
Member Avatar for pattmorter

a friend asked me to help him with his lab. the lab involves opening a file and adding the numbers in the file together displaying how many even and how many odd numbers there are. I have the file "textinput.txt" in the directory with the .cpp file but when i …

Software Development c++ file-system
Member Avatar for pattmorter
0
304
Member Avatar for 09cody

I'm just learning Java, so please bear with my ignorance. I have a feeling (hope) that this question has a very simple answer, just one that is evading me at the moment. For our assignment, we have to write a boolean function that will take a given elephant, "e" (the …

Software Development java pdf
Member Avatar for JamesCherrill
0
299
Member Avatar for gedas

Hey guys, what would be a neat why of geting every third token in the string. lets say there is a: String longString= "i want this"; how would i be able to get "this" ? Thanks

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for MineCrafter

It keeps giving me this error and i really need help! [CODE] package net.minecraft.src; import org.lwjgl.opengl.GL11; public class ModelMrsMcDade extends RenderLiving { //The three numbers below change the size of your model (you'll need to change the hitbox size too though) protected void preRenderScale(ModelMrsMcDade entity, float f) { GL11.glScalef(1F, 1F, …

Software Development java opengl
Member Avatar for JamesCherrill
0
585
Member Avatar for darkelflemurian

Hello everyone. I have the following issue: I have a Windows XP computer with excel 2003 installed. we use several automation robots using excel. everything works fine, files area created and all that. but we have a problem. for some reason the document recovery pane of excel is getting filled …

Software Development microsoft-office vb.net visual-basic
Member Avatar for darkelflemurian
0
243
Member Avatar for DavidKroukamp

Hi all, I'm in my 2nd year of software development (doing C#) and having come from a Java background, and having programmed a few GUI's in C#/Visual Studio's; I was wondering... Like in Java You can use an IDE to build a GUI, however you can also simply add Frames, …

Software Development c# gui visual-studio web-design
Member Avatar for DavidKroukamp
0
341
Member Avatar for Eclipse77

Hi, I'm in need of some help in using functions for the hangman game. The professor doesn't understand how difficult it is for a first time programmer and just doesn't explain new concepts thoroughly. The game that I'm trying to code looks like this: Enter the secret word: LETTERS ------------------------------------------------------------ …

Software Development python
Member Avatar for woooee
0
3K
Member Avatar for guy40az

I want to set up an array and have 100+ items in the array anyone know how to split the line Dim row() As Integer = {1, 2, 3, 4, 5, 6} like this Dim row() As Integer = {1, 2, 3, 4, 5, 6}

Software Development vb.net
Member Avatar for Begginnerdev
0
122
Member Avatar for johang_80

Hello everyone I have a task of changing values in an int[][], for example if I input 1 it is changed to 0 and vice versa. So far I tried the following for a hundred times amending the xs and ys but with no happy ending. [CODE] public void reverseOrder(int …

Software Development java
Member Avatar for johang_80
0
193
Member Avatar for huh

I use nasm. Say I want to have a loop and each loop add something to a buffer, here is the buffer: [CODE]buf: times 0ffh db 0[/CODE] Here is the loop the loop: [CODE] xor al, al mov edi, buf theloop: cmp al, 0ffh je done inc al ; add …

Software Development assembly
Member Avatar for thines01
0
97
Member Avatar for UFO Disko

Hello, I recently migrated our ASP.NET application to another server. We copied everything exactly as it is, from ASP.NET files to SQL Database with its stored procedures and everything. Now when we goto the app's root directory, the login page pops up as usual, we login and everything is fine …

Software Development
Member Avatar for UFO Disko
0
392
Member Avatar for sw8revenge

hello everyone i just wanna ask some help regarding on how to delete all datas in the data grid view from search result. i have a form which search data in specific date and show result in the datagridview, what i want is that when delete button is clicked all …

Software Development vb.net
Member Avatar for artemix22
0
232
Member Avatar for digiguy

Hi All! I just have a question (looking for advice) i'm trying to write a web based app and i don't know if i should program in c# or asp.net. What advice would you give a noob, who is more comfortable on the hardware side trying to get a better …

Software Development
Member Avatar for skatamatic
0
145
Member Avatar for ChevyScience

I am having a problem with my code, it is suppose to be rearranging the characters inside the array, but every time i enter the lower bounds (x) and upper bounds (y), i rearranges the wrong alphabets. Here is my code [CODE] int main() { char a[5]={'A','B','C','D','E'}; int x, y; …

Software Development c++
Member Avatar for ravenous
0
172
Member Avatar for 47pirates

I have a server in python and client in java and i want to share images through the socket how can i do so? help plz

Software Development client-server java python
Member Avatar for dantinkakkar
0
172
Member Avatar for arindam31

Hi , I want to achieve something like this . Consider the example [CODE]>>> txt 'arin.thearc@gmail.com' if '@' or '.' in txt: do something[/CODE] I just want to know how can we nest ORs and ANDs inside the if or while loops...

Software Development python
Member Avatar for TrustyTony
0
219
Member Avatar for jd2369

I have a website which has a section under maintenance with a button called create a new file - when you click on this button it does a backup and generate a filename on the same page called *.tbf - the filename changes each time you click on create a …

Software Development file-system vb.net visual-basic
Member Avatar for thines01
0
361
Member Avatar for whitech

I've to write a program which gets a colour from user.Users will enter the colour's name if the colours is exist in my string,program will give a msg.If it doesn't exist give an error msg and stop program.I've already write a code but it doesnt works accurately. [CODE]int i,j; void …

Software Development c
Member Avatar for Subhasis giri
0
122
Member Avatar for Labdabeta

To what extent does the system endianness effect a program. I know that doing pointer assignment will be affected, and unions are too, but what about bitshift operators? Do they apply to the value, merely emulating real bitshifts, or do they apply to the bits themselves? Are there any other …

Software Development c++
Member Avatar for Labdabeta
0
89
Member Avatar for Stjerne

Hello, I've a question about DataOutputStream. I'm trying to complete this Pseudo-sentence: [CODE] public void writeObjectToFile( DataOutputStream output ) { < Writing data field values ​​to file. > } [/CODE] This is my code: [CODE] public void writeObjectToFile( DataOutputStream output ) { String filename = "test.dta"; try(output = new DataOutputStream(new …

Software Development java
Member Avatar for JamesCherrill
0
157
Member Avatar for nonlinearly

Hi I have an old inherited file with c code (visual studio 6). I compiled this file in Visual C++ 2010 (I made an empty project and a win32 console application) and was OK. But when I did the build to make the .exe then the linker throws errors. I …

Software Development c c++ visual-studio
Member Avatar for nonlinearly
0
249
Member Avatar for vlady

hi! I have another struggle. I'd like to have this kind of output: [COLOR="Green"]som object studenta: Janko Mrkvicka som object predmetu: fyzika, mam znamky: [4, 1] a priemer: 2,5[/COLOR] How can I make it? my output is a bit different (it is in last line): [COLOR="Red"]som object studenta: Janko Mrkvicka …

Software Development python
Member Avatar for Lucaci Andrew
0
136
Member Avatar for virus.exe

I was wondering if it is possible to move the mouse in C++. Like get the coordinates and move the cursor. Maybe it's not possible but it would be cool. thx

Software Development c++
Member Avatar for BhawikJain
0
395
Member Avatar for Thropian

I started looking into networking and storing/altering data on a computer. I've got everything running, but can't get it to work from an outside computer. Is there an easy way to get past the LAN restrictions or am I going to have to change settings on my router?

Software Development python socket-programming
Member Avatar for ihatehippies
0
296
Member Avatar for divsok

please anybody can give me the access code for "Introduction to Java Programming, Comprehensive, 8/e" book if you've..

Software Development java
Member Avatar for StephNicolaou
0
116
Member Avatar for matt209

I'm new to using vectors and some may see this as a trivial problem. If you have any suggestion on how I can improve the program, I welcome your input. code(with problem): [CODE] #ifndef CMONOPOLY_HPP #define CMONOPOLY_HPP #include <vector> #include "head.hpp" namespace CMonopoly { class CMonopoly { public: ~CMonopoly(); void …

Software Development c++
Member Avatar for matt209
0
667
Member Avatar for shadow29014

I created a program which outputs a y coordinate based on a value of an x. Here is my code. [code] double xmax,xmin,xspac; cout << " Input a value of minimum value for x: " << endl; cin >> xmin; cout << " Input a value of maximum value for …

Software Development c++
Member Avatar for tungnk1993
0
117
Member Avatar for luskbo

Okay, been working on Android program and since its JAVA based, I figured this might be a place to get some good advice. I have been writing this program to run tcpdump, but for some reason it freezes and crashes. I am able to execute the shell commands, but after …

Software Development android android-development java sqlite
Member Avatar for luskbo
0
285
Member Avatar for artemis_f

Hello all, I am new to this forum. I think this will be an excellent place for learning things and I am looking forward to gaining more java knowledge. My current predicament is the ArrayIndexOutOfBoundsException I am getting on a program I have written. I haven't been able to figure …

Software Development java
Member Avatar for stultuske
0
1K
Member Avatar for grh1107

how you would compute/denote the time complexity of two loops based on different variables? I understand how to compute the time complexity for a simple loop PseduoCode while X<N { while Y<M { Z++ } X++ } one loop occurs N times - time complexity O(N) the other loop occurs …

Software Development c++
Member Avatar for mrnutty
0
315
Member Avatar for Rashidindia

hello friends, I am reading multidimensional arrays but i am not getting understand. anyone know please help me in detail. thanks,

Software Development c
Member Avatar for tungnk1993
0
84
Member Avatar for Susmita_Sikder

hi all, i can't do the programme in c++ "Write a scanf function in c which accept sentence from user."pls any body reply. thank you in advance

Software Development c++
Member Avatar for tungnk1993
0
322

The End.