18,490 Topics

Member Avatar for
Member Avatar for RisTar

Hi , im trying to create a program that could delete number from an array and resize the array to the correct size . Array[0] = 32 Array[1] = 30 Array[2] = 40 Array[3] = 31 Array[4] = 61 Deleting the number 40 New array Array[0] = 32 Array[1] = …

Member Avatar for RisTar
0
145
Member Avatar for gamodg

input: source:1.1.2.3:?: destination:1.2.3.4 data:shfg hshsg h am trying to extract `1.1.2.3` from `source:1.1.2.3` please suggest :!: while(!mod.eof()) { mod.getline(buf,100); if(strstr(buf,"Source")) { w=strchr(buf,':'); strcpy(str,*w); } }

Member Avatar for Ancient Dragon
0
121
Member Avatar for Brent.tc

How can i find the curret position of the mouse and then use them in mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)

Member Avatar for Ancient Dragon
0
67
Member Avatar for vicky_dev

Check this code: [code=c] float velocity, acc, time; . . velocity = velocity - acc * time if( velocity == 0.0 ) { // Do something } else { // Do something else } [/code] This code isn't always workng. When the velocity is supposed to be exact 0, it …

Member Avatar for vicky_dev
0
108
Member Avatar for bobcats

Hi guys I am really having a hard time with C programming. Our lectures are very fast and not beneficial to those with non-C backgrounds. We were required to write a code for counting frequency of words from stdin and then listing them in descending order with those with equal …

Member Avatar for bobcats
0
406
Member Avatar for endsamsara

Hi, I have some rectangles in the result of a program And i want to make a function called menu (called pressing F1) that takes me to another screen and gives me some options, but when i press F1 the screen is all gray!!! and the rectangles are not there …

Member Avatar for WaltP
0
109
Member Avatar for noora000

Hello, Can you please help me I want to know the functions used to save a data in access database, I have the code to save in a file but is it possible to save in a database in C language. Reegards, Noora

Member Avatar for John A
0
130
Member Avatar for mrjoli021

I have to write a program sort of like a hangman game. It will ask the user for a word and them prompts the user for a letter. I will tell the user how many time the letter is in the word and continue to ask for another letter. any …

Member Avatar for mrjoli021
0
92
Member Avatar for Aia

I am going through the exercises of this old C programming book, that doesn't have the answer in the back. Which is good. However I am not understanding a particular question. It says: Write a program that estimates the value of the mathematical constant e by using the formula: e …

Member Avatar for ~s.o.s~
0
212
Member Avatar for jobellelaiza

[COLOR=DarkSlateGray]guys, can you help me..it's an urgent i just have to answer this question for my take home final exam... [/COLOR] [COLOR=DarkSlateGray]our professor just taught a little of it and i've got a hard time studying it but still it's not worth it this is the last chance i have... …

Member Avatar for ~s.o.s~
-1
167
Member Avatar for levk

Hi, I have an abstract class like this: [code]class Descriptor { public: virtual ULONG dispatch(char*, size_t, Stream) = 0; };[/code] and I have a subclass like this: [code]class ConsoleShell : public Descriptor { public: ULONG dispatch(char*, size_t, Stream*); }; #include "services/console/Console.cpp"[/code] and in Console.cpp: [code]ULONG ConsoleShell::dispatch(char *cmd, size_t len, Stream …

Member Avatar for ~s.o.s~
0
247
Member Avatar for Bobbiegirl

I have a project that is due and I have written the code and for a part of the code output to the file I cannot get the right format. I cannot figure out what the formatting should be can someone please help me. [code]#include <stdio.h> #include <stdlib.h> #include <string.h> …

Member Avatar for Aia
0
191
Member Avatar for shrikant telkar
Member Avatar for Ancient Dragon
-1
96
Member Avatar for roby4eldiablo

Hi all, i need help about signal. I want know what signal are generated from system when a mathematical operation give error (overflow, underflow, division for 0) and how catch the signal. Maybe i can use a trap? How can i implement the trap? Maybe i can use matherr function?

Member Avatar for ~s.o.s~
0
62
Member Avatar for disc

Goodmorning, Can anyone tell me how to convert a TCHAR to a std::string ?? Thanks....

Member Avatar for disc
0
210
Member Avatar for Tales
Member Avatar for Ancient Dragon
0
103
Member Avatar for pupsia

Hello!! I realy need some help!! :sad: :cry: With Fibonacci numbers :( I found some programes, and they are a lot of help :cheesy: but... I need some more help :rolleyes: [code] #include <iostream> #include <conio.h> using namespace std; int main () { int a[128]; int fN; int i; a[0]=1; …

Member Avatar for John A
0
413
Member Avatar for saintlysav

I recently made a python module which calls functions from a c program. I used SWIG to generate the wrapper code from an interface file, and compiled the module into a dll which i can import in python and call functions from. While some of the functions are working fine, …

0
92
Member Avatar for flageolet

I would like my program to execute some code using random variables. Whether this happens is dependant of three conditions: 1) a variable (first) should be bigger than an other (second) 2) a variable (third) should be equal to an other (fourth) 3) it should check these thing maximum 5 …

