- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
78 Posted Topics
Re: Cross reference the word "Love" in a book entitled "Hate" and you're an ironic dude. | |
Re: There is a problem, I just haven't found it yet. :lol: Just kidding. Looks great and works fine. Kudo's. | |
Re: [quote=jessicaphillips;322019]Hello people, I have this C programming assignment which I have no time to do as my Uni workload is too large. The assignment should take, if you are an experienced C programmer, no longer then an hour. I am willing to pay $30/£20 for anyone to help me. If … | |
Re: [quote=Cyber-SEO;317970]I've been working with an older programmer who's coding an IVR solution. It's running on Windows 2000 and is connected to a T1 (we have internet access) through the machine his code is running on. I've been trying to get him to request information from our main web server via … | |
Re: [quote=Shaabangbang;320404]Hello, i have a question about string manipulation, i am supposed to write a function that takes a character array and returns a void, so far so good, but its supposed to reverse the array as output, for example, if the input is "Hello" the output is "olleH", here is … | |
Re: [quote=darkAngel;321805]as above. [code] string s; cin >> s; [/code] for example, if the user enters Orange, i want it to convert to orange. please advise what i should do. thanks in advance[/quote] Here is a function that'll do it: [code=cplusplus] string UpToLow(string str) { for (int i=0;i<strlen(str.c_str());i++) if (str[i] >= … | |
Re: I've met some female computer nerd's. Unlike many of the nerd's I know, she can admit when she is wrong. | |
Re: [quote=earlyriser;317987]Hello. I have some troubles with a constructor, I can't figure out why a WHILE isn't working as I expected. The program stops there and it doesn't continue. Thanks in advance. [code] [B]while (line!="&")[/B] [B]{ [/B] [B] getline (myfile,line);[/B] [B] strcpy (PCoursCourant->sigle, line.c_str());[/B] [B] cout <<y <<line <<endl;[/B] [B] y++;[/B] … | |
Here is just a simple program to sort two strings inputted from the user entered on the command line. | |
Re: [quote=thekashyap;326003]Hello Everyone, Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP... We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product. All the IE (information elements) are defined by standards, so we know everything abt every field in … | |
Re: [quote=Gaara;325043]Somone told me to use a sniffer to count the packages, and then multiplie it with the mtu or somthing...??? (im realy bad at maths...) Are you sure there aren't a program that I can downoad? Why? Im working on a lan with about 10 other users. We got a … | |
Re: [quote=amelie;326208]Hi All,I'm using a C++ client and server of different language.Using sockets for communication.After 10 - 15 hours of successful exchange of information a problem has occurred.Client seemed to send messages to server, but server didn't respond.After few hours, the client was killed.Suddenly, the server started dumping the messages towards … | |
Re: It is not good practice to use strlen in a for loop, especially for loops that must loop many times because strlen iterates through the array of characters one-by-one every time called (i.e. every loop) and takes up a lot of processor time. You could get the strlen then just … | |
Re: [quote=boujibabe;324529]I need a function that will populate a multidimensional array with a fixed amount of elements. So that only some of the locations contain a distinguishing number for identification.[/quote] If the multi-dim array is of fixed length, then most of the work is done for you. Simply declare a mutli-dimensional … | |
Re: [quote=ghadahelal;328384]hiiiiiii all, i've an application programm , its data is . cap files i need 2 make a programm with c++ , this programm has 2 read from the .cap data is that possible or not *****. cap file[/quote] Yes it is possible! Here is a link to a tutorial … | |
Re: > Hi to everyone... > I am to write a code about finding the least coins number to make up an amount that is given by user. > It is a trivial question for a programmer and I did code well. > In Canada, there are 2 more currencies, Loonie … | |
Re: [quote=mailsteam;327590]Is there any way to get the cuurent time using C in LINUX. I tried with clock_get time(). But i'm getting the same time for a particular amout of function call. The code i've used is given below. Is there any way to get the time in an higher resolution. … | |
Re: I think that is a cool project, btw. Anyway for the division, teams and league I'll give some fastly written code that might spark some ideas in that creative head of yours. Here is some example class that incorporate a simple implementation of polymorphism. Hope you can get something out … | |
Re: [quote=Savage221;327316]Hello. I'm stuck on a part in my program. Some numbers are adding up properly, others aren't. I assume the problem is that I'm using integers instead of doubles, however, how would you format the following in C? How to describe it, it's like a chain. I have to take … | |
I've been trying to figure what I'm doing wrong all day. I'm becoming discouraged. Can anyone help me out? [code=cplusplus] void stripSpace(string &str) { int i,j,len=str.length(); for (i=0;j=0;i<len;i++;j++) if (str[j]==' ') { str.erase(j,1); j--; } str[j]='\0'; } [/code] I just won't seem to stop until I get this fixed!!!! Any … | |
Re: [quote=~s.o.s~;325935]The only requirement is that you should be working on a Windows OS and the compiler you use should have the required header files ( windows.h) Also read [URL="http://www.daniweb.com/techtalkforums/post324544-2.html"]this.[/URL][/quote] To reinforce the information ~S.O.S~ has provided on the post linked to by 'this', you can referrence Microsofts website. Here is … | |
When I first became interested in network security I read about data encryption, specifically encryption algorithms associated with the Session layer of the OSI model. I had an idea and although doesn't directly pertain to network communication security, it can however be compared with the Public\Private key distribution concept. My … | |
Re: [quote=ctrohana;325401] [code=cplusplus] char data[N]; FILE *dataptr; unsigned int i,ii; char *data2=malloc(strlen(data)); long k; [/code] [/quote] Try to allocate the memory using malloc like this: char *data2=(char*)malloc(strlen(data)); The above simply casts the pointer returned by malloc to the memory allocated to a type char. [quote=ctrohana;325401] [code=cplusplus] void OpenFile(void) { dataptr=fopen("data.dat","r"); if … | |
Re: Yes, to implicitly set the functions argument list to none, you use void. you use void to say there is no return type, or return therefore. Good luck, LamaBot | |
Re: [quote=proxystub;326159]cant seem to read from this my file "d.txt", i know this is quite simple code but its just not working, and yes file "d.txt" is in the same directory as the .cpp & .exe [code=c] #include <fstream.h> #include <iostream.h> #include <stdlib.h> int main() { char ch; //int check = … | |
| |
Re: [quote=niyiment;326176]I am new to c++ and i dont know where to start from and how to get materials on c++ from any site or member. thanks in andvance[/quote] Also there are many books out there that can help you, on-line tutorials and people can even learn programming off of forums. … | |
Re: [quote=SHWOO;326010]I am coding a class project where I will have a basketball league. The league will include 3 divisions and each division will have 5 teams. Each team will have a number of players and one coach. I must have 5 seperate classes. I already have two classes called person … | |
Re: [quote=jwenting;325215]yes, you're in way over your head alright. Leave programming games, and especially largescale games, to experienced people and start with beginners' tutorials. You can NOT write the next Quake or Everquest on your own from the comfort of your bedroom, and especially not without years (think a decade) of … | |
Re: [quote=Shaabangbang;321875]Hello, my prof gave us a problem from the ACM programming contest, we are supposed to write a program that takes a compressed file as input and generates a reproduction of the original uncompressed file as output, the compression scheme requires making a list of the words in the uncompressed … | |
Re: The program is pretty dense but I like it. I know the program works but I've modified the GetFactors() function a little to so you another possible way to do it. You can take it or leave it: [code=cplusplus] void GetFactors() { cout.unsetf(ios::scientific); cin.unsetf(ios::scientific); int ctr = 0 long double … | |
Re: [quote=tikal777;324874]Hi to DaniWeb. I've been checking out the forums from time to time to get help with C++. I'm a total beginner in C++, the only other language I have any knowledge of would be HTML, which is getting old. Anyways, I'm in a class that is requiring an assigment … | |
Re: [quote=rostom99;325431]my teacher told us to give the input of the following output given..using c++ loop formula.. 1) * *** ***** *** * 2) * * ** ** ****** 3) ****** ** ** * * [/quote] Please be more specific. Good luck, LamaBot | |
Re: [quote=notfornothing21;324847]I am just learning linked lists and I need to start off my inputing integers and outputing them in a sorted list. I have written a code and pretty confident that the code make sense, but maybe it is out of sequence is why it is not working? I am … | |
There is probably a thread already started regarding this. I would like to contribute some networking tutorials. Can someone provide a link to a thread on this issue that already exists or perhaps point me in the right direction? I tried to search for the subject but seem to get … | |
Re: [quote=nathanpacker;316278]I never know if I'm putting these in the right place. Anyway, I have been having trouble ftp'ing larger files or larger groups of small files to my ftp server lately. I'm hosting with globat.com, and they say there are no problems. I'm using SmartFTP. My ISP is Qwest. After … | |
Re: > start-quote void create() { char *tl; do { p=(struct node*)calloc(5,sizeof(struct node)); p->data=random(100); p->next=NULL; if(first==NULL) first=p; else last->next=p; last=p; printf("do you still want to create?(y/n):");scanf("%s",&tl); getch(); }while(*tl!='n'); } > end-quote calloc will allocate 5 node structs. p will point to the first of the five elements. On the second loop, … | |
Re: [quote=joeprogrammer;324790]>but that did not work. You should describe exactly [I]how[/I] it did not work, so we can stop guessing and actually figure out what the problem is. >cout <<"Height :"<< getHeight()<<endl; How in the world is the compiler supposed to know which object to call [inlinecode]getHeight[/inlinecode] from? There's something special … | |
Re: [quote=scannerman96;322776]Hello all, Here's one for ya. I've got a WRT54GL Router hooked up to my HP running Win XP Pro sp2 and a WPC54GX Card running on my Toshiba Techra 8100 with 2000sp4. Now the power light strobes while the line light stays light. It recieves my router, good signal … | |
Re: [quote=RaCheer;324807]I am writing a C++ program to convert feet and inches to meters and centimeters and vice versa. I am having a problem figuring out the conversions. What I have so far actually works...it gives me a result but my way of getting to that result is not the correct … | |
Re: [quote=endsamsara;324816]Hi, well i dont understand that at all but with this i get 1 array for the words and other array for the puzzle? word word =array1?? word ?? abcsdsadsd sdaasdasdd =array2?? worddsdddl??? But whats the name here in the code for array 1, and array2? do the code is … | |
Re: [quote=jan1024188;324523]Hello. I use Linux, and I have no experience in windows. I have to write a C++ program that checks if Java is installed. I have no idea how to check that (there is no directory such /usr/bin ). I need this for a Java app and I want check … | |
Re: [quote=SHWOO;321696]I was given an assignment to write a recursive function to print a diamond comprised of astrisks (less the dashes) such as: ---* --* * -* * * * * * * -* * * --* * ---* [/quote] I'm not going to show you how do it but i'll … | |
Re: [quote=RisTar;322463]Hi, im trying to create a function that gets two strings , the first string its the source , and the seconed is an understring . the function should return an int with the value of the position that the understring starts in the source string . so that if … | |
Re: [quote=RisTar;322362]Is there a function that draw 2d objects like boxes and circles . I remember that in qbasic there was a few 2dobjects functions so i thought that there is a chance c will have some too. Thanks .[/quote] I recently wrote a program and provided the code under the … | |
Re: [quote=ctrohana;322029]Hi guys, I need ur help. If I have character strings (data array file) as below: X001234 X001345Y002323 X00142 X001567 How do i program, if I want to enter Y002323 to the next line? and how I can add '0' character after X00142 so that the the array is like … | |
Re: [quote=zakula11;321331] [code=cplusplus] ... bool HashTableIterator<Data>::next(const char * & key, Data & data) { // TODO: Returns the next element in the hash table. // The key and data values are stored in the references passed // as argument. It returns true if there are more entries or // false otherwise. … | |
Re: [quote=joeprogrammer;321656][URL="http://www.daniweb.com/techtalkforums/thread70096.html"]This[/URL] doesn't help you any? I admit I've never read it, but the favorite one around here seems to be [I]Accelerated C++[/I]. > Other post disregard Noones responded to it in the last [B][I][U][COLOR=purple]48[/COLOR][/U][/I][/B] hours! Wow... that is a looong time to wait. :rolleyes:[/quote] If money is no issue, I … | |
Re: [quote=daphnie;322464]I have just write out somrrthing like this [code=cplusplus] int main() { stack<char> allwords; char word; while (cin >> word) { if (word == '(') {allwords.push(word);} else if (word == ')') {allwords.pop();} } if (allwords.size() == 0) {cout << "The stack is %d. It is balance!" << allwords.size() << endl;} … |
The End.