15,548 Topics

Member Avatar for
Member Avatar for drake_bower

can any1 please help me about dijkstra's shortest path algorithm.

Member Avatar for Infarction
0
50
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
143
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
150
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
140
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
115
Member Avatar for Sanchez10

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

0
69
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
69
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
106
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
463
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
148
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
342
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
101
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
94
Member Avatar for sam_daniel
Member Avatar for Ancient Dragon
0
45
Member Avatar for Brent.tc

I need to know where to get a copy of bios.h(and any files that are used with it.) and the opengl header files.(gl\glaux.h...)

Member Avatar for Narue
0
67
Member Avatar for ramgates

hi guys we say that c language is a powerfull language but the use of '^' to represent 2*2*2 as 2^3 is restricted in c language where as the use of '^' is allowed in other simple languages.

Member Avatar for Nick Evan
0
112
Member Avatar for turnbui

Hello all, is there an accepted way of entering the debugger as soon as a CGI prog gets activated. Apart from putting in a large delay and then attahing to the process I would like the preferred way - if there is one? Thanks

0
65
Member Avatar for sgriffiths

Hello all I want to be able to search a string and remove non a-z chars and also search for certain words and then remove them ie. char string[25]="STEPHEN JOHNSON - LTD" So i use isalpha to get rid of the non a-z string i am left with STEPHENJOHNSONLTD LTD …

Member Avatar for mkadwa
0
108
Member Avatar for iubike

Ok, so the program takes two inputs name, and grade. I will spare you the details. It works, however I have two issues. The first, I need all input data to display as red... I just have had NO luck getting that to work for me. Also, I need the …

Member Avatar for iubike
0
127
Member Avatar for igloo

I have a homework question and I don't know quite where to start or how to implement what she is asking: [B][I][COLOR=#000000][/COLOR][/I][/B] [B][I][COLOR=#000000]Write a program that inputs three double-precision, floating-point numbers and passes them to a function that returns the smallest number. [/COLOR][/I][/B] [B][I][COLOR=#000000] .[/COLOR][/I][/B] [B][I][COLOR=#000000]Can someone please help me …

Member Avatar for sohaibrazzaq
0
85
Member Avatar for millanskie

I had moved my question on VB 4/5/6 category... sorry i made a mistake...

0
46
Member Avatar for mch682
Member Avatar for ~s.o.s~
0
176
Member Avatar for coder_gus

Hello! I have recently began to program in UNIX environments and I am currently reading about signals.So i tried a snippet that seems it doesn't do what i intended to.So i want to print the counter i from a for loop until a value is reached, than stop the process.Instead …

Member Avatar for WaltP
0
105
Member Avatar for sofianos

Can someone explains what specific "0x30" does in the decimal to binary function below: void dec2bin(long decimal, char *binary) { int k = 0, n = 0; int neg_flag = 0; int remain; char temp[80]; // take care of negative input if (decimal < 0) { decimal = -decimal; neg_flag …

Member Avatar for Rashakil Fol
0
5K
Member Avatar for edek

Short example of problem I have: [code]class A{ public: int x[10]; }; int main(){ int A::*pointer = &A::x; A a; a.*pointer = 3; return 0; }[/code] I got an error: cannot convert from 'int (A::* )[10]' to 'int A::* ' in second line of 'main()' I tried to remove '&' …

Member Avatar for edek
0
137
Member Avatar for affiliate7

Greetings, And an advanced "thank you very much" if you can help me :) I just played with the great tutorial from Dave Sinkula [url]http://www.daniweb.com/code/snippet151.html[/url] but I'm having trouble altering it. I want it to read the file, and each one of the lines, and output something like this: [QUOTE] …

Member Avatar for WaltP
0
115
Member Avatar for aznballerlee

My task is this, and I'm having trouble finishing up the code: [LIST=1] [*][QUOTE] Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters …

Member Avatar for Dani
0
665
Member Avatar for toomuchfreetime

Hey everyone new to the board and in a bit of bother. I've got this assignment thats been plaging me for two weeks but i can't do this one bit as i just don't get it. I've got to write a programme that takes data in from a file and …

Member Avatar for Salem
0
116
Member Avatar for Mr.UNOwen

Does anyone know what is the best function to use if you want to read user input and not have the return key carry over? Everytime I write something that reads in two things, the second read in always ends up being '\n' because the return key carries over to …

Member Avatar for WaltP
0
83
Member Avatar for aburamadan
Member Avatar for iamthwee
0
48

The End.