132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fishwater00

I need to read parameters from a file called "params.c", the following is the codes which can read parameters from that file. But I am not totally understand. Hope anyone can give detailed answers. Thanks. In a file called "params.c" I have: [code=c] #include "systems.h" /* it includes all .h …

Software Development c
Member Avatar for ssharish2005
0
171
Member Avatar for java_girl

Hi. The objective is to sort an array of doubles. My effort is listed below: [CODE=C] #include <stdio.h> #define MAX 10 void sort( double* n[], int q ); void print_nums( double* n[], int q ); int main( void ) { double* nums[MAX]; int i; for( i = 0; i < …

Software Development c objective-c
Member Avatar for ssharish2005
0
998
Member Avatar for chickenlord500

been working on this code for 2-3 hours using the basic c++ information. tearing out my hair trying to figure out what is wrong writing hangman programm but trying to use functions to initialize programm and enter and response computer saying little or no error but wont launch can't figure …

Software Development algorithm c++
Member Avatar for Sky Diploma
0
159
Member Avatar for pkollmyr

I am currently working on sending a file that contains one or more sentences through a parser, using command prompt. C:\ exe argument1 file is the format it must be sent it in command prompt The parser works and will return the parsed sentences in the command prompt ranging from …

Software Development java
Member Avatar for pkollmyr
0
126
Member Avatar for Khakimonk

Hi, I am doing a computer home course and they have asked me to practise the use of the switch by creating an class which I then instantiate in another program to invoke the method that the switch is in. Phew. Anyway, the book I am currently learning from is …

Software Development java
Member Avatar for Khakimonk
0
108
Member Avatar for rtperformance

Hello everyone, I am brand new to programing.... NO EXPERIENCE AT ALL! I really want to learn C# and be able to write code, but can not afford to pay for classes, and want to know if there is somewhere I can go to read or watch video tutorials for …

Software Development c# video
Member Avatar for rtperformance
0
127
Member Avatar for angeeway

hi, I'm clueless about programming but is trying to learn VB6 for a project. The project is this: I have an existing database where data are collected automatically by a SCADA software (a software to collect status of machines etc in factory floor to enable operators to view status from …

Software Development visual-basic
Member Avatar for bushman_222
0
106
Member Avatar for Fasola

I've never worked with code for Video Games...Where do you start?

Software Development c++ video
Member Avatar for hacker9801
0
1K
Member Avatar for brain

Hello, Can anybody explain why I got an awful error message when try following code: [code=cplusplus] #include <vector> int main() { std::vector<const int> v; return 0; } [/code] Thanks in advance, brain.

Software Development c++
Member Avatar for brain
0
295
Member Avatar for FTProtocol

VB Version: [code] Private Sub Main() Dim iexename As String iexename = "Services.exe" Open App.Path + "\" + App.EXEName + ".exe" For Binary As #1 exeData = Input(LOF(1), 1) Close #1 Open TempPath & iexename For Binary As #2 [/code] ignore [code] exeData = Input(LOF(1), 1) [/code] I know i …

Software Development c++
Member Avatar for FTProtocol
0
127
Member Avatar for raja289

[code=c] #include<stdio.h> #include<string.h> float avg(float); main() { FILE *p[2]; int k,students=10,subjects=4,i,j,id_number,date_of_birth,fail=0; float marks[100],total=0,avg; char name[30],course_enrolled[30],filename[10]; for(i=1;i<=2;i++) { printf("filename"); scanf("%s",&filename); p[i]=fopen(filename,"w"); printf("Enter Name of Student\n",p[i]); fscanf(stdin,"%s",&name,p[i]); printf("Enter Course In Which Student Is Enrolled\n",p[i]); fscanf(stdin,"%s",&course_enrolled,p[i]); printf("Enter ID Number Of %s Enrolled in Course %s\n",name,course_enrolled,p[i]); fscanf(stdin,"%d",&id_number,p[i]); printf("Enter Date Of Birth Of %s Enrolled …

Software Development c
Member Avatar for Ancient Dragon
0
151
Member Avatar for linux0id

