- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
9 Posted Topics
Hello everyone, I was working on a program that was meant to open something the user put in. Basically, the user would put in the path and then the program would open whatever was there. I can't work it though, every time I put in the file path, it says …
I don't really know if this is the correct place for submitting this kind of question, but I couldn't really find a good place, any better than this. Anyways, onto my question: I just finished making a new site called SNIP My site works like this: - It is a …
[QUOTE=mcriscolo;1177905]You then use: [CODE]printf("%4.3f", myFloatVar);[/CODE] But note that if the value in "myFloatVar" has 2 digits left of the decimal, you'll get those two, along with the 3 past the decimal.[/QUOTE] In my c++ book it shows how to do it differently. I'll just post that up to so the …
Hello everyone, I have a question regarding advanced file manipulation. I am trying to make a function that will take in a number which will be the number of a record and basically take that record out and display its contents and let the user edit it. Here is the …
[QUOTE=mathpro;1178648]I should have explained a bit more. Tthe qsortselect() function is suppose to be a generic function that takes any values such as int, float, double, etc. So the type is not known. The main method is not important, I just posted it to give an example. Is there a …
Here is my code, I am trying to make a smaller version of a chatterbot like Eliza. Anyways here it is.[CODE]#include <cstdlib> #include <iostream> #include <cstring> #include <stdio.h> #include <string.h> #include <string> #include <windows.h> #include <fstream> #include <tchar.h> // a few global variables char str[50]; // this one is for …
Hello everyone, Currently, I am trying to make a smaller version of the famous Eliza bot. I have written a program that can understand and put out replies, but if I want to make it bigger then the code will be thousands and thousands of lines long. And all on …
hello, it could just be with the placing of the function. Maybe you should try moving it around. I don't know it looks fine to me...
here is the code for generating random numbers [CODE]int which_Num; unsigned seed = time(0); srand(seed); which_Num = rand() % 5; [/CODE] The number 5 is the max number to be generated you can change it to whatever you need like 100 or 50 or in your case 6. After that …
The End.
some