132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 … | |
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 | |
I've never worked with code for Video Games...Where do you start? | |
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++ | |
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++ | |
[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 | |
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++ | |
[COLOR="Red"][B]how can i use clrscr() function in java programming.....[/B][/COLOR] Software Development java | |
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++ | |
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 | |
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++ | |
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 | |
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); … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++] … | |
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) { … | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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, … | |
Does anyone have experience with programming to control printers? Software Development c++ | |
please tell any website for study of hexadecimal objective programs or Questions in C. Software Development c objective-c | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
Hi, Can anyone let me know how to list all the users from a windows active directory using C#. thanks. santosh. Software Development | |
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++ | |
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++ | |
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++ | |
![]() | 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 |
The End.