15,551 Topics
| |
[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] | |
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, … | |
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 … | |
| |
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*, … | |
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:???? | |
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 … | |
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 … | |
Anyone have any ideas on how to simulate an I/O device such as an MP3 player serially? | |
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 … | |
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), … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
file operations like reading, writing etc using C language | |
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...) | |
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. | |
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 | |
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 … | |
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 … | |
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 … | |
I had moved my question on VB 4/5/6 category... sorry i made a mistake... | |
Hi, could someone tell me the syntax for the strstr function in C? | |
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 … | |
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 … | |
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 '&' … | |
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] … | |
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 … |
The End.