132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for liyanaddsce

Hello!!! I am a beginner to C++ and linked list and searching algorithm really made me confused. There are 26 errors (which caused by pointer ofc). Can anyone give me idea how to fix these errors??? #include<string> #include<cstdlib> #include<iostream> #include<malloc.h> #include<fstream> #include<time.h> #include<conio.h> using namespace std; #define SIZE 10 class …

Software Development algorithm c++ linked-list session
Member Avatar for Moschops
0
274
Member Avatar for ali11

Hi I am trying to move JTabbedPane down below top panel.I want it where the bottom panel begin.Thanks. import java.awt.*; import javax.swing.*; public class GridBagLayoutTest { JPanel bottomPanel; JPanel topPanel; public GridBagLayoutTest() { JFrame frame = new JFrame("GridBag Layout Test"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLocationByPlatform(true); JTabbedPane tabbed=new JTabbedPane(); tabbed.add(bottomPanel,"One Way"); tabbed.setBounds(12, 200, 20, …

Software Development java java-swing
Member Avatar for JamesCherrill
0
196
Member Avatar for Asira18

Please can someone help me write a simple password program for my program which prints out in stars(*).Thank you.

Software Development c++
Member Avatar for David W
0
372
Member Avatar for Mayukh_1

Hello guys can anyone please help me in a problem relating to file. The problem is that I want to use `fgets` on a c file from another c file and increment a the counter every time to get the number of lines and I also want to put the …

Software Development c file-system
Member Avatar for David W
0
201
Member Avatar for Surajit_1

I am trying to experiment with the whole idea of creating two text files then write to one of them, rename the second file with the first file and then deleting the first file. I have a school project where i need to apply this concept. So, before i actually …

Software Development file-system java
Member Avatar for rubberman
0
297
Member Avatar for Kevin_17

I have a question is there any possibility for maken a script that you can see if computers are on in your network when you run the script for ex. ./ping.sh 54 62 62 , a script when you give as argument the last digit of the ip adres of …

Software Development shell-scripting
Member Avatar for cereal
0
307
Member Avatar for aymenchouikh

Hello i'm using visual studio 2010 express. I'm beginner. I'm searching how to design a button and to program it ? Thanks for any help

Software Development c++ gui web-design
Member Avatar for ddanbe
0
413
Member Avatar for TObannion

So, I'm working on an assignment. It involves a read-in text file and the program itself. When I run it I get what my teacher would call "garbage" in the output. Here is the info from the .txt: Mike 1200 John 350 Jen 1500 Tara 700 Michelle 2000 Kevin 500 …

Software Development c++ open-source
Member Avatar for TObannion
0
261
Member Avatar for greenleafone7

I have a 'User' model holding some information like username password etc. After installing swingtime I was hoping to correlate its 'Event' model with my 'User' model so I can add events for every individual user. The thing is that in order to do that I need to have a …

Software Development python
Member Avatar for greenleafone7
0
179
Member Avatar for Clearner123

Hi all, Suppose if I write two programs of same functionality but with different methods and want to measure the run time efficiency how do i know? I mean to say i want to measure the run time of each code how do i do it? Should i check the …

Software Development c
Member Avatar for Mayukh_1
0
330
Member Avatar for Ku Nj

pls can i get a code for the following example 1 ** 234 **** 56789 ******

Software Development c
Member Avatar for Mayukh_1
0
192
Member Avatar for newprogramming

I wrote a program for converting a file from PPM format to ASCII art. Every pixel of the input image is converted to greyscale by calculating the average of red green and blue values ((red + green +blue)/3). The upgrade of the basic version is that I calculate the average …

Software Development c perl
Member Avatar for rubberman
0
410
Member Avatar for Felipe_1

import evaluar from pylab import * from numpy import * def puntofijo(po,TOL, N): vectorx = zeros (N, Float64) vectory = zeros (N, Float64) i = 1 while i<=N : vectorx[i-1] = po Evaluar.dicc_seguro['x']=po fp = eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) vectory[i-1]=fp if fabs(po-fp): print "La raiz buscada es: ",po, "con", i-1, "iteraciones" …

Software Development python
Member Avatar for rubberman
0
797
Member Avatar for Hind_1

im new to java and this is my first assignment can anyone help me solving it: compile the class final grades, based on the students’ scores obtained in the classwork, mid-term, and final exams. According to the course syllabus, the classwork accounts for 65%, the mid-term exam accounts for 15% …

Software Development java
Member Avatar for JamesCherrill
0
379
Member Avatar for Zahid_5

Difference Between general properties and auto implementation properties?

Software Development
Member Avatar for deceptikon
0
100
Member Avatar for Oyeniran

please How can i write a program that user will input the number of question he want and the question will be displayed at random from a group of question using c#.

Software Development
Member Avatar for Zahid_5
0
125
Member Avatar for arup_1

javac Cannot find my Example.java file after saving it in c:\program..\java..\bin\!! i am using win 7 (64 bit). Following points are so confusing.. 1. **Even i cannot** see the file in that directory form window!! 2. If i want to copy it 2nd time, windows ask me to **"overwrit"**. (Means: …

Software Development file-system java
Member Avatar for stultuske
0
252
Member Avatar for Felipe_1

my project consists of 6 files with .py. The first is the main project file, which I called Metodos.py and whose code is: #!/usr/bin/python # coding: latin-1 #import os, sys import Menu from numpy import * Menu.elmenu() Let's see the code Menu.py file: #!/usr/bin/python # coding: latin-1 from math import …

Software Development os-x python
Member Avatar for Gribouillis
0
221
Member Avatar for kalpesh_1

Above code works Perfectly for single textbox, Thanks for this code. but If in the form there are many textbox and i want to use same code for all, according to this code we have to create may procedure this is not goodd, so how can i use same code …

Software Development vb.net
Member Avatar for Reverend Jim
0
155
Member Avatar for mark103

Hi all, I need some help with my code, because I have a bit of trouble with using the `cur.execute` in the loops. When I try this: for pos_X, pos_Y, prog_id, prog_width in zip(positions_X, positions_Y, programs_id, program_width): cur.execute('SELECT button_ids, button_width FROM buttons where button_ids=?', [prog_id)) if int(pos_X) == 375: if …

Software Development python
Member Avatar for Gribouillis
0
337
Member Avatar for LONGWAY

I have to do this with "for" and "while" loop in c++ but no idea how print all numbers between 10000 and 100 which are devisible with 5 and 9 but not with 2 any help suggestion advice or anything is needed urgently this is too complicated for me heelp

Software Development c++
Member Avatar for Schol-R-LEA
0
141
Member Avatar for no123

i've made the game Othello in java and i need a way to display to the player, the move the computer did. i can't just return a-6 or d-5 because the size of the board can be changed. anyone has a way? thank you in advance :)

Software Development java
Member Avatar for no123
0
147
Member Avatar for Syed Ammar

I have a project to create a simple polling system but my program is not working properly. The result the program is giving is not proper and dont know where the problem lies. can u guys help me out with this. U can see the function i've created to calculate …

Software Development c++ ios
Member Avatar for rubberman
0
234
Member Avatar for DaveAmour

Do we have any TDD experts here? I have some questions but need an expert.

Software Development c#
Member Avatar for DaveAmour
0
141
Member Avatar for Brian_15

i am failing to link v.b 6.1 program and database. it keeps posting the error "syntax error in FROM clause". how do i make it work because its the forth time i have restarted the project

Software Development visual-basic
Member Avatar for jhai_salvador
0
150
Member Avatar for pc20912

I created project, If It Run from Vb.Net program its works fine, Then Create "Setup" Files and Installed it, When Run "Exe" file, there is error like this, From my Project I want to read this file, (Text File) If I Install this Out of "Program Files" folder, then its …

Software Development file-system microsoft-access vb.net
Member Avatar for mridul.ahuja
0
328
Member Avatar for Navee30

Hello, I have a GUI with a timer... but when I put too many lines of code inside the timer method, the GUI lags. private void timer_tick(object sender, EventArgs e) { ... } How could I resolve this problem? I know there are 3 types of timer... Do I use …

Software Development gui
Member Avatar for DaveAmour
0
196
Member Avatar for Jack_11

I have been programming in lisp for a while, not as a main language. But i've gotten pretty decent at it. But I was wondering about if it was a legacy language or not.

Software Development
Member Avatar for Schol-R-LEA
0
374
Member Avatar for sciwizeh

Hello All, I'm trying to write a simple html editor that will highlight tags, and it does, but if the user types the caret jumps to the very end of the document, how can I stop this from happening? here's my code: [CODE=java] import javax.swing.*; /** * Main frame for …

Software Development java java-swing
Member Avatar for reguieg
0
350
Member Avatar for SpeakerKeyboard

Can anyone give me advice on how to attack this problem? I have files in a directory that are named in a convention dayMonthrandomstuff. I need to sort these files into folders based on month then date. So example, "15e23dr" would go into the "May" folder since "e" is the …

Software Development file-system vb.net
Member Avatar for SpeakerKeyboard
0
978
Member Avatar for Darrenleesuona

I am doing a TCP server & client communication. I would like to display the received data (from client) on the textbox of the server. When i used txtStatus.AppendText, it works perfectly fine. But when i changed to txtStatus.Text, nothing was shown in the textbox. I have tried using txtStatus.Text …

Software Development
Member Avatar for cgeier
0
203
Member Avatar for toomutch

Hi, I have a menu strip with a dropdown in which the user can select (check/uncheck) from a list of 6 options. Slightly annoying feature is that after the user checks one item, the dropdown closes so they then have to click the menu to open the dropdown before they …

Software Development html-css vb.net
Member Avatar for Santanu.Das
0
696
Member Avatar for altjen

Hi. I was wondering creating a Artificial intelligent program. I know that all app wo do even simple tasks are AI. but I dont want a simle task app. I was wondering for much more. speech recognation, do simple tasks. and why not even speak to me back. (I know …

Software Development vb.net
Member Avatar for Mr.M
0
232
Member Avatar for Nuno_1

I need your help once more. My if/else statment isn't working at all. I tried to do everything and look up at the code for the errors and didn't find any errors, or maybe I couldn't see any errors on it. I used in VEntradas Form: private string entrada; public …

Software Development
Member Avatar for Nuno_1
0
211
Member Avatar for dbfud1988

Where can I find programming contest problem or solution problem

Software Development c
Member Avatar for dbfud1988
0
86
Member Avatar for intes2010

I am having problems with my program that is unable to fill-up and submit a website form. It only browses the website and stops there. I used Live Http Headers to retrieve the needed data for my program to auto fill-up the website. Here is my code: Dim postData As …

Software Development vb.net
Member Avatar for fabricedev
0
708
Member Avatar for tentrabyte

write a file: #include<iostream> using namespace std; int main() { FILE *fp; fp=fopen("e:\\myfiles\\sample.txt","w"); //Check permission if you can write a file if(!fp) { cout << "cannot open file.\n"; system("pause"); exit(1); } //prints the character ASCII from 65 to 90 (A-Z) to a file for(int i=65; i<91; i++) fputc(i,fp); fclose(fp); return …

Software Development c++ file-system
Member Avatar for mridul.ahuja
0
212
Member Avatar for jovillanuev

Hi Guys, I am using the following codes to connect to MS Access database using vb.net code. I am providing the file path name and directory. This codes work fine in my computer. How can I make this codes as dynamics connection that can run to another computer that no …

Software Development file-system microsoft-access vb.net
Member Avatar for jovillanueva
0
985
Member Avatar for divinity02

tell me if my codes is correctly done in calculating the gpa and the quality points and calling the methods for the gpa and quality points because my output is reading zero. i have also to write two arrays to store both the students grades and course. have no idea …

Software Development java
Member Avatar for stultuske
0
239
Member Avatar for SCass2010

Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the …

Software Development c++
Member Avatar for Sameer_4
0
2K
Member Avatar for _::suhanna::_

hi... im working with vb.net can u guys help me... can u guys give me some sample code how to add item and display item using combo box? please help me... thanks...

Software Development vb.net
Member Avatar for pratikb
0
20K
Member Avatar for Clearner123

I am very confused with the following thing #include <stdio.h> int main(void) { int array[3]={1,2,3}; int (*p)[3]; p = &array; /* Here p contians address of the array */ return 0; } Here p contains the adddress of the array. I am very confused why *p does not give me …

Software Development c
Member Avatar for Clearner123
0
173
Member Avatar for Baalla

hello my problem this time is i have an multidimensional vector and the example of adj vector is showen in the attached picture and i wanna know the size of each one i mean in i=0 the size is 2 i declare a new vector degree to put in it …

Software Development c++
Member Avatar for Baalla
0
205
Member Avatar for Baalla

i'm having a problem in reading a file i tried my code in code blocks/eclipse c++/netbeans c++ and even visual studio c++ 2010 each time it exits with (-1) while i'm puting the file in the right place for reading i don't know where is the mistake can you please …

Software Development c++ file-system visual-studio
Member Avatar for Baalla
0
259
Member Avatar for pdk123

Hi, I have the following map : listOfPolicyRuleInfo CPCRF::m_mlistOfCliConfiguredPolicyRules; where typedef map<string, PolicyRuleInfo> listOfPolicyRuleInfo; where PolicyRuleInfo is a struct struct PolicyRuleInfo{ BearerQoSInfo stBearerQoS; TFTInfo stTFTInfo; PolicyRuleInfo(){}; PolicyRuleInfo( BearerQoSInfo const& qos, TFTInfo const& tft) : stBearerQoS(qos), stTFTInfo(tft) { } }; listOfPolicyRuleInfo m_mlistOfCliConfiguredPolicyRules = boost::assign::map_list_of("PolicyRule_Fred", PolicyRuleInfo( BearerQoSInfo(9), TFTInfo())) ("PolicyRule_Voice_C", PolicyRuleInfo( BearerQoSInfo(5), TFTInfo())) …

Software Development c c# c++
Member Avatar for DeanMSands3
0
502
Member Avatar for venk7

In a python script I gave a call in this way: do.call([cfg.tool_cmd("cuffdiff"), "-p", str(cfg.project["analysis"]["threads"]), "-b", str(cfg.project["genome"]["fasta"]), "-u", cfg.project["experiment"]["merged"], "-L", "%s,%s" % (str(cfg.project["phenotype"][0])[2:8],str(cfg.project["phenotype"][1])[2:7]), "-o", output_folder] + [cfg.project["samples"][0]["files"]["bam"] + ' ' + cfg.project["samples"][1]["files"]["bam"]], cfg.project["analysis"]["log_file"]) This gives the command: Command '['/usr/local/bin/cuffdiff', '-p', '5', '-b', '/scratchsan/venkatesh/TuxedoProject/data/genome/ce10.fa', '-u', 'pipeline/merging/merged.gtf', '-L', 'embryo,larva', '-o', 'pipeline/degenes', 'pipeline/SAMN00990702-1/mappings/accepted_hits.bam pipeline/SAMN00990702-2/mappings/accepted_hits.bam']' …

Software Development python
Member Avatar for venk7
0
312
Member Avatar for Aeonix

I don't trust my code. I really don't. I always have a feeling that something is wrong with it. Every variable looks like an enemy. Every loop, unfinished condition. Every input, possible injection. I'm kinda paranoid so to say. There's many white hat hackers out there which could make buck …

Software Development api cybersecurity legal user-interface
Member Avatar for ryantroop
0
213
Member Avatar for Aziz_1

Well i'm trying to create a form in VB6 to control my database that was created by access, i did everything and everything went perfect,until i notice that if you enter the same "ID" i get an erreur from access that there is multiple Ids with the same number,since i …

Software Development visual-basic
Member Avatar for matoo
0
632
Member Avatar for Abu Thahir

My project have invoice no.I want to run the invoice no.in Auto Number.please help with the right code.

Software Development visual-basic
Member Avatar for matoo
0
515
Member Avatar for jephthah

too many new and intermediate users of C attempt to use the command [icode]fflush(stdin)[/icode] to "flush the input buffer". this is patently wrong. the rule is (and click if you don't believe me) : [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351"]NEVER [/URL][URL="http://answers.yahoo.com/question/index?qid=20071013052534AAuxWmW"]USE [/URL][URL="http://www.gidnetwork.com/b-57.html"]"FFLUSH()"[/URL] [URL="http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html"]ON [/URL][URL="http://www.it.usyd.edu.au/~dasymond/mirror/c-faq/stdio/gets_flush2.html"]INPUT [/URL][URL="http://www.cplusplus.com/forum/general/6554/"]STREAMS [/URL][URL="http://c-faq.com/stdio/stdinflush.html"]SUCH [/URL][URL="http://gcc.gnu.org/ml/gcc-help/2009-01/msg00287.html"]AS [/URL][URL="http://www.dreamincode.net/forums/showtopic45833.htm"]"STDIN" [/URL] here is one method of properly …

Software Development c perl
Member Avatar for David_50
0
6K

The End.