49,757 Topics
| |
ok, so here is a link to my project guidelines... [url]http://www.santarosa.edu/~ssarkar/cs10sm09/cis10/proj5.html[/url] by the way, the deadline was extended to 08/07/09 and here is my code for my program... it compiles and counts perfectly, but for my project i need the program to go from generation 1 to generation 2 to … | |
hi im write this code with no error but in run it doesnt give me the best result i dont know why please if you can help me soon because i must recive this home work suuday not the block file have any statement in c++ and tokens-result are empty … | |
Hello I have a function that takes in an array as a parameter & puts random numbers into the array. I will run this function over 10 times during the program & I want each time I run the program for a different set of numbers to be in the … | |
Hello All, I am a new user of c++. Until now I just worked on basic console applications. I have to develop a program which will be able read two images and open them in separate windows and do some geometric calculations background. Also this program should allow user to … | |
hello, I dont know actually in which category this problem fits into.. i assumed this is the correct place.. If not then pls guide me as where to post it.. I have set of points which are connected with a line... This connected line may or may not be straight.. … | |
When my try to rebuild my program i m getting this errors 1>Linking... 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\agaba\Documents\Visual Studio 2005\Projects\car\Debug\car.exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://c:\Users\agaba\Documents\Visual Studio 2005\Projects\car\car\Debug\BuildLog.htm" 1>car - 2 error(s), 0 warning(s) my … | |
Hi all, I am a writing a small plugin to a piece of software that allows people to parse python files and return the output to the program, and to do that, i am allowing users to enter their script. However, they can only enter into a single line text … | |
Hello. What im tryin to do is answer the following. Write a class named Car that has the following member variables: yearModel, make, speed. In addition the class should have the following constructor and the other member functions constructor-accept the cars year model make as arguments. an assign to the … | |
Hello all, I am in the process of teaching myself c++. I wrote one program successfully and I'm trying to write my second. I have run into a problem that I can not seem to figure out at all. I understand that this seems trivial, but I really need to … | |
hi, could anybody help me correct my code. . .because i tried debugging it so many times i just cant find the problem so i was supposed to find for the number that occurred the most and times it occurred in my program Thanks for your help in advance ^^ … | |
Hi, I have created a simple dialog application in which I have a button and a status window. I have managed to properly display status messages to this status window using sendmessage when the user hits the button. However, there seem to be a timing issue when I try to … | |
How do you erase an element thats inside a map. Not the key but the element the key is pointing to? This doesnt seem to be doing what i want it to. [CODE]map<int, vector<int> > my_map; map<int, vector<int> >::iterator it; void erase(int num) { for(map::iterator item=my_map.begin();item != my_map.end()) { if(it … | |
Hey, I'm trying to load a bunch of words and setting them as my text but I they aren't setting for some reason. Here is the code: [code] #include "windows.h" #include "resource.h" #include <fstream> #include <vector> #include <cstring> #include <new> using namespace std; HWND hwndGoto = NULL; HWND hwndGoto2 = … | |
ok, so ive rattled my brain for quite some time now and im tired, i need help on my program because as of now, im down to 2 debugging errors "YAY!"... here is what the debugger says... " Line 7: error: too few arguments to function `void nextArray(bool (*)[20])' Line … | |
Hello, I'm learning C++ and i want to know how i can build a program that play videos, don't take care of types, any type of video, not all, but one, remember that iwant to build a command-line app and i'm using Linux. Thanks, Nathan Paulino Campos | |
Hi all , I need help with editing registry i want to put my program at startup So in this case it wil be at (Hkey Local Machine \ Software \ Microsoft \ Windows \ Current Version \ run \ "; so i need to add a new key with … | |
Hi Guys, is there any other way to use shared library in unix and linux platform apart from dlopen() and dlsym(). Thanks. | |
Please C++ TO Delphi [CODE]IMAGE_NT_HEADERS* inh; IMAGE_SECTION_HEADER* ish; DWORD newRVA = (ish + inh->FileHeader.NumberOfSections - 1)->VirtualAddress + ((ish + inh->FileHeader.NumberOfSections - 1)->Misc.VirtualSize + (inh->OptionalHeader.SectionAlignment - (((ish + inh->FileHeader.NumberOfSections - 1)->Misc.VirtualSize % inh->OptionalHeader.SectionAlignment) ? ((ish + inh->FileHeader.NumberOfSections - 1)->Misc.VirtualSize % inh->OptionalHeader.SectionAlignment) : inh->OptionalHeader.SectionAlignment))); newSecSize = (newSecSize + (inh->OptionalHeader.FileAlignment - ((newSecSize % … | |
Hey all, I know this is a very newbish questions, but I couldn't readily find the answer on this board so I figured I would ask. Consider the following code snippet: [code=cplusplus] for(i=0;i<5;i++) { int number; int counter; cout << "Enter a number less than 10:" << endl; cin >> … | |
[B]iam write this programe put in run there is problem in pointer please can you help me. to find the place of the problem when you run it press f10[B][/B] [CODE]#include<iostream> #include<fstream> #include<string> #include<conio.h> #include <iomanip> //#include<stdio> //#include<ctype> using namespace std; /**************************************************************** Functions prototype. *****************************************************************/ void Open_File(); void Demage_Lexeme(); int … | |
I am currently making an IRC bot in C++, and i am getting an error from trying to bind the socket, error 10049: WSAEADDRNOTAVAIL. I am new to sockets in C++, so I was wondering what I did wrong. I am running Windows Vista Home Premium and compiling with Bloodshed … | |
Where is the wrong??? Why does not this program work?? [code=cplusplus]#include <iostream> using namespace std; // Function prototypes. int resverseDigit (int); int main() { int num; // Test function resverseDigit(num). cout << "Enter the number: " << endl; cin >>num; return 0; } // End of main // Function Definitions … | |
I need help.... I have a problem about the program/code for the recursive function for power...for example b to the n power, where b is a float and n is an integer... thank you...hope you can help me with this... I need it tomorrow... | |
please help me with my exercise... please give me sample on recursions with Fibonacci and Lucas number... thank you very much.... | |
Hey guys. I am trying to make a program that prompts the user to enter in a directory path, and then the program goes to that directory and displays what is inside. [CODE]string cString; cin >> cString; system("cd " cString); //this is what i am having trouble with. system("DIR"); system("PAUSE");[/CODE] … | |
I am trying to define an abstract overridable method isKnownWord(), i am recieving errors but i cannot see where they are coming from. Can any one enlighten me. [CODE]public: spellChecker() { wordList=NULL; } void addWord(char* aWord) { int word_size=strlen(aWord) + 1; char* dest=new char[word_size]; strcpy(dest,aWord); wordRecord* newRec=new wordRecord; newRec -> … | |
Hey guys. I am using windows xp, and Bloodshed Dev C++ compiler. I am making a simple program. The CPP file and EXE file work fine on my computer, but do not work on any other computers, no matter what OS (Ive tried on xp, vista, linux and 7). When … | |
Hey Everyone. Does anyone recommend any particular book for learning c++ ? Thanks. | |
I'm juz wondering how do I send a single value to a 8-parameter function... [CODE] void enterdata1(int &row1col2) { cout<<"Please enter the number for Row 1-Columm 2"<<endl; cin>>row1col2; if(row1col2 != 1 && row1col2 != 2&& row1col2 != 3 && row1col2 != 4) { cout<<"Please enter the correct number (Which is … | |
Please explain. Does it automatically include the default constructor? |
The End.