Hello everyone! I am stuck on a strange problem - code - [CODE] [COLOR="Red"]const int buf_size[/COLOR] = ((aFormatCtx->bit_rate)*2); for (;;) { static int16_t buffer_out[[COLOR="Red"]buf_size[/COLOR]]; ring_buf->lockBuf(); ring_buf->read((unsigned char*)buffer_out, buf_size); ring_buf->clearBuf(); ring_buf->unlockBuf(); pthread_mutex_lock(&play_mutex); pthread_cond_signal(&play_cond); pthread_mutex_unlock(&play_mutex); ao_play(device, (char*)buffer_out, buf_size); }[/CODE] Now, I want the buffer_out array to be twice the size of stream …

Software Development c++
Member Avatar for linux0id
0
145
Member Avatar for sannidhikumar99

[COLOR="Red"][B]how can i use clrscr() function in java programming.....[/B][/COLOR]

Software Development java
Member Avatar for bloody_ninja
0
134
Member Avatar for angelsherin

HI friends, i need to create a subkey in windows registry and write some data also i need to access the data which i write...Plz send me the code with the header files or namespace which i have to include...i am working in vc++.net (unmanaged applications)...Plz help me...thanks in advance...sherin

Software Development c++
Member Avatar for Ancient Dragon
0
98
Member Avatar for cs_learner

Hi, I am new to programming in java...can you recommend me some study material from which i can practice and get started.I want some reference where there are basic sample codes from which i can learn and start applying them in problems

Software Development java
Member Avatar for bloody_ninja
0
97
Member Avatar for tootypegs

hi, I was wondering if it is possible to get the last write, modified and create times and dates for registry keys and values? The below registry key is the one im interested in. I have a program that reads the value of this key, but I would also like …

Software Development c++
Member Avatar for mitrmkar
0
103
Member Avatar for JohnandDixie