Member Avatar for WaltP
0
147
Member Avatar for hbk619

i'm wrting a basic C program which the user "talks" to the program, you know the sort. well my main menu looks like this: [code] int main() { char name[50]; char mood; printf("hey there, .. whats your name?\n"); gets(name); printf("%s is it? Well how are you today?\n a.Good\n b.Ok\n c.Bad\n", …

Member Avatar for hbk619
0
215
Member Avatar for roby4eldiablo

Hi all, i'm making a client-server concurrent in C. the client send me 2 binary number and an operator. I'll must send him the result and if there's overflow, underflow. i have made all the initial part of setting the server, children pool and so on. i receive 2 binary …

Member Avatar for jwenting
0
115
Member Avatar for ankit_the_hawk

I am having a problem in sorting by name. for eg: if given two names Sameer and Sean, I want to print Sameer and not Sean. It needs to check character by character. I have to extend this to a greater no. of names but I need to get the …

Member Avatar for lakshmi.1987
0
295
Member Avatar for rajeshreddy

program to create two threads ,by using them sort two files using merge sort by using one more thread merge them

Member Avatar for Salem
0
80
Member Avatar for Tales

I need to create a Windows program which is meant for music students. The main frame needs to contain in the upper part a "word style" page with a partiture displayed, and the toolbar with the controls has to be in the lower part of the window. The idea is …

0
69
Member Avatar for Brent.tc

I'm making a program that reads commands from a file and then executes them accordingly... Example: start hide -hides the start button... mbox Hello and welcome The Title -creates a message box would this be called an interpreter, or something else...

Member Avatar for Rashakil Fol
0
86
Member Avatar for Raven11

Hi, I have been looking all over google for a freaking tutorial on code caving. The problem however, 1,000 results shown are crap (I'm sure everyone's shared the same experience). Anyone know of a published tutorial on the concept? Thanks.

Member Avatar for jbennet
0
206
Member Avatar for shivam_ng

I have the following file as the input APPLE 0 118 1 110 1 125 1 135 2 110 3 107 3 115 3 126 ORANGE 0 112 1 119 2 109 2 119 3 112 4 109 4 128 MANGO 0 136 1 143 2 143 3 143 4 …

Member Avatar for Ancient Dragon
0
136
Member Avatar for arfmal

Can somebody show me how to search and count for the string. If i have a set of data,i.e. "0012", "0034", "0055"' "0099" "0013", "0032", "0012","0099" let's say i chose the 1st string(at the 1st line),"0012", and based on this string, i would like to [B][U]search and count[/U][/B] that string …

Member Avatar for WaltP
0
128
Member Avatar for musicmancanora4

Hi just wondering how i can convert ascii to binary then into hex then print it to the screen. The user will input 5 chars then do the conversion and print

Member Avatar for Lerner
0
149
Member Avatar for jamshid

I have a problem ; that i can't compile and Run my C files in Ubuntu , so how can i do this??

Member Avatar for jamshid
0
271
Member Avatar for erode

hi, i am very new to pointer concepts.how to declare the pointer and how to use it

Member Avatar for erode
0
105
Member Avatar for kkx123

can anyone help me with this? i can get it to run but when i run it, the matrix doesnt execute correctly...i am writing it in "C"..this should be a 4x4 magic square...thanks~ [code=c] #include <stdio.h> #define R 4 #define C 4 void Same(int []); int main() { int array[R][C], …

Member Avatar for kkx123
-1
128
Member Avatar for boujibabe

I need a function that will populate a multidimensional array with a fixed amount of elements. So that only some of the locations contain a distinguishing number for identification.

Member Avatar for Lazaro Claiborn
0
330
Member Avatar for Sacky

