19,876 Topics

Member Avatar for
Member Avatar for jan1024188

Hello again, I was working on Linux platform for a lot of time now and now I am moving to windows (because of job). Today I was accepted to wow project, and I have to start with developing apps for windows. I have a doubt. I dont know what to …

Member Avatar for jan1024188
0
93
Member Avatar for IwalkAlone

Q.Write a function to accept upto 25 numbers and display highest and lowest number along with all the numbers. Solution I tried [code=c] #include<stdio.h> #include<conio.h> void main() { int array[25],low,high; int i; clrscr(); do { printf("Enter a number(0 to terminate)\n"); scanf("%d",&array[i]); }while(array[i]!=0); i=0; low=high=array[0]; while(array[i]!=0) { if (low>array[i]) low=array[i]; else …

Member Avatar for IwalkAlone
0
201
Member Avatar for daljeet_smt
Member Avatar for flageolet

I want to create several files at once containing the same data. Is this possible? I tried using a variable in the file pointer and file name: [CODE] int tel; for (tel = 0; tel < 200; tel++) { FILE *bestand_patienten[tel] = fopen("patienten/patientent[tel].txt", "w"); fprintf (bestand_patienten[tel], "hallo"); } [/CODE] Didn't …

Member Avatar for flageolet
0
68
Member Avatar for n.aggel

hi, i want to develop a console interface for a program that i made{a university project}...... so i was wondering if anyone {with expertise in this matter} can supply me with links or examples..... For example , i am searching for ascii art...and also for ways to create menus with …

Member Avatar for nottoshabi
0
113
Member Avatar for Jishnu

Hello eveyone, I am working on a program that uses the graphics.h library functions and the 0x33 mouse interrupt. When I click at a particular place on the screen, the graphics nearby the mouse are saved and displayed on the new screen (that appears due to the mouse click) when …

Member Avatar for ~s.o.s~
0
153
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
114
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
109
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
60
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
84
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
353
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
98
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
112
Member Avatar for Tauren

Uhh well, I was just wondering if C++ and visual C++ are any diffrent

Member Avatar for John A
0
126
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
77
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
158
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
230
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
167
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
56
Member Avatar for disc

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

Member Avatar for disc
0
195
Member Avatar for Tales
Member Avatar for Ancient Dragon
0
97
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
386
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
120
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
206
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
100
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
264
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
69
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
61
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
67
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
178
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
120
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
116
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
140
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
227
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
94
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
119
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
275
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
90
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
407
Member Avatar for tan_vir
Member Avatar for ~s.o.s~
0
54
Member Avatar for tan_vir
Member Avatar for Luckychap
0
105
Member Avatar for lotsofsloths

OK, I have ben programming for about 6 monthes but never done real graphics!! I was wondering, how i could implement graphics into a program?? If this helps any i am using Visual C++ 2005 Express Edition...

Member Avatar for iamthwee
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
119
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
117
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
132
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
118
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
231
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
135
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
123
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
83

The End.