15,540 Topics

Member Avatar for
Member Avatar for jan1024188

What could I include in this function: [code] MessageBox( NULL, "Dolgcas s tabo, ko si tok zabit...grem js", "Message", MB_OK | MB_ICONINFORMATION );[/code] what can I insert instead of frist NULL? [php] MessageBox( NULL (here what could I insert instead of NULL), "Dolgcas s tabo, ko si tok zabit...grem js", …

Member Avatar for Ancient Dragon
0
109
Member Avatar for sivaslieko++

when I initialize the array in this way: const int size = 10; int myArray[size]; it works well. But I have to initialize it in this way: const int size =pow(2, Depth()+1)-1; int myArray[size]; in this case it throw an error which is "expected constant expression" What should I do??? …

Member Avatar for John A
0
148
Member Avatar for apurv

[COLOR=blue]Write a program that, when run, will print out its source code. This source code, inWrite a program that, when run, will print out its source code. This source code, in turn, should compile and print out itself. turn, should compile and print out itself.[/COLOR] :p

Member Avatar for Bench
0
93
Member Avatar for xibnoe

I try read a story text file using c. the problem is i want one paragraf in one variabel. i am confuse how much i should alocate the buffer size? [code] #include <stdio.h> int main() { char buf[255]; <<HOW MUCH SHOULD WE ALOCATE TE BUFFER? FILE* fp = fopen("somefile.txt","r"); if( …

Member Avatar for WaltP
0
2K
Member Avatar for Aia

I have been trying to figure out how to deal with any situation when the result is bigger than what a integer declared can hold. For example: [code] [COLOR=Blue]/* * Old_guy.c * */[/COLOR] [COLOR=Magenta] #include <stdio.h> [/COLOR] int main() { unsigned long int hartbits; [COLOR=Blue] /* years * days * …

Member Avatar for Aia
0
186
Member Avatar for bala24

Hi , can anyone give me some good links to learn all about data structures and using them in C. I have an exam soon on the topic and although i did went through it in my college days, its all washed out now. Thanks in advance.

Member Avatar for Dave Sinkula
0
81
Member Avatar for bernard_wanjohi

write a program that awards marks depending on the instane of the guess you make. the correct guess is may be 10. if you guess correct the first time you are awarded 10 marks. you have a maximum of 10 chances to make the correct guess. marks awarded by guessing …

Member Avatar for Nick Evan
0
75
Member Avatar for TomPettyJT

I have been struggling with this program assignment for weeks now. Can someone offer some advice on how to only accept numerical input, and to reject anything else? Here is my code. [code=cpp] #include <stdio.h> #include <ctype.h> void main() { //Declaration of Variables float kPrice; //Price to Calculate int choice; …

Member Avatar for ~s.o.s~
0
112
Member Avatar for sgriffiths

hello i have the following char Ambiglist[1000]; this variable contains a company name and postcode, but there may be numerous of both ie STEPHEN COMPANY LTD;TN25 8a7 JOHN JACKSON LTD;98asHHS HUMBURG LTD;8JSHAKS i want to read in and store the company names in a variable, but i cant for the …

Member Avatar for gcs584
0
174
Member Avatar for syruspayne

My college programming teacher gave me this pseudocode assignment on his first lecture. For crying out loud i have never heard anything like that. Actually am suppose to [I]Write a pseudocode to generate the [/I] [I]1)[/I] [I]fabonacii series &[/I] [I]2)[/I] [I]prime numbers btw 1 & 50. [/I] [I] -[B]Note that …

Member Avatar for 80s
0
319
Member Avatar for Siva_sbj

I am writing a C program using Dev-CPP. It uses a 3 dimensional array to store around 350 values as shown below. [code=c] db[2][0][1]=3278; db[2][0][4]=2368; db[3][0][3]=6686; db[2][0][6]=7224; .. .. .. [/code] I get a valid output when I read the array with the following code [code=c] zone = db[2][0][1]; printf("%d",zone); …

Member Avatar for Siva_sbj
0
115
Member Avatar for sTorM

Hi all, I am just new to progamming .I am writng small twenty card game.What I want I dont repeat the cards again to next player after first user received.And in real I wana do game with more than two player.But in my code have some problem with print out …

Member Avatar for Salem
0
77
Member Avatar for gabs

[COLOR=#555555]I want to use static buttons with invisible background to the text. does anyone know how to do that? I have a picture in the background, and when I use a static button, it has a gray background, which doesn't look nice at all....:-| ![/COLOR]

Member Avatar for jwenting
0
83
Member Avatar for d_1386

Write a program that can simulate the following CPU scheduling algorithms: 1. FCFS 2. RR (new processes are added at the beginning of the ready queue, the quantum is one time unit) 3. Priority based 4. SJF non-preemptive 5. SRTF The program can be written in either C or Pascal. …

Member Avatar for Salem
0
232
Member Avatar for nuwan243

06)How can we turn on and turn off the serial ports’ DTR and other pins………? When we transfer a file from one computer to another is there need to configure these pins or they are automatically configured?

