132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Shwetha Dali
Member Avatar for guidely

Hi, How to read line by line of text file and store to array C data.txt example [CODE] 1234 25500 24000 1 1345 23523 21209 5 9865 12389 600 98 .... [/CODE] and sorted in order by last column I try everything and it not working Thank

Software Development c
Member Avatar for D33wakar
0
15K
Member Avatar for Ich bin würdig

Can someone please check my syntax? Thanks. The program runs but the output has some kind of error. Thanks. [CODE] #include<stdio.h> #include<conio.h> #include<string.h> void Pig_Latin_Converter() { char str[50]; char nv[50]="yay"; char c[50]="ay"; char key[]="aeiou"; char keys[]="bcdfghjklmnpqrstvwxyz"; char test[20]; char *p=str; scanf("%s",str); { p=strpbrk(str,key); if(str!=p) { strcat(str,nv); printf("Output: %s", str); } …

Software Development c
Member Avatar for YAMNA MIDHAT
0
190
Member Avatar for Lomholdt

Hey, so i want to make a funktion that prints all the words from a list (words.txt) that doesn't contain the letter e. I tried something like this: [CODE]def has_no_e2(word): fin = open('words.txt') for line in fin: word = line.strip() if letter in word: letter == ('e') print(word)[/CODE] But i …

Software Development python
Member Avatar for JoshuaBurleson
0
154
Member Avatar for CKShia

I am writing a simple program to get user input from Scanner to perform some tasks, I want to get user input only from the number 1 to 3, any negative number or string will display an error message and prompt user to re-enter. Here's comes the problem... When I …

Software Development java
Member Avatar for JamesCherrill
0
271
Member Avatar for dwbrian

I'm completely new to Python and unsure how to run this script. The script is to take in an image folder and for each image, if the size isn't a power of 2, it will add "paddings" to it to make sure it's a power of 2. (These pictures are …

Software Development android python
Member Avatar for JoshuaBurleson
0
182
Member Avatar for Labdabeta

I am extremely confused about libraries and have been having trouble understanding them with google. Basically I want to create a library so that I can use a bunch of functions from another file without all of the libraries' contents being seen. EG: library code: [CODE]class test { private: int …

Software Development c++ ide
Member Avatar for Labdabeta
0
217
Member Avatar for James19142

i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able …

Software Development c++ file-system
Member Avatar for James19142
0
881
Member Avatar for thenewbiecoder

[url]https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B3GcG6SeWKK_YzE1NDNmY2MtNTY0Ny00NTVhLTg1M2EtNDc5YzRmOGEzMjA0&hl=en_US[/url] I am completely stuck on this assignment I'm not sure what I should be getting. Can anybody take a look at my code and please help me. I need to complete this assignment asap. thanks Direction: Design, implement, and test a class that represents a phone number. The number …

Software Development c++
Member Avatar for vijayan121
0
220
Member Avatar for HarshaS2

import math def board_gen(width, height): height = int(height) width = int(width) xo = ['O','X','O','X','O','X','O','X','O'] strt_ltr = 1 board = [] for row in range(1, (height+1)): strt_ltr = int(math.sqrt((strt_ltr-1)**2)) line = xo[strt_ltr:(width+strt_ltr)] board.append(line) return board config = ['O','X','O','X','O','X','O','X','O'] if (height%2==True): print config[0:width] else: print config[1:width] I do not know where to …

Software Development python
Member Avatar for JoshuaBurleson
0
403
Member Avatar for twicepipes

I know how to use the compare functions to check if a string is exactly the same as another but I wasn't sure if there is an easy way to go about checking if a string contains any sequence of A through F. Can I add up the memory values …

Software Development c++
Member Avatar for vijayan121
0
265
Member Avatar for techlawsam

