132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for grisha83

Hello, Here is the problem ive been working on: write a while loop that displays each int from 1 to 5 together with its square and a cube. Display all three values for integer on a separate line. My problem is that it does not really do what it is …

Software Development c++
Member Avatar for grisha83
0
265
Member Avatar for defience

I keep getting an error message when I run this code and I don't know how to correct it. Here's the code and below it is the error message: [code] import sys import Image import ImageFilter im = Image.open("7.bmp").convert("L") source = im.split() R, G, B = 0, 1, 2 # …

Software Development open-source python
Member Avatar for woooee
0
1K
Member Avatar for Tr1ckst3rNcag3d

First off, I have searched the forums and have not stumbled across the answer to my question. If I overlooked it feel free not to post here or close the thread or link me to the correct thread. I apologize if i missed it. I'm trying to create a number …

Software Development c++
Member Avatar for Tr1ckst3rNcag3d
0
96
Member Avatar for demroth

I am trying to read the data (integers) from a file to a larger unsorted array and then move specific elements from that array to specific sub arrays. I can write the data from the file to the unsorted array fine but I get the wrong integers when trying to …

Software Development c++ file-system
Member Avatar for demroth
0
92
Member Avatar for jared_masc

Iam meant to implement 3 methods that do the same thing differently to read in a string and the string that is read from the keyboard must be terminated with an end-of-string character. Also, it should not contain any new line character. iam supposed to use fgets(), getchar() and scanf(); …

Software Development c
Member Avatar for stilllearning
0
122
Member Avatar for shrikara

this is my code I am using in Unix machine, using cc compiler: [code=c] #include<stdlib.h> main() { int nr=0,nc=0; printf("Enter number of coulmns:"); scanf("%d",&nc); printf("Enter number of rows:"); scanf("%d",&nr); int *x,temp; printf("Enter the matrix:\n"); for(int i=0;i<nr;i++) { for(int j=0;j<nc;j++) { scanf("%d",&temp); *(x+i*nc+j)=temp; } } for(int i=0;i<nr;i++) { for(int j=0;j<nc;j++) { …

Software Development c unix
Member Avatar for kenji
0
134
Member Avatar for kevin7778

error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)

Software Development c++
Member Avatar for stilllearning
0
64
Member Avatar for thenic

ok ive got my program to work now but cant get it to ask me if i want it to make a new calculation and i need to do this with a while command i dont what a done code out of you ppl cause its my homework and i …

Software Development c++
Member Avatar for kenji
0
116
Member Avatar for kevin7778

[code=cplusplus] #include <iostream> using namespace std; int main(){ int n ,sum(1),k; cout <<"Please enter an integer n "<< endl; cin >> n >>endl; for(k=1;k<=n;k++) { sum +=(1/(1*(k+1))); } cout << "The sum = " << sum <<endl; return 0; } [/code] It does not recognize the input operator >> when …

Software Development c++
Member Avatar for kevin7778
0
130
Member Avatar for unk45

why do i keep getting the same1?? [code] #include <iostream> #include <ctime> using namespace std; struct card { int value; char suit[10]; char faceCard[10]; }; int deal(card deck[maxcards], int decksize, int &z); void shuffle(card deck[], int decksize); int score =0; int main() { int scoretracker =0; card deck[52]={{11, "s", "ace"}, …

Software Development c++
Member Avatar for chococrack
0
103
Member Avatar for JimHjr

Hi guys/gals, I am student at University of Phoenix. I am not here to have you do my homework, I know this is not the place for that. I do need help though. I am trying to work through this course an really learn something. Many of you ar probably …

Software Development java
Member Avatar for jasimp
0
175
Member Avatar for CodyOebel

I am wondering if theres code for removing this software completely, but through code ? It has been a while since I have been working on this type of a project, but now that I am trying I noticed security centers such as norton, and mcafee have changed a bit …

