43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Psyho

Hi I am in a bit of trouble. what is nedded: Reading a text file character-by-character, using the "get(char)" function. Count the words in the file which contains "w" or "W". The possible delimiters are: '\t','n',' '(space). Do not use arrays. The codes: [COLOR="Red"]MAIN.CPP[/COLOR] [code] #include <iostream> #include "enor.h" using …

Software Development c++
Member Avatar for Labdabeta
0
196
Member Avatar for warrior4321

Hello, I am very new to C++. I am learning the language by myself. I tried to make a program where the user inputs how old they are (in terms of years) and the program will output how old the user is, in terms of months. The problem I am …

Software Development c++
Member Avatar for warrior4321
0
131
Member Avatar for vextorspace

I am trying to deploy an application that uses JOGL for 3D rendering, so it is platform dependant. If a user with 64 bit windows tries to run it with a 32 bit Java it hangs or crashes. The java installations on windows 7 seem to be varied and I …

Software Development java
Member Avatar for vextorspace
0
141
Member Avatar for dotancohen

I am replacing some very small bash scripts with Mono (C#). I have noticed some differing practices in C# tutorials online regarding convention. I'd like to know the reasoning behind them. If I should break this question up into multiple questions, let me know. 1) Use a namespace? I see …

Software Development c#
Member Avatar for dotancohen
0
146
Member Avatar for maxicube

Hey there, was wondering if anyone else has this issue. I've checked to see if it was my drivers, but no. the GL window wont move, it won't accept any inputs at all. but it shows everything else. I've tried everything in my memory bank.. and still nothing. this is …

Software Development c++
Member Avatar for maxicube
0
148
Member Avatar for vedro-compota

Hi guys!) There's a peace of code and I can't understand - what's wrong in it - [CODE]#include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> int main (void) { int status; pid_t pid; if (!fork ( )) return 1; pid = wait (&status); if (pid == -1) perror ("wait"); printf …

Software Development c
Member Avatar for vedro-compota
0
520
Member Avatar for txwooley

In the book "How to Think Like A Computer Scientist" on the website openbookproject.net the tutorial leads you to draw a house with a pre-written script. It then instructs you to: # Wrap the house code in a function named draw_house(). # Run the script now. Do you see a …

Software Development api python
Member Avatar for shasta90
0
591
Member Avatar for gianks

Hi All, i'm here due to an unexplainable winsock problem. I've wrote a simple TcpSocket class to wrap in an object oriented way, the winsock functions. For testing purposes i've written two applications too, a client and a server, wich just send/receive 10 bytes in a giant loop. Now the …

Software Development c++ client-server
Member Avatar for gianks
0
623
Member Avatar for ilovec++