I was having some compile errors with my code, along the lines of this: [CODE]Error 1 error LNK2001: unresolved external symbol "class _CD3D * __cdecl GetD3DClass(void)" (?GetD3DClass@@YAPAV_CD3D@@XZ) DLLBot.obj[/CODE] After some reasearch i found that the problem was directly due to this line: [CODE]class _CD3D { public: void __stdcall CustomSetTransform(D3DTRANSFORMSTATETYPE State, …

Member Avatar for Sacky
0
99
Member Avatar for fulyaoner

Hi to everyone... I am to write a code about finding the least coins number to make up an amount that is given by user. It is a trivial question for a programmer and I did code well. In Canada, there are 2 more currencies, Loonie = 1$ and Twonie …

Member Avatar for fulyaoner
0
439
Member Avatar for tan_vir
Member Avatar for ~s.o.s~
0
71
Member Avatar for tech291083

Hi, I am a great fan of this site and really happy to tell you all that tutorials given here are of great help to me and much better than any book that I have ever come across, since they are based on real world experinces rather than copies from …

Member Avatar for ~s.o.s~
0
147
Member Avatar for tan_vir
Member Avatar for Luckychap
0
128
Member Avatar for tigerkartik

hi im a student and hav t mak aproject on c or c++... so if anyone cud help me out

Member Avatar for apurv
0
107
Member Avatar for mailsteam

Is there any way to get the cuurent time using C in LINUX. I tried with clock_get time(). But i'm getting the same time for a particular amout of function call. The code i've used is given below. Is there any way to get the time in an higher resolution. …

Member Avatar for Lazaro Claiborn
0
137
Member Avatar for spacecowboy123

Hi All, The program I am writing is throwing up an error when it runs on this line [code] runArray[counter]++; [/code] i am trying to increment the number at location counter in the array. Is this the correct way to do this? Thanks

Member Avatar for ~s.o.s~
0
132
Member Avatar for mailsteam

1.I'm Using Posix Timers. I Would Like To Kno Whether It Is Possible To Fire Two Timers With Same Signum. The Signal Event Function Is Different. 2. Is there any way to send an argument to the signal event function other than signum. the functions i used for timer are …

Member Avatar for mailsteam
0
152
Member Avatar for stringgader

can somebody help us in our problem in C language,, im a frend of stringgader,, this is my problem: write an interactive C program that will convert a date,entered in the form mm-dd-yy(example: 4-12-99)into an integer that indicates the numbers of days beyond January 1, 1980. If the year not …

Member Avatar for Salem
0
131
Member Avatar for SHWOO

I am writing a program which has these require ments 1.Program must be command-line based and interactive, allowing the user to control its operation by entering commands. 2. ability to accept new data 3. ability to search for specific previously entered data 4. ability to save data to a file …

Member Avatar for John A
0
253
Member Avatar for Savage221

Hello. I'm stuck on a part in my program. Some numbers are adding up properly, others aren't. I assume the problem is that I'm using integers instead of doubles, however, how would you format the following in C? How to describe it, it's like a chain. I have to take …

Member Avatar for Lazaro Claiborn
0
158
Member Avatar for alaaharb

You are to write a numerical base converter. This application will present the user with a menu to select the originating base and a subsequent menu to select the destination base. You will loop through these menus until the user wishes to quit. You are required to break the code …

Member Avatar for thekashyap
0
144
Member Avatar for jnabeel

i am trying to write a program to take a string and arrange in alphabetic order but iam totally fail to do it please help me

Member Avatar for Salem
0
101
Member Avatar for nelly12

this is the code( not a complete code) [code=c] int master(int argc, char *argv[]) { int slaves_count = 0; m_host_t *slaves = NULL; m_task_t *todo = NULL; int number_of_tasks = 0; double task_comp_size = 0; double task_comm_size = 0; int i; xbt_assert1(sscanf(argv[1],"%d", &number_of_tasks), "Invalid argument %s\n",argv[1]); xbt_assert1(sscanf(argv[2],"%lg", &task_comp_size), "Invalid argument …

Member Avatar for thekashyap
0
130
Member Avatar for Debadipta

1.'Java is platform-independent'- - What's that supposed to mean though the Java run-time package differs from platform to platform;almost similar to creating different compiler for every different machine for the purpose of executing a C/C++ program? 2.'a machine is big-endian'-what does the statement signify? 3.As the Unix OS is entirely …

Member Avatar for Debadipta
0
138
Member Avatar for Marauder_Pilot

Alright, here's what I'm working on now. It's supposed to go through an inputted list of words, pick out actual words and create a numbered list of them, then, where it finds a number in the list, go back in the list from that number, replace it with a word, …

Member Avatar for underjack
0
170

The End.