49,757 Topics

Member Avatar for
Member Avatar for slayerace180

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 …

Member Avatar for Nathan Campos
0
160
Member Avatar for yara naser

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 …

Member Avatar for Salem
0
212
Member Avatar for gretty

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 …

Member Avatar for Dave Sinkula
0
154
Member Avatar for esesili

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 …

Member Avatar for marco93
0
111
Member Avatar for rakeshthp

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.. …

0
49
Member Avatar for agaba

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 …

Member Avatar for John A
0
145
Member Avatar for spauka

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 …

Member Avatar for spauka
0
111
Member Avatar for mandofl

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 …

Member Avatar for necrolin
0
3K
Member Avatar for dgr231

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 …

Member Avatar for dgr231
1
154
Member Avatar for xfngrn13

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 ^^ …

Member Avatar for VernonDozier
0
123
Member Avatar for seakayaker

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 …

Member Avatar for seakayaker
0
120
Member Avatar for JackDurden

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 …

Member Avatar for jesseb07
0
148
Member Avatar for goody11

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 = …

Member Avatar for Ancient Dragon
0
104
Member Avatar for slayerace180

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 …

Member Avatar for slayerace180
0
101
Member Avatar for Nathan Campos

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

Member Avatar for Nathan Campos
0
62
Member Avatar for medopunsher

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 …

Member Avatar for Ancient Dragon
0
60
Member Avatar for tarakant_sethy

Hi Guys, is there any other way to use shared library in unix and linux platform apart from dlopen() and dlsym(). Thanks.

Member Avatar for tarakant_sethy
0
80
Member Avatar for Leila1

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 % …

Member Avatar for Salem
-1
144
Member Avatar for dgr231

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 >> …

Member Avatar for Salem
0
130
Member Avatar for yara naser

[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 …

Member Avatar for Ancient Dragon
0
150
Member Avatar for rbrt13

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 …

Member Avatar for Salem
0
318
Member Avatar for sara9111

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 …

Member Avatar for mrnutty
0
124
Member Avatar for 4101

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...

Member Avatar for siddhant3s
0
91
Member Avatar for 4101

please help me with my exercise... please give me sample on recursions with Fibonacci and Lucas number... thank you very much....

Member Avatar for 4101
0
100
Member Avatar for licktress

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] …

Member Avatar for Ancient Dragon
0
217
Member Avatar for MV89

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 -> …

Member Avatar for JasonHippy
0
162
Member Avatar for licktress

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 …

Member Avatar for JasonHippy
0
91
Member Avatar for mat1989

Hey Everyone. Does anyone recommend any particular book for learning c++ ? Thanks.

Member Avatar for Salem
0
138
Member Avatar for gopi17

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 …

Member Avatar for necrolin
0
148
Member Avatar for lotrsimp12345

The End.