43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dylank

Hey guys, quick question: I have been experementing with the _popen() function to get the stdout from programs. I'm trying to wrap it in a function for quick reuse, but the prog crashes every time! Here is the function (as well as the quick test main() function): [CODE] // crt_popen.c …

Software Development c++ file-stream
Member Avatar for NicAx64
0
686
Member Avatar for swapnaoe

Hi there, [CODE] #include<stdio.h> main() { int i; i=1,2,3; printf("Value of i with assignment as i=1,2,3 is %d\n", i); i=(1,2),3; printf("Value of i with assignment as i=(1,2),3 is %d\n", i); i=1,(2,3); printf("Value of i with assignment as i=1,(2,3)is %d\n", i); i=(1,2,3); printf("Value of i with assignment as i=(1,2,3) is %d\n", …

Software Development c
Member Avatar for Ancient Dragon
0
87
Member Avatar for gotjeff5

Hey I am trying to do a tic tac to game, and im getting a few errors that I don't understand, Please help me. Here is my code: [CODE] #include<iostream> using namespace std; const int num_rows = 3; const int num_colm = 3; void xPlayer(char board[][num_colm], int); void oPlayer(char board[][num_colm], …

Software Development c++
Member Avatar for gotjeff5
0
139
Member Avatar for Klaurac

Hey Say I have a login and the main form. If the login window is closed then the other form shouldn't load. I tried using a if condition to suppress initializeComponent but it still shows the main form, but empty. How would you do that?

Software Development
Member Avatar for Momerath
0
116
Member Avatar for johnt68

Hello:) I am asking the user to input a numerical grade into one textbox and then I want to show the corrosponding grade in the textbox below when they push a 'calculate' button. I have put it the code below and I am puzzled because I have listed 6 conditionals …

Software Development
Member Avatar for johnt68
0
149
Member Avatar for Mr.BunyRabit

Hey There, its Ruan. uhh, i need help, as i did indeed hit a brick wall. at the moment, i can connect to a database through textboxes, ill put the code at the bottom. What i want to do/know, is, How or What is the code or manner to read …

Software Development dataset open-source vb.net visual-basic
Member Avatar for Mr.BunyRabit
0
119
Member Avatar for Mykal73

hopefully I can explain this well. I have an application built in vs 2008. The main form is a MDI form with a datagrid for record selection. When the user double clicks on the datagrid it opens a child form with the selected information. the problem I'm having is once …

Software Development vb.net
Member Avatar for Mykal73
0
160
Member Avatar for TheSecOrg

How can I change the color of the font or text? I've tried area.setFontColor, area.setColor, comic.setColor. area is the JTextArea. comic is a font. arial is a font. I have a [code]final Color red = new Color(); red = Color.red;[/code] but I don't know how to set the Font or …

Software Development java
Member Avatar for Ranjitdani
0
146
Member Avatar for Mona..

Hi.. I want help in C++, I want to read a file reversly and write it in a new file, how can I do that? Thanks for your time..

Software Development c++
Member Avatar for Mona..
0
132
Member Avatar for krazyito65

[code] class Node { private: int integer; Node *pointer; public: Node(int x = 0, Node *y = NULL) { integer = x; pointer = y; } int getInteger() { return integer; } Node getPointer() { return *pointer; } }; [/code] [code] private: Node *stack; Node *top; int listSize; int pushedValue; …

Software Development c++ linked-list
Member Avatar for krazyito65
0
222
Member Avatar for pakunoda

I tried [CODE]DBCC CHECKIDENT('Customer', RESEED, 0)[/CODE] but there's an error. Incorrect DBCC statement. Check the documentation for the correct DBCC syntax and options.

Software Development
Member Avatar for Momerath
0
108
Member Avatar for pakunoda

