15,551 Topics

Member Avatar for
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
78
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
343
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
121
Member Avatar for drake_bower

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

Member Avatar for Infarction
0
51
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
144
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
151
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
142
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
116
Member Avatar for Sanchez10

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

0
70
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
107
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
467
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
343
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
103
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
95
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
113
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
129
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
86
Member Avatar for millanskie

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

0
47
Member Avatar for mch682
Member Avatar for ~s.o.s~
0
238
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
106
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
116
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
666

The End.