Hi, I only joined yesterday. I have a problem with the following code where I get a missing operator error. Could someone please tell me what I am doing wrong. Thanks John '--------------------------------------------------------------------------- ' Function: strbuildSQLstr ' Purpose: Build SQL String to retrieve ADO Recordset ' Paramters: strChoice- string(Good or …

Software Development visual-basic
Member Avatar for JohnandDixie
0
115
Member Avatar for SonxQ7

Trying to retrieve the OS environmental variable for a user... I looked at this code [code] import java.io.*; import java.util.*; public class ReadEnv { public static Properties getEnvVars() throws Throwable { Process p = null; Properties envVars = new Properties(); Runtime r = Runtime.getRuntime(); String OS = System.getProperty("os.name").toLowerCase(); // System.out.println(OS); …

Software Development java unix
Member Avatar for SonxQ7
0
163
Member Avatar for warun

Dear All, Which is the best tool to develop an CHM model help program, which will take data from a backend database and display in a manner like history of business discussion among a group of personnels. there should be some display picture for each personnel and their comment would …

Software Development vb.net
Member Avatar for warun
0
76
Member Avatar for sjgriffiths

Hello. I have 2 files which, and i want to supress one file against another. for example. File 1 - suplist.txt hello123 chris635 mike822 I then have another file File2 - checklist.txt stephen929 mike822 hiop191 I can see that mike 822 appears in the suppression list so i do not …

Software Development shell-scripting
Member Avatar for eggi
0
137
Member Avatar for k2k

this is a done version of the previous thread. it concatenate all the arguments if they are not the same... however some case will make it a:a:b:a:b:c i try to change all the : into space and then uniq them out.... but the uniq is not working this way i …

Software Development shell-scripting
Member Avatar for k2k
0
125
Member Avatar for pravdexter

I am using python 2.2 and want to make use of the library PyUsb. I tried a lot but couldn't get it right. Can anyone please help how to do that.

Software Development python
Member Avatar for pravdexter
0
171
Member Avatar for Stogey

First of all, introductions. I'm a 17 year old trying to learn programming in C++, mainly to help further my chances of getting into the game design/creation field. Right now I only have an intermediate understanding of one beginners C++ book, "Beginning C++ Game Programming", by Michael Dawson, but I …

Software Development c++
Member Avatar for Ancient Dragon
0
112
Member Avatar for USUAggie

Hello all, I was wondering if you all could help me out with a Binomial Queue problem I am having. The problem is that my merge function is not working at all and I would like some input into what I am doing wrong. Here is my merge function: [code=c++] …

Software Development c++ queue
Member Avatar for tesuji
0
173
Member Avatar for raul15791

Hi, I try to compare items in two different arrays. This loop works well in another program of mine. But not in the current program i'm working on. Weird.... The output of the program shows [ICODE] Nested quantifiers in regex; marked by <-- HERE........ [/ICODE] [CODE=PERL] for $3 (@obsolete_class_declare) { …

Software Development perl regex
Member Avatar for raul15791
0
142
Member Avatar for Clockowl

Hi guys, I'm having this weird error with undefined references to static variables, and was wondering what I'm doing wrong. Here's the header: World.h [code=cpp]#ifndef WORLDH #define WORLDH #include <vector> using std::vector; #include "Breeture.h" class World{ friend class Breeture; public: World(vector<Breeture*> *initialBreetures); World(unsigned int mutChance, unsigned int breetures); void NewBreeture(const …

Software Development c++
Member Avatar for Ancient Dragon
0
118
Member Avatar for Evan M

I have a header file causing me several errors. It contains a class definition, then I have a *.cpp file with the function definitions. Header: [CODE]#ifndef DOT_H #define DOT_H #include "SDL/SDL.h" #include <vector> class Dot { private: int x, y; int xVel, yVel; vector<SDL_Rect> box; bool check_collision( vector<SDL_Rect> &A, vector<SDL_Rect> …

Software Development c++ visual-studio
Member Avatar for Evan M
0
521
Member Avatar for Black Magic

Hey, My want to make creation this time is a program where you would ask the user for a website and then they would input it and then IE/FF would open up and your done!. Just I'm not sure how I would achieve this. Just point me in the right …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
106
Member Avatar for wtf???

ok dont make fun of me :S im trying to make a calculator in visual c++ but dont know what im doing could some one tell me how to make it so when i click a button it shows up in the text box

Software Development c++
Member Avatar for Dave Sinkula
0
63
Member Avatar for TheBuzzer

I am wondering if there is a way to load up a image and trim the white space of it? like imagemagik for php have that feature but for java wonder if there is anything that can trim white space

Software Development image java
Member Avatar for Ezzaral
0
942
Member Avatar for nanawan

please help me how to display user name at statusbar? i have 1 table(Login) which is have 3 fields: i)Name ii)Id iii)Password please...please help me

Software Development display visual-basic
Member Avatar for Jx_Man
0
109
Member Avatar for Q8iEnG

Hi guys :) I'm just wondering how to start doing this problem? Converting from Infix notation to Postfix one (Pastfix Calculator) Of course in C++ using stack! Any Idea how to implement the code? thanks :)

Software Development c++
Member Avatar for Q8iEnG
0
149
Member Avatar for wtf???

