19,876 Topics

Member Avatar for
Member Avatar for genie0582

Hi, I use Runge Kutta to solve for ODEs. (Thanks for someone who provided this runge kutta code. I'm sorry if I didn't put a credit here) I was wondering why when I set TIME 75, the result of y[3] becomes negative at the time around 70+. it is supposed …

Member Avatar for tesuji
0
117
Member Avatar for neotaunter

Please help... This is driving me nuts. I have been searching for an answer to this for a few days now. In c... How do you stop a line feed or new line after pressing enter for an input. I want the printed information to appear on the same line …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for idb_study

[CODE]#include <stdio.h> #include <stdlib.h> /*(*void)displayValue(char* );*/ void main() { char* userInput = (char*)malloc(sizeof(userInput); printf("\n\nEnter : "); scanf("%s", &userInput); printf("\n\nEntered : %s\n\n",userInput); } [/CODE] I have got core dump by running this code. Please suggest.

Member Avatar for mitrmkar
0
305
Member Avatar for s2xcracker

Hey everyone,I am trying to solve a problem but it's pretty difficult for me, and I thought that someone will can help me: So I am given this problem: By starting at the top of the triangle below and moving to adjacent numbers on the row below, Find the maximum …

Member Avatar for s2xcracker
0
72
Member Avatar for jeevsmyd

hi,I am an amateur c programmer.I am using turbo c++ v3.1 compiler. here is a simple program to input and display name and address.. There are two problems in my program 1) telephone number is too long for int and it displays some weird value.. so i tried long int, …

Member Avatar for Adak
0
113
Member Avatar for shirmaster

I made this code and i dont know what to do with my warning in calling function calc() inside the function getOption(). What should i do? need some little help here. [CODE]#include<stdio.h> void getOption(); void getData(int *num1, int *num2); void calc(int option, int num1, int num2); float add(int num1, int …

Member Avatar for shirmaster
0
104
Member Avatar for shankarz
Member Avatar for jrayborn66

How would I write this? I am new to C++ and am trying to write this but don't really have any idea how? I tried to outline it first so I could do it step by step, but now that I have outlined it I am stuck one how to …

Member Avatar for LevyDee
0
208
Member Avatar for farah up
Member Avatar for Ancient Dragon
0
45
Member Avatar for mukund_yk

Hello everyone. i tried to write a program to eliminate nos from a file: this is what i mean: 001 #include <QApplication> 002 #include <QPushButton> 003 int main(int argc, char *argv[]) 004 { 005 QApplication app(argc, argv); 006 QPushButton *button = new QPushButton("Quit"); 007 QObject::connect(button, SIGNAL(clicked()), 008 &app, SLOT(quit())); 009 …

Member Avatar for Ancient Dragon
0
98
Member Avatar for jeevsmyd

Here is a program to find the sum of n numbers entered .. I have done this programme in c++ but now I was asked to do it using c.. there is some error with the program.The basic array input ,display thing itself is not working.. Kindly help me .. …

Member Avatar for jeevsmyd
0
117
Member Avatar for heinzw

Hi, I am using a FILE to write a protocol of the program execution which I will be using in case of crashes. Whenever I write a message to the file I open it [CODE] if ((mfdprot = fopen(protfile, "a")) == NULL) { [/CODE] after that I close it: [CODE] …

Member Avatar for heinzw
0
290
Member Avatar for jmangu

Hello, I need help concerning <curses.h> and <conio.h> libraries issues. There's a conflit between both libraries when I compile my software in Dev-C++ (XP OS). 1. In <curses.h> there's this code line: . . . extern int COLORS,COLOR_PAIRS; . . . 2. In <conio.h> there's this code line: . . …

Member Avatar for Ancient Dragon
0
444
Member Avatar for Member 785459
Member Avatar for zoozoo1

Hi all, I wanna write a c program in linux which login to another linux machine using ssh. The program should enter the username/password, run a command in that machine and save the o/p in a file. Can anybody help me??? Thanks in advance.

Member Avatar for kings_mitra
0
108
Member Avatar for Member 785534

great !!!hi to all viewers ..., is there something who have a c program about games,,...

Member Avatar for kings_mitra
-2
113
Member Avatar for Member 785678

[I]hi . im a 2nd year iT student , please help me think any programs that contains math analysis and by using for loop . any suggestions? :)) glad to have . thanks ! :))[/I]

Member Avatar for kings_mitra
-1
60
Member Avatar for midget66

I' working on an array where the user inputs characters(up to 80). I then need to output the characters, one per line, until the string is null. My problem is in the while loop i think, im just not sure what to do from here. Any ideas? [CODE]#include <stdio.h> void …