This is my code [CODE] string srch1; string srch2; if (cb1.SelectedItem.ToString() == "Book Title") { srch1 = "Book_Title"; } else if (cb1.SelectedItem.ToString() == "Call Number") { srch1 = "Call_Number"; } else { srch1 = "Accession_Number"; } if (cb2.SelectedItem.ToString() == "Ascending Order") { srch2 = "ASC"; } else { srch2 = …

Software Development dataset
Member Avatar for pakunoda
0
142
Member Avatar for pakunoda

I thought i already assigned it? [CODE] string srch1 = ""; string srch2 = ""; if (cb1.SelectedItem.ToString() == "Book Title") { srch1 = "Book_Title"; } else if (cb1.SelectedItem.ToString() == "Call Number") { srch1 = "Call_Number"; } else if (cb1.SelectedItem.ToString() == "Accession_Number") { srch1 = "Accession_Number"; } if (cb2.SelectedItem.ToString() == "Ascending …

Software Development
Member Avatar for pakunoda
0
113
Member Avatar for john22

Hi, I am very new to Perl Scripting. I used Shell scripting before, but very little knowledge of Perl Scripting. I am given at task at my work: Here is info: I need to write a program that will listen to a port which will connect from Telnet. Also, the …

Software Development perl shell-scripting socket-programming
Member Avatar for richieking
0
466
Member Avatar for jcfans

May i know how to sort a datatable?My code that show below got any problem? why the datatable cant sort by qFundCode? Firstly,my program is add sum datarow where qFundCode show below are to datatable. qFunCode WER WER WER THS THS THS AG AG AG After this,i add another datarow …

Software Development vb.net
Member Avatar for lolafuertes
0
202
Member Avatar for Xufyan

In this program i have input name and code in super class and print it, it also print in sub class [iCODE]Manager[/iCODE] I created the object for super class to input name and code, and another object to input Manager's Data, but in the output the Name is showing null …

Software Development java
Member Avatar for JamesCherrill
0
140
Member Avatar for sahil1991

hi friends, check this program beneath....... \\program to fin integere part and fractional part of given real number... #include<iostream.h> #include<conio.h> void intfrac(int,float&,float&); void main() { float number,intpart,fracpart; cout<<"enter any real number:"; cin>>number; intfrac(number,intpart,fracpart); cout<<"integer part is:"<<intpart; cout<<"\nfraction part is:"<<fracpart; getch(); } void intfrac(float n,float& intp,float& fracp) { fracp=n%1; intp=n-fracp; } …

Software Development c++
Member Avatar for sahil1991
0
142
Member Avatar for christos312

Hello, I have a question about set and get, I tried to search the forum for answers but i didnt find what i wanted. Sry if this question exists:$ 1. How do i check that the StudentId to be at least 6 characters using the set? Can i do it …

Software Development
Member Avatar for christos312
0
208
Member Avatar for Halomak

I am having problems while trying to communicate with the serial port. I have read many tutorials online and found all of them either to be not useful or just too complicated for the task which I must achieve. The task is simple. I want to: 1) Open a port …

Software Development c++
Member Avatar for Halomak
0
121
Member Avatar for Shaabangbang

Hello, i have a question about string manipulation, i am supposed to write a function that takes a character array and returns a void, so far so good, but its supposed to reverse the array as output, for example, if the input is "Hello" the output is "olleH", here is …

Software Development c
Member Avatar for rajnish.singh
0
238
Member Avatar for myk45

Hello. i wrote a program to do the following: [B]Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted. [/B] This is what i tried: [CODE] void trimString() { char s1[] = …

Software Development c
Member Avatar for myk45
0
179
Member Avatar for nagatron

Hello to all, I would like to ask if it is possible to transfer a text from a VB textbox to HTML textbox? If it is, how? Thank you in advance. Regards; nagatron

Software Development html-css visual-basic
Member Avatar for AndreRet
0
174
Member Avatar for bufospro

Hi all, I am new in c++ programming and I am trying to make some examples But unfortunately I have some problems My code is : [CODE] #include <iostream> #include <string> using namespace std; int main() { string firstname, lastname, fullname; cout << "First name: "; cin >> firstname ; …

Software Development c++
Member Avatar for stevanity
0
103
Member Avatar for hanes84

Hi anyone can help me edit VB6 code to VB.NET code cause i have been working on it and still can't get any thing on it. there are some code which cannot be recognise by .net pls help.

Software Development asp.net vb.net visual-basic
Member Avatar for bagraoprasad
0
252
Member Avatar for swathys

hi, this is the code that i use to press enter. how do i make that enter to be pressed only once not more than that. PLEASE HELP!!! [CODE] Private Sub frmPasscode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress blnPwdFromKeyboard = True If Char.IsNumber(e.KeyChar) Then Select Case Microsoft.VisualBasic.Val(e.KeyChar) …

Software Development vb.net
Member Avatar for swathys
0
141
Member Avatar for jamal.yaqub

I want to execute a command to query DHCP Server. For that purpose I have written some code in perl. Now when I execute that perl file in command prompt using c# I get following errer "The specified executable is not a valid Win32 application." I have pasted the code …

Software Development c# perl
Member Avatar for =OTS=G-Man
0
229
Member Avatar for gaurav_13191

I have written the following code for converting infix to prefix.. [CODE] //Infix to prefix conversion #include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> #define MAX 25 void initstack(struct stack *); void push(struct stack *,char); char pop(struct stack *); char *convert(struct stack *,char *); void show(struct stack); int priority(char); struct stack { char arr[MAX]; …

Software Development c
Member Avatar for Schol-R-LEA
0
239
Member Avatar for ssubnel

How do I make my array legal? It doesn't seem to like my style here. [CODE]import java.util.Scanner; public class solveQuadratic { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner (System.in); double[] eqn = new double[2]; double[] roots …

Software Development java legal
Member Avatar for ssubnel
0
125
Member Avatar for DrueY

Hellur! Can somebody explain how exactly a fast fourier transform is performed on a wave file? What's happening behind the scenes? I need to get a basic idea of how it works. Thanks in advance drue

Software Development c
Member Avatar for Adak
0
120
Member Avatar for Tahir33

Hi,here is another interesting problem that will make you think. The tower of happiness is located in the garden of effort.Happiness is waiting for you in the top chamber of the tower.The stairs that lead you to the chamber has N steps and you are allowed to climb up one …

Software Development c++
Member Avatar for Tahir33
-3
207
Member Avatar for requimrar

Hi, I'm new to this forum and would like to ask a question relating to C#. I am trying to make my custom OS, and shutting it down, but I am encountering a problem. Here is what I have so far: [CODE]using System; using Cosmos.Compiler.Builder; namespace CosmosBoot1 { class Program …

Software Development c# operating-system
Member Avatar for JoshuaBowden
0
396
Member Avatar for gerard4143

Hi, I have a question about constructors and the difference between passing by value and by reference. If you look at the two examples I attached. Example one has a constructor that passes by value and example two pass by reference. Now I want to know why example one will …

Software Development c++
Member Avatar for gerard4143
0
120
Member Avatar for Violet_82

Hi all, I am trying to make sure that users can only input integers in my program and no other types. Here is the program: [CODE]#include<iostream> using namespace std; int main() { int numbers[9]; int k; cout<<"Enter 9 numbers: "; for( k = 0; k<9; k++) { cin >> numbers[k]; …

Software Development c++
Member Avatar for Violet_82
0
147
Member Avatar for raheel_88

I'm having trouble with a for loop! I'm trying to solve a differential equation using Euler's method like so; [TEX]\displaystyle\frac{dy}{dx} = 7{y^2}cos(y^2)-3e^{xy}, \ \ \ 0 \leq x \leq 1 \ \ \ y(0) = 0[/TEX] This is solved using the algorithm [TEX]y_{n+1} = y_n + hf(x_n , y_n)[/TEX] Where …

Software Development c++ mathematics programming-construct
Member Avatar for Unimportant
0
834
Member Avatar for hbluthi

Hi guys. This is my first post here and I've read through the forum quite a bit and can't wait to get more involved. So here is my main problem: getting my code to take the text I enter into an entry box to be recognized as a string so …

Software Development gui python
Member Avatar for hbluthi
0
116
Member Avatar for BlueZephyr

I am have some really weird iostream errors. This is my first time using functions. Maybe I did something completely wrong. I just need someone to point out my error and maybe help with building a function to find the minimum value out of 4 input numbers. [code=c] #include <iostream> …

Software Development c++ ios
Member Avatar for BlueZephyr
0
120
Member Avatar for Tiny_trixer

The program I'm supposed to make a program where one thread starts three other threads. The original thread is going to wait until the three other has finished running and then the first thread can stop. The way I've built the program the three threads is started from one class, …

Software Development java
Member Avatar for Tiny_trixer
0
147
Member Avatar for meowbits

Probably easiest if I just quote, [QUOTE]5) Assignment Entity, A class that models an association between an Employee and a Project Each project usually has several employees working on it at any one time, but there may be none at times. Each employee must work on at least one project, …

Software Development java promotion
Member Avatar for goonj
0
166
Member Avatar for xcarbonx

Hi, I am trying to make a program which outputs an Invoice Number, which consists of the first 3 letters of a person's first name and the last 3 digits of their zip code. The user enter their first and last name, then enters their city, state, and zip such …

Software Development vb.net
Member Avatar for xcarbonx
0
111
Member Avatar for phfilly

hi guys I got this weird error which I cannot debug in my code. The program is to convert Roman numerals to Arabic numerals using the Interpreter design pattern. Here is a part of the program where the errors occurs RNInterpreter.C:8: error: new types may not be defined in a …

Software Development c++
Member Avatar for phfilly
0
203
Member Avatar for raider650

Everything runs fine, except the Lowest Temperature and HIghest Temperature do not output correctly. Also any suggestions on how I could implement vectors, Any help would be greatly appreciated. Thanks. [CODE] #include<iostream> using namespace std; int main() { int i(0); double Calc(double fahren); double Total(0),Celsius[5],Fahrenheit[5]; double CelciusLowTemp(0), FahrenheitLowTemp(0), CelciusHighTemp(0), FahrenheitHighTemp(0); …

Software Development c++
Member Avatar for stevanity
0
111
Member Avatar for myk45

Hello. Well, for creating linked lists, i always use 2 pointers: one for beginning and one for the end of the list. Is this OK? Or am i required to have just a single pointer pointing to the beginning of the list and then traverse everytime i need to insert? …

Software Development c data-structure linked-list
Member Avatar for Schol-R-LEA
0
119
Member Avatar for severman

Hi all I have a gantt chart which i draw with JFreeChart. I want to add to this grpah a line that shows the current date. Does any 1 knows how to do it? Here is the code that i've written: [code] /* * To change this template, choose Tools …

Software Development dataset java java-swing
Member Avatar for alexraa
0
190
Member Avatar for Kunal Aggarwal

I am Creating a MFC Application to Read a Text file into a Edit Box. I am implementing the following code [CODE] FILE *m_pFile ; CString m_strLine , m_strText; char line [1000] = "" ; m_pFile = fopen ( "C:\\SELF.txt" , "r" ) ; if ( m_pFile != NULL ) …

Software Development c++ file-system visual-studio
Member Avatar for Kunal Aggarwal
0
198
Member Avatar for _neo_

Hi all. I'm trying install python 3.1.2 on RHEL4 from source, but 'make' failed to build some necessary modules. Followings are from build log: *** WARNING: importing extension "_ctypes" failed with <class 'AttributeError'>: 'module' object has no attribute 'load_dynamic' Python build finished, but the necessary bits to build these modules …

Software Development python redhat
Member Avatar for _neo_
0
759
Member Avatar for AntonyLini

Hello All, It an urgent requirement. How can I use Google API for windows application. I am using visual studio 2010. and downloaded API and added the reference also. but on coding there is some translate client occurs and it requires some site. I just want to translate the text. …

Member Avatar for AntonyLini
0
507
Member Avatar for ktsangop

Hi everyone. I have an MFC project in Visual C++ 6 and was wondering in which way can i detect the level of audio output. I want to execute some code only when no sound is sent to the audio output. Could anyone please give me a clue of how …

Software Development audio c++
Member Avatar for ktsangop
0
164
Member Avatar for burcin erek

Pls check the code. for example during betting if you write "One" if the dice comes 1, you win. but when you write one it writes 2.28 1026 why. I dont want case sensitive and it would be perfect if the first and second character I write for input, it …

Software Development c++
Member Avatar for burcin erek
0
147
Member Avatar for dspjm

I want to read some books about data structure written in c++, can anybody recommend some good books for me?Thx.

Software Development c++ data-structure
Member Avatar for dspjm
0
121
Member Avatar for aaronmk2

I an trying to find the height in a binary search tree. I figured out how to count the leaves going directly left and directly right, but cannot figure out how to get he leaves in the middle. [CODE] int BST::height(){ int tall =0; int tall1=0; BinNodePtr ptr=myRoot; if (ptr->left …

Software Development c++
Member Avatar for mrnutty
0
247

The End.