General C++ Programming - December 2014 (Page 11)

Undefined reference for functions in same cpp.o file?
 
I have a large amount of code, so I have tried to only include the relevant parts of the code here
[2 replies] Last: SET(NegativeEnergy_LINK_LIBS NegativeEnergyAPI .. split LB ) ... (by Madhurih2k)
by ameneh
jigsaw puzzle and pieces
 
Dear all, I am looking for the jigsaw puzzle and pieces code or any guideline to write this program. I have a limit time to write this code, I should generate...
[no replies]
by Sh0es
Searching Algorithm Warning
 
I put the warnings in comments on the lines where they occur. BibEntry findEntry(ArrayList<char> a){ //searches for BibEntry a if(base == NULL) throw el...
[5 replies] Last: Will this work? Probably, and the compiler might optimize away the r... (by dhayden)
Simulate Alt + Tab
 
I'm trying to make a program that will simulate Alt + Tab, but I can't get it working. I've tried a bunch of stuff but nothing will work. Here's one of my attem...
[3 replies] Last: @Bingocat4 Thanks. I didn't know it was a windows programming thing. ... (by whitenite1)
Help with a Switch that calls back to previous input
 
Ok so basically I have a switch with 6 options. The first 5 are selecting a shape. In the first 5 cases it will calculate the area of the selected shape. Now th...
[3 replies] Last: Do you really have to print out the previous details when the user sel... (by dhayden)
While loop is not being executed, with getline as argument
 
This is the code i am working on: http://ideone.com/YixZyL I had designed a cross platform grep and am revising it to making it more well for lack of a bette...
[1 reply] : Wait, I was being stupid. The file did not exist since filenNme alread... (by InfinityCounter)
Because I do not handle the exception?
 
Hello everyone. I have Windows XP and use as IDE Code::Blocks with MinGW 4.7. I wrote this simple program to understand exception handling: divide.h #ifn...
[5 replies] Last: There's a usage summary with some references at http://en.cppreference... (by Cubbi)
C++ Movie Kiosk Project
 
Hello all. I need some help with this program. Here are the requirements: I want a kiosk style system for my movie theater. I want customers to be able to pur...
[3 replies] Last: what you can do is myfile>> VecString Move the data from the file in... (by jasonwynn10)
a problem after using cleardevice and sleep functions in graphics.h
 
I have a college project which is a car racing game using C++ and the old-school graphics library BGI. After I draw the map and placed the objects(Car,obstacles...
[3 replies] Last: Objects only move if you paint/draw them in a different spot. (by Duthomhas)
SFML view issue
 
Alright so i am using the view with the keyboard setting to move when certain keys are pressed , bu the issue the sprite stays in the center only if the cam isn...
[no replies]
by iBlueZ
Question
 
I have a question, i want to read every title books being read on the notepad and it reads everything. How can i read only the title of the book in the notepad....
[3 replies] Last: string title_tosearch; cout << "Enter a title of the book to search... (by tanezavm)
by extra1
Phonebook Project that writes and reads from text files using arrays
 
Hi I'm new here and not so adept at C++ myself. My problem is when I try to show the contents of my text files after I add a contact it wont show me anything. C...
[3 replies] Last: Where are you writing this "added" contact to the file? It's global ... (by jlb)
get url from mozilla
 
Hello everyone Does anyone know a function/way to get the url from mozilla navigator for expamle : string getUrl() { // codes return strURL; } outpu...
[7 replies] Last: @ OP: The user history will be in "%AppData%\mozilla\Firefox\Profiles\... (by Computergeek01)
select a file
 
Hiiiii everyone I am asking if there is a way to select a file thanks a lot
[8 replies] Last: Maybe try this ? http://stackoverflow.com/questions/3010305/program... (by Moooce)
Hash table of function pointers?
 
Is it possible to create a hash table of function pointers so that functions can be referenced by their name (using a string?)
[2 replies] Last: Thanks! Appreciate it. (by primem0ver)
Some help with sequential search algorithm
 
The details of the assignment is within the code. Basically its a simulated radio station holding a number guessing contest. 20 numbers were "randomly selected"...
[10 replies] Last: I have figured this whole thing out by changing the while loop to disp... (by dub1987)
problem with unary operator ++
 
In the program below i expected the value of b to 8. But g++ is giving an output of 9. Can anyone explain me why is it behaving so? #include<iostream> us...
[2 replies] Last: In addition what Peter87 said. Even with straightforward implementa... (by MiiNiPaa)
Taking an input file and doing calculation
 
I am trying to work on a C++ program to calculate the quadratic formula using input files and classes. I have written my class, but I am trying to find a way to...
[1 reply] : what is the format of the contents of your input file? (by tanezavm)
Need help with error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
 
I am getting this error when I try to run my program: 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tm...
[1 reply] : try changing line 6 from int main() to int _main() (by tanezavm)
Solving a linear system of equations using threads
 
Hi everyone, I am trying to write a code that solves a system of linear equations such as A*B=C. My system has a dimension equal to 1600. The matrix A cab be...
[1 reply] : int main() { int count = 0; //Inputing matrix A ifstream... (by JLBorges)
December 2014 Pages: 1... 910111213... 31
  Archived months: [nov2014] [jan2015]

This is an archived page. To post a new message, go to the current page.