Ok so this time before I wrote this program I did more reading and practicing and reading examples of code with method statements and class examples. When I finished this program Im still getting a lot of errors...any help? [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Problem10Pg179 { …

Software Development assembly
Member Avatar for techlawsam
0
268
Member Avatar for Justinedeleon

Can someone help me with TASM? i need a simple shape like sun or anything that is not very basic but hard to do. please i need help. this is one of my gf's finals project requirement :(( please i really need help in this. (i dont know much about …

Software Development assembly
Member Avatar for Justinedeleon
0
565
Member Avatar for altXerror

ok. so i'm having trouble with the Windows API. i'm just learing how to use it, so i don't know much about it. anyways, i just wanted to create a window and have it displayed then catch the exit message and close, but VC Compiler is throwing errors. 1>c:\users\furrix\documents\visual studio …

Member Avatar for altXerror
0
342
Member Avatar for literal
Member Avatar for snuffleupagus
0
281
Member Avatar for lxXTaCoXxl

I've decide to create a dock like application kind of like Macintosh's dock. I need some assistance finding information on how to get application icons, and how to allow users to drag and drop application shortcuts into the dock, as well as how to stop the applications from opening a …

Software Development
Member Avatar for Teme64
0
152
Member Avatar for shmamy

Okay so someone may have already posted something like this but my assignment is due in like 4 hours and don't have time. So here is the problem and my code. My problem that I am having is that it only works for single words. Not whole sentences. I need …

Software Development c c# c++ visual-studio
Member Avatar for shmamy
0
740
Member Avatar for fredw300

Hello, I am creating two forms Form1 and Form2 in C#. On Form1 there's a button to create more than one instance of Form2 based on a number provided by user. Here's the code to create Form2 instances: [CODE] for(int i=0; i < numOfCopies ; i++) { new Form2.show(); } …

Software Development
Member Avatar for fredw300
0
127
Member Avatar for Labdabeta

Is there a way to make a class visible only from within another class. i.e: [CODE]class myclass { private: class anotherclass { //stuff that only can be used from within a myclass function void dosomething(); float dosomethingelse(); }*anotherclasses; int numanotherclasses; public: int createanotherclass();//creates anotherclass object, puts it in the array …

Software Development c++ oop
Member Avatar for mike_2000_17
0
234
Member Avatar for MonicaClare

hi.. uuhhmm.. i have a problem in how to put an String Buffer method here in my code.. uuhhmm.. i just want to know the easiest way of putting a String buffer .. please help . . thanks.. [code="java"]import java.awt.Graphics; import java.util.Random; import javax.swing.*; public class Change { public static …

Software Development java java-swing
Member Avatar for jade_1453
0
150
Member Avatar for mrbungle

I have a listview that pulls data from a MySQL and I can now [URL="http://www.daniweb.com/software-development/vbnet/threads/386126"]finally sort queries by date range [/URL] (thanks Unhnd Exception!!). Also in that query, I have it sorted by ID number. This brings me to another question. The ReportViewer pulls up a really nice report for …

Software Development listview vb.net
Member Avatar for mrbungle
0
473
Member Avatar for rosey_fci

write a prolog program for reading a list of N student names and their real scores ,compute the average of their scores and query about any student belongs in list or not can any body helllllllllllllllllllllp

Software Development
Member Avatar for sergent
0
175
Member Avatar for adot76

I am having a problem and hopefully you guys can help me out.. I need to count the frequency of a character in a string(option 5 in the program. I can do this part however i cannot get my program to count anything that is in uppercase. It only does …

Software Development c
Member Avatar for Narue
0
212
Member Avatar for acepeda

Hey Guys, Im wondering how can I create a grid with a cell with multiple data.I want to Display Product Name,ProductID and Price in one cell.How can this be done in VB2005.Thanx! Examples: [URL="http://dribbble.com/shots/40786-Autocomplete"]http://dribbble.com/shots/40786-Autocomplete[/URL] [URL="http://dribbble.com/shots/199277-Search-Suggestions"]http://dribbble.com/shots/199277-Search-Suggestions[/URL]

Software Development vb.net
Member Avatar for acepeda
0
124
Member Avatar for monkeybut

I have a quick question, I have to read in data from a file that has names and grades in it, I must take the names and store them in a string array and the grades and store them in a 2-d array. Any pointers on how to determine what …

Software Development c++
Member Avatar for monkeybut
0
101
Member Avatar for leo1937ca

I am using vb 2008 express and having a problem adding a Maximize, Minimize or Cancel button to a MDI Form. The default icon does not display along with Minimize, Maximize or Cancel button although the Properties are set true. There is only a "none" option in the Cancel properties …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
173
Member Avatar for Blink383

I had to reconstruct my program from the last time I had posted for help. My instructor enlightened me that I needed to follow her example to the tea, even though I had the same output that was required, I did not have all concepts required meet. So, after spending …

Software Development apple java
Member Avatar for Taywin
0
231
Member Avatar for julylee06

Ok, so I need some guidance. Am trying to implement a linked list in java. I can't get it. I have been on here - dreaminncode, wikipedia, and some other colleges sites - I still don't/can't get it. I did look at the previous threads on this but they didn't …

Software Development java linked-list
Member Avatar for julylee06
0
227
Member Avatar for Braindead90

I am working on creating a linked list to connect the previous value number (or string) to another value I asked this question before I am just guessing I did it completely wrong since no one responded. So what would be the best way to start the function. I need …

Software Development c++ linked-list visual-studio
Member Avatar for sfuo
0
259
Member Avatar for Jfunch

I have a program that uses two threads, one that adds some numbers and the other takes the sum and finds the average. I used a blocking queue to pass the sum to the other string. I have no problem queue.put() to put the total in the queue and then …

Software Development java queue
Member Avatar for JamesCherrill
0
221
Member Avatar for bokz06

i have created an app which reads lines from a .txt file, splits the line at a " " and then stores them in a ArrayList which then gets put in a JTable. i created 27 columns and named them... now i want to add an extra column on the …

Software Development java java-swing
Member Avatar for Ezzaral
0
692
Member Avatar for Leaningnew

why we need to avoid using scanf to read a character???? can anyone explain it clearly??

Software Development c
Member Avatar for cse.avinash
0
108
Member Avatar for PapaGeek

I have a program that relies on file timestamps that works fine in XP but fails in Windows 7. I ran the following test in Windows 7: Create go.bat to look at all 3 file timestamps: [CODE]@echo off dir /tc test* | find "test" dir /tw test* | find "test" …

Software Development c++ file-system
Member Avatar for PapaGeek
0
160
Member Avatar for daianahoney

Hello. I am wondering how to split a string lets say char *a="raining apples training away" using a delimiter like "g a" and the result will be: rainin pples trainin way I tried using strstr but I got stuck. Any hints will be greatly appreciated. Thank you in advance!

Software Development c
Member Avatar for daianahoney
0
3K
Member Avatar for JOSheaIV

Okay so alittle while ago I decided I wanted to write a program that would read in data from a website (the HTML data) and then use it from there (long story short I was to read in a list of urls, then access each of those and gather data …

Software Development html-css http-protocol
Member Avatar for JOSheaIV
0
229
Member Avatar for HungMob

Hello again! I was given an assignment the other day in C++ and I was suppose to use the counter and add a sentinel so the program knew when to stop. Instructors directions: "The file for this assignment reads a sequence of positive integers from a file (2 3 5 …

Software Development c++ mathematics
Member Avatar for HungMob
0
191
Member Avatar for sydsine

plz help to prepare for adobe. from where should i prepare. if anyone have appeared fo adobe ...

Software Development adobe c
Member Avatar for Narue
0
305
Member Avatar for sirlink99

I am making hearts, and I cannot seem to add all the cards to the deck. here is my code [CODE] import java.lang.reflect.Array; import java.util.Vector; public class Hearts { String cards[][] = {{"Spade ", "Heart ", "Club ", "Diamond "}, {"A","2","3","4","5","6","7","8","9","10","J","Q","K"}}; Vector <String> deck = new Vector<String> (); String player1[] …

Software Development java
Member Avatar for sirlink99
0
123
Member Avatar for Süspeñce

[CODE]//I make program of infix to post fix xpression plz tell me waht wrong with my code //some it true result for arthematic opertaors b,w two oprend but with more then it does //not provide valid output plxxxxxxxxxxxx help me #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<string.h> int presidence( ); void infixToPostfix(char *); …

Software Development c++
Member Avatar for Süspeñce
0
386
Member Avatar for Rox Vi

Hi, I am using ASP.NET to develop a system. Would you mind to share with me whether the code can be encrypted or convert to DLL to prevent coding exposure to other?

Software Development asp asp.net vb.net
Member Avatar for NetJunkie
0
310
Member Avatar for vasim jada

Below is my code for login page I would like to show login user detail on home. For login my code works properly but does not show currently login user show following error "NO data exists for column/row". Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Login.Click …

Software Development vb.net
Member Avatar for vasim jada
0
181
Member Avatar for glut

Hi, you guys. I'm making a obfuscator, and I need to know how to get all variables, classes, functions, etc, from a .NET program. I know how to get assembly info, which is quite easy. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using …

Software Development assembly c c# c++
Member Avatar for gusano79
0
105
Member Avatar for Forte1292

Okay so we are doing a BankAccount program in my CS class. One method is supposed to return the information like this - Account Name: <name here> Account Number: <number here> Account Balance: <balance here> The instructions say to return it on multiple lines using the \n command. How do …

Software Development java
Member Avatar for Forte1292
0
128
Member Avatar for _dragonwolf_

Ok, I have been trying to work this thing for a week. It is a program that is supposed to read from 2 files (.dat) and write to a third file (.dat) then update one of the first files. i.e. read oldmast.dat read trans.dat compare data write data and changes …

Software Development c++ ios
Member Avatar for vijayan121
0
227
Member Avatar for zack_falcon

See, I have a board game with a 2D array acting as the board. There are number in the 2D array, and should a number be placed (by the player) in a spot in the 2D array where a number already resides, the following can happen: > If the residing …

Software Development
Member Avatar for Ketsuekiame
0
163
Member Avatar for hao001

[CODE]#include<iostream> #include<cmath> using namespace std; void getChoice(int& choice); void getInput1(double& foot, double& inche); void getInput2(double& meter, double& cm); void convert1(double foot, double inche, double& meter, double& cm); void convert2(double& foot, double& inche, double meter, double cm); void showResult1(double foot, double inche, double meter, double cm); void showResult2(double foot, double inche, …

Software Development c++ cms
Member Avatar for hao001
0
2K
Member Avatar for blackknight2114

hi am a newbie to the vb.net thing. am using ms access for my database. i have a customer table in my database where sutomer details like first name, last name, address, etc are stored. i've created a form in vb.net and i have a text box, a datagrid and …

Software Development microsoft-access open-source vb.net
Member Avatar for adam_k
0
395
Member Avatar for SyncMaster170

Does anyone know how to create a custom report for the data that is in a datagridview? My app is nearly complete but would like to spice it up a bit and be able to create a report button,that, once clicked, creates a simple report. I only need one specific …

Software Development
Member Avatar for Mitja Bonca
0
104
Member Avatar for mohamed moamen

[CODE] float i = 55 ; float y = 23 ; float u = i / y ; System.out.println(u); [/CODE] i want to print u Round to five decimal places how i can do this approximation ?

Software Development java mathematics
Member Avatar for mohamed moamen
0
123
Member Avatar for Isaac1024

C++Syntax[CODE]#include "stdafx.h" #include<iostream> #include<cstdlib> #include<ctime> using namespace std; int main() { srand(time(0)); int arr[10]={0}; for(int i=0;i<10;i++) { arr[i]=rand()%50+1;} for(int i=0;i<10;i++){ cout<<arr[i]<<endl; } return 0; }[/CODE] I want to use the * to display the output, what I should improve?

Software Development c++
Member Avatar for Fbody
0
88

The End.