19,876 Topics

Member Avatar for
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
106
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
113
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
85
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
88
Member Avatar for dr.it

i new with programming or maybe i'm confused!! with many definations of microsoft : 1- explain these things plz and diffrences between them: C++/VC++/C#/COM/MFC/WIN32API 2- i want to learn a cross-platform language which is more low level what is the best choice 3- which one is more low level VC# …

Member Avatar for TylerSBreton
1
239
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
117
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
100
Member Avatar for jan1024188

ok here`s the code [code]#include <iostream.h> void main() { int x = 0; cout << "Loliko si pa star ? >>>" ; cin >> x; if ((x >= 0 ) && ( x <= 4 )) { cout << "\n dojencek" <<endl; else //error here { if ( (x >= …

Member Avatar for jan1024188
0
115
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
151
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
101
Member Avatar for jobra

Please can anyone help me to get the time zone between GMT & New York including the daylight saving. I am able to get the timezone between GMT & localtime including the daylight saving. My program goes like this [code=c] time_t t = time(0); struct tm* data; data = localtime(&t); …

Member Avatar for John A
0
233
Member Avatar for DynamitMsk

Hello, I'm trying to read in a txt file that looks like: AAAA BBBB 1234 CCCC DDDD 4321 .... and here's what I've done so far: [code] char a[4]; char b[4]; int c; FILE *input= fopen("input.txt", "r+"); if (input==NULL) perror ("Error opening file"); else{ while(feof(input)== 0){ fscanf(input,"%4s",a); fscanf(input,"%4s",b); fscanf(input,"%d",&c); } …

Member Avatar for Salem
0
2K
Member Avatar for himanjim

Hey friends , Is there any way to change textcolor in C? I am not able to find any method...

Member Avatar for himanjim
0
164
Member Avatar for p_p_g_1_6

[B]Here it goes: 1. Write a C program to calculate the value of x for the given formula of quadratic equation. 2. Write a C program to calculate the petroleum consumption. It should assign the distance travelled in km. and the amount of petroleum used in litres and compute the …

Member Avatar for DavidRyan
0
83
Member Avatar for manu124

Hi, Would really appreciate if someone can help me. Need to generate 10 random numbers such that their sum is less than 1. thanks so much in advance manu

Member Avatar for paradox814
0
161
Member Avatar for HelpAUniStudent

This is a skeleton of my full assignment attached. Can anyone please help me out and provide me with guidelines or comments to the assignment???

Member Avatar for jwenting
0
96
Member Avatar for Kompot

:!: [U][COLOR=#000000]Minimum-weight Path.[/COLOR][/U] [COLOR=#000000] [/COLOR] [COLOR=#000000]An agent is required to move from the top row to the bottom row of a m × n grid, (i.e. from start position (0,j) 0<=j<n to end position (m - 1,j) 0<=j<n). On each move, the agent may only take one step rightward, diagonally …

Member Avatar for Lerner
0
96
Member Avatar for jvignacio

Hi guys, just wondering, how would i go about joining numbers together to form one integer.. example.. number 70 54 34 would end up being 705434.. thank u for your ideas...

Member Avatar for dubeyprateek
0
123
Member Avatar for benfly08

Hi, I'm having a print problem for my C# windows form program. In my small program, I need to pull out data from my database and format them as invoice format. These parts were done quit well. When it went to printing, something weird happen. I used PrintDocument class to …

0
71
Member Avatar for himanjim

My header file time.h is being corrupted.. I can't find it on the internet... Can anyone please give me the link to the file or just copy and paste it to the reply of my paste...

Member Avatar for Narue
0
63
Member Avatar for Monsignor

OK, this is the problem: my original file has only one line and that line contains a sentence. I'm supposed to create a new file that will put each word from the sentence in its own line. For example, original file: [code=c]The quick fox jumped over the lazy dog[/code] output …

Member Avatar for Ancient Dragon
0
166
Member Avatar for Rooro

Hello everyone ... : ) i'm studying data structure and i'm trying to collect all the point in this course . what I have now is a question about sorting . I want to learn how can I do it and code it in the right way .. [quote] The …

Member Avatar for Rooro
0
109
Member Avatar for vicky_dev

I want to read a file which contains a list of integers. The first 4 bytes( or whatever sizeof(int) is ) indicates how many numbers the file has. Suppose I check the file size before reading so that I know I won't encounter EOF. Do I still need to check …

Member Avatar for Ancient Dragon
0
115
Member Avatar for mistermister

im trying to read a file has many lines but after reading it every time i tried to printf it, but it always print just the last line???/ f = fopen("text.txt","r"[IMG]http://www.free2code.net/plugins/forums/images/smilies/icon_wink.gif[/IMG]; if(!f) return 1; while(fgets(s,1000,f) != NULL) sprintf(value,s); fclose(f); printf("%s",value); [URL="http://www.free2code.net/plugins/forums/reply.php?f=3&p=48130&q=48130"] [/URL]

Member Avatar for mistermister
0
116
Member Avatar for lastcraft

Hi... I'm trying to get a few people to try out a new C unit tester called Cgreen. It's published on Sourceforge at [URL]http://sourceforge.net/projects/cgreen/[/URL] and at [URL]http://www.lastcraft.com/cgreen.php[/URL]. basically I'm after feedback before pushing for a stable release. It's currently a late alpha. Besides the usual X-unit features (setup/teardown, composite suites), …

0
67
Member Avatar for omlaka

Hi All,As usual. I am a silent member until I have passed my exam. Recently, I passed my exam with 95% for 1Z0-042. Meaning 95% of the questions are from certmagic.com guide. There a few new questions, which I am not familiar with. These questions would be remaining 5% of …

Member Avatar for Dani
0
109
Member Avatar for centrinostyle

hello my name is asif i want simple c program of transpose of matrix plz help me

Member Avatar for DavidB
0
95
Member Avatar for JoBe

Hi guys, This exercise goes as follows: - Write a function that counts the number of occurences of a pair of letters in a string and another that does the same in a zero-terminated array of char(a C-style string). For example, the pair "ab" appears twice in "xabaacbaxabb". Now, I …

Member Avatar for Dave Sinkula
0
374
Member Avatar for tech291083

hi, i m running fedora core 5 32 bit as the os and want to learn a bit of c++ programming. did the search on the net and came across a post telling the fact that something called eclipse can be used to write c++ code and compile it perfectly. …

Member Avatar for ~s.o.s~
0
127
Member Avatar for Colin Mac

Here's an example of two programs that do the same thing, I have been taught how to do them like the first way. Now, I'm reading an ebook and it explains to do them like the second way. Which way do you think is more proper? thanks [code]#include <stdio.h> int …

Member Avatar for Colin Mac
0
102
Member Avatar for newbie2c++

Hi Everyone! I am supposed to be writting a program that will run from the web. I created a short program to see if I could use linux by uploading the file to my public_html and then using putty to change it to a .cgi file but nothing is working. …

Member Avatar for Ancient Dragon
0
83
Member Avatar for Marks256

Ok, i am just starting out in C. This isn't my first programming language, though(i don't mean to brag, but i am a BASIC master), so i know quite a bit about computer architecture, and all that good stuff. The project i am designing is a robot with stereo vision. …

Member Avatar for Salem
0
164
Member Avatar for hugoboss2

[COLOR=#000000]in language C [/COLOR] [COLOR=#000000]Code that examine if the tree is full[/COLOR] [COLOR=#000000]Tree is full if each node have 2 child[/COLOR] [COLOR=#000000]i dont know how to write the code ?[/COLOR] [COLOR=#000000]somebody can help me ?[/COLOR]

Member Avatar for WaltP
0
82
Member Avatar for skeet123

Having trouble where to go next on this program: 1. If n is even, then you may give back exactly n/2 bears. 2. If n is divisible by 3 or 4, then you may multiply the last two digits of n and give back this many bears. By the way, …

Member Avatar for Narue
0
345
Member Avatar for lavicool

Hi All, Thanks for all your help and advise. Here is a code for printing sales record. I don't understand what is the error in this code. When I try to complie and run, it says it cannot open the "sper.dat" file. Please help. Here is the 2 input files …

Member Avatar for ~s.o.s~
0
124
Member Avatar for chuck577

Quick question. I have an updatestring to send into an SQL command. It actually needs to update three columns in one row. I know how to write the string to update one column but is there a way to write this string to update 3 colums in that one row? …

Member Avatar for Narue
0
86
Member Avatar for drake_bower
Member Avatar for Infarction
0
54
Member Avatar for caltiger

hi, I wanted to know if I can pass functions with varying no. of arguments to a fn pointer. say for example, i define a fn pointer as void (*fptr)(const void* , const void*); If there are another pair of fucntions defined as : void f1(int*, int* ); void f2(int*, …

Member Avatar for caltiger
0
146
Member Avatar for shadowmoon

how can i get a program to include other cpp files?? like if i was on a tem for school and we spilt the work into smaall parts ca we just use ome kind of include function to put all the files together withotu copy-pasting:????

Member Avatar for jim mcnamara
0
154
Member Avatar for iubike

Well the program takes a string of text and then turns it into title case (first letter or every word is capitalized). So I got it working as you see, the problem is I need to write a seperate function that can simply accept the string to be converted as …

Member Avatar for Narue
0
145
Member Avatar for whitemoss

Hi guys, need ur help regarding the above matter. I've write a code for if statement but it didnt work as expected when I run the program. Below is my code: [code] // Get ChannelID strcpy(src, row[11]); if (strcmp (src, "1") == 0) { if (sprintf(query2, "select * from Register …

Member Avatar for whitemoss
0
119
Member Avatar for Sanchez10

Anyone have any ideas on how to simulate an I/O device such as an MP3 player serially?

0
72
Member Avatar for clevername

I need to use RNG to create a sentence, I know how to use a RNG to create numbers from 0-x but im not sure on how to use it to create sentences. Is there a way to assign random numbers to characters and store them into an array to …

Member Avatar for jaguar founder
0
72
Member Avatar for FireSBurnsmuP

Just what I need. In the midst of the two busiest weeks of the semester, and I get a friggin run-time error. I am running 64-bit Debian etch, and running the program from a terminal. It gets to some perfectly good code (I've said that before, and I was wrong), …

Member Avatar for FireSBurnsmuP
0
111
Member Avatar for whitemoss

Hi All, Need our expertise out there regarding the above mention error and below are the codes: [code] /* send SQL query */ bzero(query1, sizeof(query1)); sprintf(query1, "select a.CreateDate, a.MobileNumber, b.BillName, b.CorrName, b.ICNew, b.ICOld, b.Passport," "b.Addr, b.Addr2, b.Addr3, b.Addr4, b.Postcode, b.CountryCode from Register as a, Profile as b" " where a.MasterNumber …

Member Avatar for whitemoss
0
469
Member Avatar for bala24

Hi all, I got this problem after reviewing aznballerlee's problem posted some time back and the replies to it. I need to design the same function but with only one parameter i.e remove_S(char *p) I cannot take any local variables within the function. main looks like this ... [code] int …

Member Avatar for JRM
0
153
Member Avatar for JoBe

Hello ladies and gents, I'm trying to copy two words, for instance test and word into an array of characters and have this: [CODE]#include <iostream> int main() { char word[10]= ""; char *wordArr[10]; for(size_t i = 0; i < 2; i++) { std::cin >> word; *(wordArr + i) = word; …

Member Avatar for WaltP
0
349
Member Avatar for kenjutsuka

Hi all, was curious about linking in VS .NET 2005 (Non Express Edition). I'm getting a huge flagdown of LNK2001 errors(about 2100 errors, distributed throughout each object file to be linked). I'm sure my libraries are correctly setup and are working. The one's the code I'm compiling is dependant on …

Member Avatar for Ancient Dragon
0
105
Member Avatar for johnD29

Maybe this is a bit off topic, but it's used in programming (the class is introduction to programming, using only algorithms and no computer programs). This is the problem: "An airline has three airplanes, each with a capacity of 100 passengers. The company has three routes, each flies once a …

Member Avatar for Infarction
0
100
Member Avatar for sam_daniel

The End.