Member Avatar for JRM
0
115
Member Avatar for JRM

I'm just trying to get a handle on the when and why of overloaded operators. I the following snippet: the line: T& operator[] ... is there for use in the copy constructor? the line : const T& operator [] ... is there for the constructor definition? In english, the code …

Member Avatar for Ravalon
0
82
Member Avatar for jan1024188
Member Avatar for ~s.o.s~
0
121
Member Avatar for sTorM

I just writing the simple twenty one card game...now evth work and fine. And I put cards from 2 to A with concerning value.But when the debug step coming '0'comes to input with value '10'(K is worth 10 etc). It make me so confused. here is my code: [code]#include <iostream> …

Member Avatar for sTorM
0
103
Member Avatar for JRM

Hello again! I am using code blocks with the gcc compiler and the gdb debugger (which is a little buggy itself). If i have a program running in debug that requires an input from the keyboard to continue, how do i do that?

Member Avatar for JRM
0
106
Member Avatar for nuwan243

08)Can we read from a port while write to the same port? When we short the TX and Rx pins the value TX can be captured from the same port as a data read from port?

Member Avatar for SpS
0
169
Member Avatar for nuwan243

02)What are the purpose of drivers? I had heard this “as example: VGA drivers adjust voltages of VGA chips……” Is that correct? Is there any thing than that if u know please tell me……….. I m really interesting in driver and port programming……….If u can please give me some simple …

Member Avatar for dwks
0
100
Member Avatar for nuwan243

07)when file transfer between two computers, is there need to code two programmes for receiving data and transmitting data seperately? If not how?please give me a code example…………?How is the flowcontrol is done? Is it done by software ,hardware or both?

Member Avatar for Infarction
-2
87
Member Avatar for nuwan243

04) what is the maximum data rate that a com port supports? Why we cannot transmit data than that (maximum ) data rate?

Member Avatar for nuwan243
0
101
Member Avatar for kosmitek

I am using library of ALLEGRO: board: [URL]http://img407.imageshack.us/img407/2996/boardnj8.jpg[/URL] pawn: [URL]http://img409.imageshack.us/img409/5185/pawnyi0.jpg[/URL] Could you check code of my program - game - it is run but is everything is good ?? Player throw bone and he going about some number of fields [code] #include<iostream> #include<ctime> #include <allegro.h> using namespace std; class boardboard …

Member Avatar for dubeyprateek
0
109
Member Avatar for zare

Hello friend I have a question.I have a dll that use a class that derived from CDialog. how i can export class so that i can access of its member function in seprate application?

Member Avatar for Ancient Dragon
0
82
Member Avatar for abojan

From this search engine: [url]https://siteexplorer.search.yahoo.com/mysites[/url] when I make all subdomains search just by typing a domain url in a search box like blogspot.com -and after I verify my yahoo email password I get 28 millions webpages listed on thousands of search result pages.I want to save the all urls and …

0
85
Member Avatar for DynamitMsk

Hi everyone, I've been working on this for days, but just can't get it. I have a linked-list containing edges of a weighted directed graph, and my goal is to find a path from vertex A to vertex B going through exactly n nodes. Anyone has suggestions, or links with …

Member Avatar for DynamitMsk
0
110
Member Avatar for fatihbilmuh

I code a program which two computer communicate each other with serial port in cross platform but my program dont run cross platform but run linux to linux or windows to windows . I think my serial port settings arent the same.My settings: WINDOWS: DCB properties; GetCommState(serialPort, &properties); properties.Parity = …

Member Avatar for JRM
0
95
Member Avatar for adam37

Hi, I'm revising for an exam comming up in C Programming. Can anyone help by answering some typical questions which might come up in the examination. Any help would be appreciated. [B][U][COLOR=#000000]Basic data types[/COLOR][/U][/B] [U][COLOR=#000000] [/COLOR][/U] [LIST] [*][COLOR=#000000]What are the different types of data?[/COLOR] [*][COLOR=#000000]What are signed and non-signed data …

Member Avatar for Colin Mac
0
147
Member Avatar for kissiwat

Hi, all I'm trying to do is have my program request a name then after name is inputted, ask if there are any more names to add [Y/N]. Problem is program keeps displaying 'add name' and 'any more names to add' on the same line without giving the option to …

Member Avatar for WaltP
0
97

The End.