No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
25 Posted Topics
Re: here a better version: Problems: the close parentheses is missing :-p [code=cplusplus] #include <iostream> #include <iomanip> #include <cstring> using std::strtok; using namespace std; int main() { char sentence[32]; char *tokenPtr; cout << "Input Telephone No.: " ; cin >> sentence; tokenPtr = strtok( sentence, ")-" ); while ( tokenPtr != … | |
Re: you can use a for loop to print using the following syntax(just like an array) [code=cplusplus] cout << values[i] << endl; [/code] | |
I need a way to send email through smtp server ssl secured Programming Language: C++ Platform: Windows XP I need something doesn't involve visual studio Thanks in advance! | |
I want to know if this image has been viewed let say if I have this link : [url]www.example.com/image.jpg[/url] when the imaged get viewed I want store the time of view in db , my only problem is how can I tell if the image has been viewed and how … | |
am trying to append to file but its not going correctly every time it fail to connect to file [code] #include<iostream> #include<fstream> using namespace std; int main() { fstream file; char word[256]; file.open("StudentInfo.txt",ios::app); //file.open("StudentInfo.txt",fstream::app); // wont work too if(file.fail()) { cout << " Error opening the file " << endl; … | |
Am writing a code in c# and when I build the application as release and I go to the project file/bin/release I find the exe file when I run it works just fine but when I try to do anything like open a file or exit I get this error … | |
OK i have an array of 10 elements and I want to color the 5th element with a different color than the default color , is that possible ? Thanks | |
ok am new to C# and am doing good so far except I been having a problem with the exit button the code for the exit button is: close(); or I use = this.close(); and that close the form but the problem is that the program still in the process … | |
Re: check this out [url]http://www.daniweb.com/forums/thread150364.html[/url] | |
Re: [CODE=CPLUSPLUS] #include<iostream> #include<fstream> using namespace std; int main() { ifstream ifile; ifile.open("text.txt"); string words; while(ifile >> words) { if(words[0]== 'f') { // if the first letter is if // here you can do the replacing } } return 0; } [/CODE] give it a try and see! | |
Re: you can just break; or you can do this [CODE=CPLUSPLUS] creat bool notfound = false; out side the for loop if(key > arry[last]) { notfound = true; } and after the for terminate you can check and see if notfound is equal to true [/CODE] | |
Hi I would like someone to check what am doing 1- Declare a 4-byte variable in a relocatable segment of internal directly addressable data memory. [code] x SEGMENT data RESG x x: DS 4 [/code] 2- Declare a 2-byte variable in an absolute segment of internal directly addressable data memory … | |
ok lets say I have my code file in my web server and any one can call that functions in that file ( assuming they know the name of the functions ) but they can't see the actual implementation in other word they can use the implementation but they can't … | |
I did make my dll file out off those two files dll.h [code] #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL # define DLLIMPORT __declspec (dllexport) #else /* Not BUILDING_DLL */ # define DLLIMPORT __declspec (dllimport) #endif /* Not BUILDING_DLL */ DLLIMPORT void welcome(); class DLLIMPORT DllClass { public: DllClass(); virtual ~DllClass(void); … | |
Re: see the different between my code and yours [code==cpluscplus] #include <iostream> #include <iomanip> #include <cmath> using namespace std; // Function declarations char menu(); void circle(); void rectangle1(); void triangle(); // Main function int main( int argc, char *argv[] ) { char choice; bool loop = true; while( loop ) { … | |
Re: use an array and a for loop see an example [code=cplusplus] int num[size]; for(int i=0;i<size;i++) { cout << "Enter another value.\n"; cin >> num[i]; if (num[i] > greatest) greatest = num[i]; else if (num[i] < least) least = num[i]; } cout << " and to output " << endl; for(int … | |
I need some help with code after a Single step through lines 1-5 using uVision2. Will the entire code segment be executed with the current values in P0? Why? Alter the value of P0 within the debugger to enable the program to continue execution. Single step through lines 6 and … | |
Hi I need help with the remove function in the AVL tree void remove( generic x ); Thank you guys | |
Re: when you said librarian I think of storage system good luck | |
Hi I'm trying to test my code but I keep getting some kind of strange errors bst.hpp: In member function `void Bst<generic>::insert(generic) [with generic = int]': test_BST.cpp:30: instantiated from here bst.hpp:36: error: invalid conversion from `int' to `int*' bst.hpp:47: error: ISO C++ forbids comparison between pointer and integer bst.hpp:52: error: … | |
Re: I think it's still crashing 0x08048fbb in countSort (numbers=0xbfea2af0, size=5) at sorting.cpp:69 69 b[c[a[j]]-1] = a[j]; I wish I can help :( | |
Re: this maybe what your looking for [url]http://www.cplusplus.com/reference/clibrary/ctime/clock.html[/url] | |
Hi guys I'm trying to generate a radnom float number between 1.2 and 2.3 but when compile I get this error: cal.cpp: In function `int main()': cal.cpp:13: error: invalid operands of types `int' and `double' to binary `operator%' the code: [CODE] int main() { srand(time(NULL)); float num; num = rand() … | |
Hi guys I wrote a c++ code but when I compile it I got some errors I couldn't figure it out course.cpp: In constructor `Course::Course(std::string, int)': course.cpp:7: error: initializer expression list treated as compound expression course.cpp:7: error: invalid conversion from `int' to `char*' main.cpp: In function `int main()': main.cpp:12: error: … | |
Hi guys I'm doing a program for one of my class but the teacher asked us to write a language mangler to modfiy a sentence and make it nonsentence And he want us : - If any word has length 9 or more characters, insert into the word after the … |
The End.