Software Development c++
Member Avatar for Th3_uN1Qu3
0
148
Member Avatar for rapture

Hey all, Does anyone have a good resource for me to read/use as I begin using C# more. I'm still very new to the language and have found that there are tons of ways to do the same thing, however many of them are the wrong way to do it …

Software Development
Member Avatar for LizR
0
89
Member Avatar for scru

How can I get and set the rgb value of a specific pixel on screen using C#?

Software Development
Member Avatar for LizR
0
148
Member Avatar for t_s

I have been searching (google and books) for an answer to this question for a long time without managing to find any answer worth the name, so I'll try posting a thread hoping for better luck. Can someone explain to me why this: [code=C++] Aclass **tmp, *aclass[10]; tmp = aclass; …

Software Development c++
Member Avatar for t_s
0
116
Member Avatar for grass_hopper

Hey guys, I was wondering if someone might be able to help a newbie out. I'm trying to write a program that randomly flashes either a .gif file on screen or nothing. Now, I've gotten that working but the trick is I want there to be a short gap between …

Software Development python
Member Avatar for jlm699
0
99
Member Avatar for venomocity

I'm back after being gone for a while. Thus I haven't played with VB in some time. Thus my brain strength has gone out with it. I'm still working on my game and trying to make the system choose a number between 10 to 21 then put that into a …

Software Development visual-basic
Member Avatar for venomocity
0
124
Member Avatar for koushal.vv

Hi Friends, Can any tell me a free tool which detects memory leak in C++ code. to be more specific [ UNMANAGED C++ code ]. i am using some C Structs in my MFC SDI application, When i run in debug mode , the output window shows that memory has …

Software Development c++
Member Avatar for Salem
0
158
Member Avatar for hisheeraz

Helo friends; [code] If lbDriverName.SelectedIndex = True Then sql = "SELECT * FROM tblDriver WHERE dName =" & lbDriverName.SelectedItem Else sql = "SELECT * FROM tblDriver" End If [/code] and my error is... [TEX] Syntax error (missing operator) in query expression 'dName ='. [/TEX] where dName is the column in …

Software Development display sql vb.net
Member Avatar for hisheeraz
0
136
Member Avatar for harrykokil

hi everyone i wanna create a class in tkinter but im finding it very difficult to begin it as im new to python. i want a class traffic light that will operate continuously (that is red to green to red.... ). thanks..

Software Development python tkinter
Member Avatar for harrykokil
0
114
Member Avatar for legend_018

ok, Not sure if this is a silly question or not. I'm trying to relate it to technical support. I have been in the technical support field for many years and with thousands of technical articles written for problems we find - it's impossible to memorize all the technical articles. …

Software Development
Member Avatar for jireh
0
406
Member Avatar for abu taher

12 months name (12 check box) in a form. when I check a box it will store in backend access file. 1 adodc control also in this form. when click a button this form was shown. this month was store for that button like salary. example: a man paid his …

Software Development visual-basic
Member Avatar for jireh
0
96
Member Avatar for Melab

I'm looking for a very easy to use compiler that I don't have compile or download any other stuff for and on that is a GUI app.

Software Development c c# c++ gui
Member Avatar for Narue
0
83
Member Avatar for natter

Hello, I am kind of new with vb6 and vb8. I am working on a program that has a countdown timer. I have the code for the countdown but what I would like to do is to have it when the the countdown is done then the program will shut …

Software Development visual-basic
Member Avatar for jireh
0
115
Member Avatar for sunveer

I want help in reversing a string without using another array. a string "Hello" should be printed as "olleh" Please help.

Software Development c++
Member Avatar for Narue
0
169
Member Avatar for danibootstrap

Hi, I want to write a simple code to change the mouse pointer position.Like I enter the value of X and Y and the mouse pointer should get positioned to that co-ordinates.What are the specific functions that I need to use to set mouse position and get mouse position?I searched …