Member Avatar for kings_mitra
0
141
Member Avatar for Member 785459

how save text file which is made by c and how add a new information in after saving it?

Member Avatar for lionaneesh
-1
80
Member Avatar for sisterjo

I am getting the following errors on my code below. Any help would be appreciated. 69 expected primary-expression before '>>' token 71 `next' undeclared (first use this function) 86`Total' undeclared (first use this function) 86 expected `;' before "Gross" #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cstdlib> using …

Member Avatar for mrnutty
0
188
Member Avatar for midget66

I am working on a program in c and I am trying to declare a ten element array, using a for loop to insert the elements. I am also using a second for loop to acquire the sum of all the elements in the array. I'm new to programming so …

Member Avatar for midget66
0
94
Member Avatar for Member 784361

hello guys i need your help , i am new in c language and i need to know if i can use c langiage to open images , i asked my programming teacher and he said i can not but i think it is possible so please if it is …

Member Avatar for Ancient Dragon
0
152
Member Avatar for Kanoisa

Hi guys, As some of you may know im working on learning more c++ and trying to become a good programmer, iv got things like classes, function pointers and template classes under the belt as far as i can see (although to be honest i have never found a place …

Member Avatar for Ketsuekiame
0
199
Member Avatar for dima shawahneh

Hello every one I am new to Bluetooth programming .. so I need your help plz what I want to do is to make an application programmed in C#.net this application will search for devices with bluetooth on them , then start a secure channel with a mobile via bluetooth. …

Member Avatar for Ketsuekiame
0
172
Member Avatar for xaop

Please let me know where i have done the mistake [CODE]#include <stdio.h> #include <conio.h> #include <math.h> void main() { int f=0,s=1,n; n=f+s; if(n<=18); { printf("%d" ,n); f=s; s=n; n=f+s; } getch(); }[/CODE]

Member Avatar for xaop
0
195
Member Avatar for mamashi

I have a problem at hand. It is to generate a C code - i need to do the following, i will capture an image, then save that image on a folder let say c:\\ program files\myfolder\image.bmp and then i use the OCR to read the number, let say 0102. …

Member Avatar for mamashi
0
158
Member Avatar for ishwarverma

Hi guys, i am having some problm while building my C code through VC++6.0. The following error i am getting while building: --------------------Configuration: ReportVARS - Win32 Debug-------------------- Linking... ReportVARS.obj : error LNK2001: unresolved external symbol _BTRV@24 PHCLUST.OBJ : error LNK2001: unresolved external symbol _BTRV@24 BTRVUTIL.OBJ : error LNK2001: unresolved external …

Member Avatar for Member 784668
0
354
Member Avatar for c++learner

Hello, I am trying to create a function that accepts an integer and a double and squares both values. I have to pass the values by reference. I am new to c++ and don't understand this and I do not understand functions very much when trying to pass more than …

Member Avatar for NP-complete
0
1K
Member Avatar for shankarz
Member Avatar for Banfa
0
197
Member Avatar for Francis Waldron

I'm have trouble getting my area/volume progam going on a circle,cylinder,sphere,cone One with out a menu and onwe with a menu. Thanks for all your programmers help. This is a great site for help.

Member Avatar for Ancient Dragon
0
108
Member Avatar for ravimodi

Hi, I want to develop routine based on MAC-ID of LAN card to prevent my s/w from piracy. The program should be able to create encryted text file containing some encryption alogorithm based on MAC-ID of LAN Card. It should be nearly impossible to recover the MAC-ID from the encrypted …

Member Avatar for Banfa
0
79
Member Avatar for rapids79

I'm working on a code that enables the user to input a string , compare it to some text in a file then send the approriate data ( from another file) using serial communication or TCP/IP. I ahve implemented the serial communication part but the TCP/IP..I've looked around but have …

Member Avatar for technology
0
157
Member Avatar for farah up

How to solve 'missing ws2_32.lib' problem ?? Can anyone suggest a good site from where this can be downloaded..?

Member Avatar for kings_mitra
0
66
Member Avatar for gopi17

I'm having some trouble with the output here...can anyone help me...learning how to use to C language, more of a C++ programmer...i tried using all sort of declaration but the output is still the same... [CODE] int i; float x = FLT_MAX - (2.0); double y = DBL_MIN - (2.0); …

Member Avatar for kings_mitra
0
107
Member Avatar for baillot

Hello I am sorry if this is a dumb question but is it conceivable to determine the memory address of a function that is inside a running application from another application? Say I have an application A that has a function helloWorld(). A is being launched. I would like to …

Member Avatar for gerard4143
0
174
Member Avatar for vivek01anand

there are N elements in an array. u have one number x. u have to check whether there exists two elements in that array whose sum is x. But order should be less than N^2( N square). i dont know the method how to achieve order less than n^2.

Member Avatar for invisal
0
114
Member Avatar for laky

the NTVDM CPU has encountered an illegal instruction. CS:035eIP:0401 OP:ff ff choose 'close' to terminate the application

Member Avatar for Ancient Dragon
0
48
Member Avatar for sofeware-acm

Question : I use my code test sample which can got the right answer. But when I upload ACM Judge. It appear wrong answer. Could everybody tell me what wrong with me ? Thank you. <pre> Sample Input The following text<C><B>is centred and in boldface</B></C># <B>This <\g>is <B>boldface</B> in <<*> …

0
35
Member Avatar for goodwillwins

Well i have the following program where i need to swap students(dynamically created structure array) . Just cant seem to get the swap right. Main problem's here : [code=c] struct student *stemp; stemp=(struct student *)malloc(sizeof(student)); *stemp.name=s[i].name; s[i].name=s[j].name; s[j].name=stemp->name; [/code] Other info : [code=c] where s[i] belongs to a dynamically created …

Member Avatar for goodwillwins
0
111
Member Avatar for Silvershaft

Hey! I am making a program that keeps track of users so the program has to update the number in the database how do I actually do it? I know how to select things and such, but have no idea how the update works.. I didn't really find anything for …

Member Avatar for Silvershaft
0
4K
Member Avatar for Shikhin

First of all Hello to all of you. I am new to programming(about a week since I started learning it), a little young(12 years old) and totally interedtes in its thrill. Second of all I would like to clear the [I]superstition[/I] that students join this forum as they want you …

Member Avatar for Shikhin
0
178
Member Avatar for sankaran1984

I want to write a method to remove consecutive items with duplicate data values from a singly linked list. The method should return the number of items removed. The method should clean up memory as required, and should assume that memory was allocated using new. For example, passing in the …

Member Avatar for WolfPack
0
176
Member Avatar for sankaran1984

I want to write a method to determine if a given string is a palindrome. E.g. "Madam I'm Adam", or "A man, a plan, a canal, Panama". The prototype for the function is: [CODE]bool is_palindrome(char const * str)[/CODE] I have a simple logic to check for equality by moving forward …

Member Avatar for jonsca
0
103
Member Avatar for iqra123

Hiie i have to convert unsigned char to char array. i m using ultoa() function that converts unsigned long char to a string. but it is giving me an error of Type Mismatch. actualy i have tsend my data to server side where it is recieving in char array. so …

Member Avatar for kings_mitra
0
176
Member Avatar for rayborn66

Hi, I am having a problem with using file input/output streams in this program. [CODE] #include <fstream> using std::ifstream; using std::ofstream; using std::endl; int main() { ifstream inStream; ofstream outStream; inStream.open("infile.txt"); outStream.open("outfile.txt"); int first, second, third; inStream >> first >> second >> third; outStream << "The sum of the first3\n" …

Member Avatar for rayborn66
0
289
Member Avatar for hondros

I have the following function (from windows.h) which I am trying to use the Python C API to allow python to call it. This is the function: [code syntax=C] BOOL ReadConsoleOutputCharacter( HANDLE hConsoleOutput, (Type Handle to Change (use STD_OUTPUT)) LPTSTR lpCharacter, (char pointer to store Characters read) DWORD nLength, (length …

Member Avatar for hondros
0
350
Member Avatar for xxpokerxx

[CODE=c]#include <stdlib.h> #include <stdio.h> #include <string.h> /* a structure that defines a string buffer */ typedef struct strbuf { char *contents; /* pointer to dynamically allocated buffer contents */ size_t length; /* number of characters in buffer (excluding '\0') */ } StringBuffer; /* function prototypes */ StringBuffer *strbuf_new(const char *cstr); …

Member Avatar for xxpokerxx
0
215
Member Avatar for gameon

I want to make a c++ program which scan all drives and generate list of all files and folder. how can i do it in c++? Plz help me......

Member Avatar for gameon
0
1K
Member Avatar for kp_it_simpl

I am a new student using MS Visual C# 2008 Express Edition. I am trying to run an example from my textbook. The VS new console application creates the following code and I add the new code as per my comment below: I get the following error twice: Error 1 …

Member Avatar for Lusiphur
0
169
Member Avatar for commelion

Can somebody take a look at these and tell me why the boat class will not inherit from the transport class, i keep getting these errors, i have the two classes in the same source file folder, ive tried putting them both together with no luck either.. help !! error …

Member Avatar for Fbody
0
338

The End.