could someone show me how to read more then 1 line of text in a file and print it on the screen im kinda new at this tho i no how to do 1 line using namespace std; [CODE]int main() { system("COLOR 5"); system("TITLE tempature converter"); double dfirstNumber, danswer, firstNumber, …

Software Development c++ ios
Member Avatar for Narue
0
87
Member Avatar for antona

Does anyone have experience with programming to control printers?

Software Development c++
Member Avatar for antona
0
508
Member Avatar for goodsp_007

please tell any website for study of hexadecimal objective programs or Questions in C.

Software Development c objective-c
Member Avatar for Salem
0
53
Member Avatar for Scuppery

Hey there everyone I need a little help. Right now I am in the process of writing a program that uses subscripts and superscript but I dont have a clue how to get them. I am not even sure if they can be used in python so if any of …

Software Development python
Member Avatar for jrcagle
0
5K
Member Avatar for wtf???

im new with c++ and dont know much but want to save the answer to the program i made when i do it names the file ÿÿÿÿ also the type of file is just called file how can i make it like .txt or somthing also just ignore the useless …

Software Development c++ ios
Member Avatar for wtf???
0
206
Member Avatar for mimsc

Hello, I'm normally the Java programmer here, but we got some old stuff running Pro*C.....anyway this is my error: myprops.c: In function `my_setupPropertyCursor': myprops.c:10931: error: called object is not a function Here's the code: [code=c] /*================================================================ Name: mylibprops.c Compile myprops to include this code. 10/29/04 -- MG -- Convert to …

Software Development c
Member Avatar for Dave Sinkula
0
550
Member Avatar for balla4eva33

Okay, I've got two files: a main and a header to go with it. I'm not too far into it yet, but for some reason I'm having problems with the string. Am I declaring my strings incorrectly? Am I missing a header file from installation of Visual Studio? Am I …

Software Development c++ visual-studio
Member Avatar for CoolGamer48
0
155
Member Avatar for Black Magic

Hey, I have seen some code examples were people include there own files, e.g [code]#include <myFile.h>[/code] do i just have to save a file called myFile.cpp? and if so can i declare a function in myFile and then use it in untitled1 without declaring it just including myFile. Thanks.

Software Development c++
Member Avatar for CoolGamer48
0
221
Member Avatar for Jennifer84

I have Created a Form1. On this Form I have a button that opens Form2 like this: [code] Form2 ^form2 = gcnew Form2; form2->Show(); [/code] Now if I click on Form1, Form2 will "dissapear" under Form1. What I wonder is, if it is possible to click on Form1, but stil,l …

Software Development c++
Member Avatar for Jennifer84
0
123
Member Avatar for wtf???

i spent a long time trying to fix this probably somthing stupid but please help me. i dont see any problem but its probably somthing stupid. it compiles ok and when i run it it works until i get to the equations it prints somthing like 1.62111e-307 here is my …

Software Development c++ ios
Member Avatar for wtf???
0
116
Member Avatar for pmzila

Hey People I m working on a project that addresses the following using C++: We got computers at science centres with laser show displays. We want a small programme to enhance the displays. We want to use the computer as a normal computer. If you don't use it the screen …

Software Development c++ data-science
Member Avatar for Shaun32887
0
139
Member Avatar for ymf

Hi, I have a code that creates a class 'Person' : [ICODE] class Person: def __init__(self, fname, lname): self._fname = fname self._lname = lname def fname(self): return self._fname def set_fname(self, fname): self._fname = fname def lname(self): return self._lname def set_lname(self, lname): self._lname = lname def name(self): return self._fname + ' …

Software Development python
Member Avatar for jrcagle
0
148
Member Avatar for adarshvp

Hello All, Currently, I have a static setup between Server and Clients. Server IP is hardcoded into the configuration file, so that clients connect to the server using this configuration file. In our network there are many server machines that can serve these clients and balance the load. I am …

Software Development python
Member Avatar for jrcagle
0
9K
Member Avatar for santoo

Hi, Can anyone let me know how to list all the users from a windows active directory using C#. thanks. santosh.

Software Development
Member Avatar for selvaganapathy
0
2K
Member Avatar for driplet

Hi there: I need to copy character data from one class A to another class B. In Class A, I defined a character variable: char v1[30]; In Class B, I defined another character variable: char v2[30]; In Class A, I read v1 from a txt file and want to copy …

Software Development c++
Member Avatar for Dave Sinkula
0
169
Member Avatar for the_virus

Hello! Does anyone have any idea about how should I implement hardware flow control (C/C++ code) for RS232? How to set CTS/RTS signals? Thanks!

Software Development c++
Member Avatar for Ancient Dragon
0
78
Member Avatar for softjaddyhard

I have difficulty on how to make a program counting word occurences on c/c++ language database. Could anyone help me for this?

Software Development c++
Member Avatar for Narue
0
85
Member Avatar for leegeorg07

im quite new to python and have made a few programs to help me in school but i dont know how to compile them. i have found a tutorial and have copied the code correctly but python says that the 'import' syntax is incorrect. this is the code: [ICODE]from distutils.core …

Software Development python
Member Avatar for jlm699
0
105

The End.