Software Development c
Member Avatar for danibootstrap
0
121
Member Avatar for volscolts16

Hi everyone, I have a project that I have to do in C++. I have already done a very similar project in Java in another course. It's kind of amazing that the teacher that was teaching the java course got all of her materials from the C++ teacher. Anyways, my …

Software Development c++ java
Member Avatar for volscolts16
0
106
Member Avatar for brezzler89

The code I have thus far is as follows: [code=cplusplus] /*-------Header (head.h)-----*/ #include <iostream> #include <cmath> #include <iomanip> #include <cstdio> #include <cstdlib> #include <ctime> using namespace std; #include "fcn.cpp" #include "Montecarlo.cpp" /*-------Main Source (prog.cpp)---*/ #include "head.h" int main (void) { Montecarlo(); system ("pause"); return 0; } /*-------Source file (Montecarlo.cpp)---*/ void …

Software Development c++
Member Avatar for brezzler89
0
350
Member Avatar for WongTinMing

Hi, I would like to know is it possible to use c++ code to control pc hardware?

Software Development c++
Member Avatar for Salem
0
97
Member Avatar for nizbit

I am having a little bit of a dilemma. I have an input file that can have a number 1 through 9 or a asterisk. I am treating 1-9 as a character. I don't know if there is white space or new lines. I can't use >> because I don't …

Software Development c++
Member Avatar for VernonDozier
0
122
Member Avatar for JenniLei

Hello, my first time on these forums, but im sure it will not be the last. I am doing my dissertation for computer science and my project is based on the classic time tabling problem using constraint satisfaction. My question is does anyone have any information or links on where …

Software Development java
Member Avatar for JenniLei
0
119
Member Avatar for tortoiseman

Hi everybody, I am new to Java, and can't figure out why my program is not recognizing the class Picture. The program compiles, but when I run it, it gives an error: Exception in thread "main" java.lang.NoClassDefFoundError: Picture at NewtonReal.main(NewtonReal.java:55) Please note that to run NewtonReal, you must include three …

Software Development java
Member Avatar for tortoiseman
0
121
Member Avatar for PRob99

int x=10; int total=10; do { total += x++; }while(x<15); System.out.println(x); The output of this program will be 15. I don't understand why 15 is the answer. I'm not understanding the arithmetic here. Doesn't the "+=" mean total = total + x? And doesn't x++ mean that the next value …

Software Development java
Member Avatar for ~s.o.s~
0
77
Member Avatar for mufliha

hello everyone, i want to capture web cam photos in c# application.Can any one plzzz give me the code to implement it. thanku

Software Development
Member Avatar for Elmo_loves_you
0
168
Member Avatar for k2k

it looks like case 1, reading the data from a text doc is doing what it supposed to do (coz if i put the output lines under case 1 it works) however case2 doesn't have anything in the nameBox[] .. it didn't get the array index from case 1... any …

Software Development java
Member Avatar for javaAddict
0
188
Member Avatar for corteplaneta

Hello everyone, I'm new here and have a question for you! I was working on a very complex macro in VBA using Outlook 2007's macro editor, but then realized the project is more suited for a standalone executable. Feeling working on this in VB6 was too outdated, I switched over …

Software Development display vb.net
Member Avatar for corteplaneta
0
252
Member Avatar for minwei86

Hello, This is my program here...I want to make it read from a textfile and displayed in this way Number : 1 Roman Numeral : I Number : 2 Roman Numeral : II My textfile is in this form: 1 2 but i still unable to solve it...is something to …

Software Development c++
Member Avatar for mcriscolo
0
102
Member Avatar for sbv