Can someone please tell me about an alternative command that I can use instead of the [B]system()[/B] function? I have another question - If [B]system("pause")[/B] only pauses the program before it exits, can I use [B]getch()[/B] funtion from the [I]conio.h[/I] header file for that purpose.(I know i can use the …

Software Development c++
Member Avatar for katmai539
0
2K
Member Avatar for Dcurvez

hi guys i am wondering if anyone can direct me to a beginners tutorial on creating crystal reports that are specifically based off the sql server compact 3.5 database in visual studio 2008? most of the examples i can find are all related to Sql Server Full..or Access..ect. i have …

Software Development sql vb.net visual-studio
Member Avatar for Dcurvez
0
275
Member Avatar for ichigo_cool

Hey all, I want to add a vector to my inventory class so that it can hold whichever item data type is passed in. I'm having trouble with setting the size of the vector so that I can put items in it. Here's my code.. Whenever I run it I …

Software Development c++
Member Avatar for ichigo_cool
0
197
Member Avatar for Jollyyy100

Hi, im using dreamweaver and i have a table in which i have an image. When i add another table under the table existing it comes right at the bottom. What should i do to that table so i can move it and place it anywhere around the page. Is …

Software Development ide image vb.net
Member Avatar for anuj6928
0
115
Member Avatar for zezinho

Hey, Plz, I need some help with this code, In another workbook it worked. Specific on this one it's not working. The error is occuring on the red line, right after it's added a new serie on the graph. Sub Graph() Dim y As Byte Dim x As Byte Dim …

Software Development visual-basic
Member Avatar for zezinho
0
332
Member Avatar for Zurompeta

Hi, Basically, I'm trying to parse a string into a char for submitting into an array, this is what I have so far: [CODE]String strVariable; Char charVariable; strVariable = "Some String"; charVariable = String.ParseString(strVariable);[/CODE] The bottom lines yields an error...is this possible to do?

Software Development java
Member Avatar for siviwe
0
307
Member Avatar for Thijk

For my code I need to change a arrayList to a string array. I did it like this [CODE] ArrayList tempList = new ArrayList(); //some code to put strings into the list stringArray = (string[])tempList.ToArray(typeof(string)); [/CODE] It's the last line I don't get. In the ToArray method you set the …

Software Development
Member Avatar for antechindia
0
158
Member Avatar for DaemonToad3

Greetings to all. I'm using visual C# express, just starting to learn C#. I want to build a reminder system for a console App, how do I go about it? I want to be able to check the DateTime and for each different date read the string attached to it.

Software Development c#
Member Avatar for DaemonToad3
0
119
Member Avatar for ayoba01

hello good afternoon i have a problem regarding the number and want the number become from this: RM 2 to be like this: RM 2.00 here is the code: [CODE] Dim pay As Double Dim bayar As Double pay = "2.00" bayar = "3.00" If Date.Now.DayOfWeek.ToString = "Monday" Then TextBox3.Text …

Software Development pay-per-click vb.net
Member Avatar for Luc001
0
97
Member Avatar for david081

Hi I was hoping someone could offer me some help please I have a form with two comboboxes ,one text box and a button .I have multiple tables in ms access database with same structure , col1 and col2 . I want to insert text box value into column1 in …

Member Avatar for david081
0
163
Member Avatar for montjoile

Hi. As far as I know, [B]typedef[/B] is used to assign an alias for a structure or type of data, am I wrong? Is there something more to know about Typedef? thanks

Software Development c++ data-structure
Member Avatar for montjoile
0
146
Member Avatar for shrutinr

Hi , I m doing my project in vc++.. I need to interact my vc++ project with NI MAX software.. I m taking Frame API for ineracting to UPS . I included "nican.h" header file for that. I didnt missed any brackets... but while executing i m getting error like …

Software Development api c++ visual-studio
Member Avatar for Smalls518
0
958
Member Avatar for diafol

Hi all, am using a regex (in php), but I'm all confused. I'm trying to replace a string ('di') with 'deu'. SImple enough, but I don't want a replacement if 'di' is preceded by 'io' as in 'iodine', 'iodic', 'iodide' etc. This is what I have: [CODE]'/(?<!io)di/i'[/CODE] It works fine …

Software Development perl regex
Member Avatar for diafol
0
158
Member Avatar for HiHe

According to the Python 2.7 manual this construction of the with statement should work: [code]text = "aim low and reach it" fname = "test7.txt" with open(fname, 'w') as foutp, open(fname, 'r') as finp: # write text to file foutp.write(text) # read text from file mytext = finp.read() print("to file --> …

Software Development python
Member Avatar for vegaseat
1
170
Member Avatar for Reverend Jim

Am I missing something here? I am writing a game that requires some random number generation. I decided to use the System.Random class but I was getting strange results. The documentation says that if I have an instance of the class (let's call it r), the call r.Next(1,6) returns a …

Software Development vb.net
Member Avatar for Reverend Jim
0
142
Member Avatar for bhavna_816

When we click on the Hyperlink of subject a new HTML Page should be pop up and shows the body of the mail. I have written two perl codes first is for displaying the page with folders with subject another perl code having function to show the body.How can I …

Software Development html-css perl
Member Avatar for hsincredible
0
398
Member Avatar for Saith

I somewhat understand the concept of the parentheses overload when you need to use an object as a function. The question that I have is why does the max variable in the listed code below always input 2. [CODE] /* Purpose: This is the header file of randomInteger.h The class …

Software Development c++
Member Avatar for Saith
0
337
Member Avatar for gingernob

I have tried to google this but returned nothing useful; I have code which runs in a menu item (StartToolStripMenuItem_Click). Later in the project i want to code clicking this menu item but if i just use the StartToolStripMenuItem_Click sub it wants the 'e' argument passed to it. I simply …

Software Development vb.net visual-basic
Member Avatar for gingernob
0
179
Member Avatar for milan2011

Hey everyone, I am currently working on a project to create a List ADT that has the following public interface: + size( ) : integer o Returns the number of elements currently stored in the list. o Postcondition: Returns 0 if empty otherwise returns the number of elements. + add( …

Software Development c++ data-structure
Member Avatar for mike_2000_17
0
167
Member Avatar for cppgangster

Hi I am getting an error saying that a class doesnt exist even I did foward declaration: [CODE]class CMyApp: public CWinApp { public: BOOL InitInstance(); }; class NumericOperation; //foward declaration class CMySkaiciuokle: public CDialog { public: CMySkaiciuokle(); virtual BOOL OnInitDialog(); protected: virtual void OnCancel(); virtual void PostNcDestroy(); afx_msg void OnPaint(); …

Software Development c++
Member Avatar for cppgangster
0
114
Member Avatar for enakta13

Explanation: suppose an expression -23+5-9/(5*2) is entered then i want output as Numbers: -23 +5 +9 +5 +2 Operators: + - / * () Is it possible?

Software Development c++ mathematics
Member Avatar for enakta13
0
172
Member Avatar for sirlink99

I have two JSliders that are both going to a common stateChanged Method, but I am having trouble separating them. I assumes they were somewhat like separating something in the actionPerformed method, but it doesn't seem to work. it does however go into the method, it is just the if …

Software Development java
Member Avatar for sirlink99
0
127
Member Avatar for arjen

hello guys can you help me with my problem i create a media player and of course it has a playlist which is the listbox but my problem is that when i use this [CODE]x = system.io.path.getfilename(track)[/CODE] and when i click the song in the playlist it does not play …

Software Development vb.net
Member Avatar for arjen
0
273
Member Avatar for warlord902

I am new to MySQL and thinking to use MySQL for my new Java Project which creates a database on the local client machine and uses it to perform all data operations. But before proceeding with MySQL I'm in a bit of doubt that I have MySQL server installed so …

Software Development client-server java mysql
Member Avatar for warlord902
0
252
Member Avatar for alam14_mist

web.config [CODE] <connectionStrings> <add name="Conn" connectionString="Dsn=odbc_OnlineAcc;uid=sa;pwd=12345" providerName="System.Data.Odbc"/> </connectionStrings> [/CODE] C# [CODE] string connect =ConfigurationManager.AppSettings["Conn"]; OdbcConnection odbcConnection = new OdbcConnection(connect); odbcConnection.Open(); [/CODE] error message is "connection property is not initiated"; How can I solve it? Thanks to all................

Software Development asp asp.net
Member Avatar for alam14_mist
0
139
Member Avatar for ineedhelpasap

So, I'm trying to assign some SQL to a variable which will later be executed in the code. I also want to include a varible inside the SQL. I am only allowed to code over 80 characters and then I have been told to use a black slash, now this …

Software Development python
Member Avatar for ineedhelpasap
0
144
Member Avatar for sirlink99

I have several different classes and they have graphics in them. I told java to repaint in a class class called LongitudinalWaveGraphics, but it repaints a class called ResistorCCGraphics. Why is this? Thanks for the help. if you need any codes then I can post them.

Software Development java
Member Avatar for NormR1
0
342
Member Avatar for mekhoo

[code] def main(): decimal=int(input('pleas enter a binary sequence: ')) number=binaryConvert(decimal) print("Contert to decimal: ", number) def binaryConvert(decimal): if decimal == 0 : return '0' elif decimal==1: return '1' number='' while decimal == '1' and decimal == '0' : number=str(decimal%2)+ number number=number main() [/code] but i did work well with me …

Software Development python
Member Avatar for vegaseat
0
122
Member Avatar for Olivis

Hello! I'm declaring a line at the top of my code window. [CODE]Dim sTemp as String = textbox1.text[/CODE] I have no idea why. I tried commenting a few things related to the code but none of it makes it work. Any ideas?

Software Development vb.net
Member Avatar for Olivis
0
104
Member Avatar for Sky Diploma

Hey all, I have a program(using wxWidgets & MySql++ on MINGW) that has to have some Bluetooth Interaction with an Android App. The problem is that I am having trouble finding a framework(API) that would help me send,recieve data over Bluetooth with other applications. I searched and searched all over …

Software Development android api c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for ineedhelpasap

Anyone ever used the PIL (Python Image Library)? If you have, is there anyway to convert a single pixel at a time in a bmp file? I'm trying to invert a black and white image to white and black. So: [code=python] import PIL image = Image open(filename) pixels = list(image.getdata()) …

Software Development python
Member Avatar for vegaseat
0
161
Member Avatar for swathys

i have a problem with my insert function using web services.i can't figure out where to fix.....does anyone have idea abt it ???? this is the error is when i run the web services [CODE]Description: An unhandled exception occurred during the execution of the current web request. Please review the …

Software Development vb.net
Member Avatar for Oxiegen
0
284
Member Avatar for mekhoo

(question3.py) Write a word jumble game. In a word jumble the letters in a proper word are randomly mixed up and the user has to guess what the word is. The list of words to be jumbled can be found on D2L - jumble.txt. Here is one possible way to …

Software Development python
Member Avatar for TrustyTony
0
283
Member Avatar for virendra_sharma

Hi frnz, i am having text file , in that "ID", "firstname","lastname","email-id","phoneno" is the first row and same column name i have declared in gridview, i am also having update and delete option in gridview . now what i wanted to do is when user clicks on perticular record from …

Software Development
Member Avatar for virendra_sharma
0
1K
Member Avatar for syeda amna

hi I am a beginner. I am building java application which is like a form. First the user fill the whole form and the click OK. I want to do that as the user clicks OK all the items entered in the JTextField will save in the variables that I …

Software Development java
Member Avatar for mKorbel
0
219
Member Avatar for sajay

Hello I'm coding an algorithm based on genetic programming with tree structures in C. I implemented tree structure using recursive structure pointers **The traditional way** [CODE] struct tree { int val; tree *left; tree *right; }; tree a[10]; tree b[20]; void main() { generate (); // this generates me 10 …

Software Development c c++ programming-construct
Member Avatar for sajay
0
190
Member Avatar for ineedhelpasap

Hi, I'm trying to convert a textfile which is set out like this: 1[Tab]Hello 2[Tab]Test into a Python dictionary how would I be able to do it? Thanks

Software Development python
Member Avatar for ineedhelpasap
0
88
Member Avatar for jmurph333

I created a .txt file with 20 lines of text. I need to read a random line. This code works for the most part: [CODE] Random r = new Random(); rand = r.Next(0,20); //rand is a predefined variable StreamReader reader = new StreamReader("Answers.txt"); answer = reader.ReadLine(); string strAllFile = reader.ReadToEnd().Replace("\r\n", …

Software Development
Member Avatar for abelLazm
0
163
Member Avatar for martin111

Hi. Visual C++ reports error 2440 for the following code: struct a_t { int i;}; struct b_t:a_t { int j;}; b_t* pb = 0; a_t* const * ref_pa = &pb; // Error 2440 reported for no reason at all. I cannot see why this should give an error, the base …

Software Development c++
Member Avatar for mike_2000_17
0
302
Member Avatar for pseudorandom21

I'm trying to draw a "selection box" with a Graphics created with an HDC to the PrimaryScreen, but it doesn't appear to update properly, as in when I draw something it tends to stay there. Am I doing something wrong, or is there something I'm not aware of? [disregard] Actually …

Software Development
Member Avatar for pseudorandom21
0
111
Member Avatar for buster2209

I'm trying to run simulataneous do while loops but whichever loop is reached first is run and the other isn't. Here's my code; [CODE]namespace sync { public partial class Form1 : Form { int s = 0; public Form1() { InitializeComponent(); } private void button1_Click(object sender, System.EventArgs e) { s …

Software Development
Member Avatar for Mitja Bonca
0
138
Member Avatar for juan92

so i am trying to learn java on my own as a hobby, because well i didn't see my self doing this for a living, and i did terrible in the class, so i am going over the text book again, and starting from scratch. i am not sure if …

Software Development java
Member Avatar for juan92
0
97

The End.