Hi i am importing a excel sheets using vb.net. my code is dependent on column sequence. but its as per user need the sequence is chaning again and again. For that i need to change my code ( which is huge ) need to change. :( plz help.

Software Development vb.net
Member Avatar for bruce2424
0
184
Member Avatar for Kamal_Java

Hi , I have a stl list which stores my base class pointer .Like [CODE]list<BaseClass*> eBList;[/CODE] now i want to iterate through this list and store it in one local variable. how do i do this. i have shown below the code i tried .... But at one part it …

Software Development c++
Member Avatar for Aashath
0
162
Member Avatar for Dontais

I'm probably just confusing myself, but what the basic idea is I put in a grade and it outputs if the grade is an f, c, d ... etc. It allows me to enter a number and after I enter it it will continue to show F! repetitively. After this …

Software Development c++
Member Avatar for Dontais
0
113
Member Avatar for koushal.vv

How to add keyboard shortcuts to Menu in an SDI application? Some of the things that i have tried is : say Context menu has a sub menu called Menu1 , i have mentioned it as &Menu1 which makes Ctrl + M as keyboard short cut for it [ but …

Software Development c++
Member Avatar for jencas
0
165
Member Avatar for Kezoor

Hello everyone ! I am a still a beginner in Python (and have no knowledge in other languages), and today I got a reaction from my script that I find unexpected. Here's the code: I want to use the buildOneCard function to create a card (a couple of values), by …

Software Development python
Member Avatar for Kezoor
0
182
Member Avatar for Zolookas

Hi, I have a question. Is it possible to copy all contents from record to typed pointer which has same items? Example here: [CODE=pascal]program linked_list_queue; type queue = ^myrecord; myrecord = record data: integer; otherdata: string; datadatadata: char; next: queue; end; const head = nil; tail = nil; procedure add(argument: …

Software Development pascal queue
Member Avatar for pritaeas
0
153
Member Avatar for VbRider

help plzzz... Specified cast is not valid If Not IsPostBack Then Dim LastPage As LoginForm ===> LastPage = CType (Context.Handler, LoginForm) <=== txtID.Text = LastPage.Value End If how to solve this problem??

Software Development vb.net
Member Avatar for VbRider
0
115
Member Avatar for grisha83

Hello everyone I am trying to do this assignment in the book: Write a program that reads four words (as character strings) and display them in increasing and decreasing alphabetical sequence. I have done the 1st (easy) part but not sure how to go about displaying words in alphabetical order. …

Software Development c++
Member Avatar for grisha83
0
138
Member Avatar for PRob99

The following is a question from my teacher along with the correct answer: public class IfTest { public static void main (String args[]) { if (true) if (false) System.out.println("a"); else System.out.println("b"); } } The code will compile correctly and display the letter b when run. I have to explain why …

Software Development java
Member Avatar for chan95
0
104
Member Avatar for it2051229

I'm looking for the header file of shm.h , although i've seen some on the web but when i use it the prototype methods are not implemented.... where can i download the full shm.h?

Software Development c
Member Avatar for Salem
0
118
Member Avatar for PaladinHammer

[CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () { ifstream fin("program4.txt"); ofstream fout("output4.txt"); string lastName; string firstName; string fournumbers; if(fin.fail()) { cerr << "Unable to open input file\n"; exit(2); } if(fout.fail()) { cerr << "Unable to open output file\n"; exit(3); } while (fin >> …

Software Development c++ file-system
Member Avatar for stilllearning
0
142
Member Avatar for Ellisande

To pass an ifstream type as an argument for a function? [code]bool initGame(Game &game, int argc, char *argv[]){ ifstream board(argv[1]); // <------------------- This part ifstream deck(argv[2]); int numPlayers= atoi(argv[3]); int numRounds= atoi(argv[4]); if (board.fail() || deck.fail() || numPlayers==0 || MAXPLAYERS < numPlayers || numRounds < 1 || numRounds > 1000 …

Software Development c++
Member Avatar for Ellisande
0
191
Member Avatar for Stella01

why we use different libararies in C can some one PM me all Libararies ?

Software Development c
Member Avatar for Dave Sinkula
0
100

The End.