General C++ Programming - October 2013 (Page 20)

Binary search of string in array of objects
 
I need to search for a string in an array of objects, this is what I have but it does not seem to work, it always gives me the second string in the array instea...
[3 replies] Last: is it possible that middle should be a double instead of an int? since... (by clarkkent)
Basic Array based Binary Tree
 
Hello! I've been working on this assignment and but I know that I'm not handling my array properly, could anyone point me in the right direct? #include<co...
[1 reply] : Bump, sorry, I really need help and I feel like this is a simple error... (by Mchubbs)
Coin Change
 
I have a current assignment for C++ involving us to make a program to determine coin change for example if you input the number 127 you would need 2 half dollar...
[1 reply] : You're missing a few semicolons and you can't perform modulo operation... (by Bourgond Aries)
defining an struct in seperated class file ERROR
 
hi all i've defined an strcuct in .h file and i read its variable in a method in .cpp file ,but i'v got error. .H file: class myclass{ public: struct o...
[3 replies] Last: http://www.cplusplus.com/forum/articles/40071/#msg216313 `myfunc()' is... (by ne555)
Constructor and Objects Explanation!
 
I have the following code, and I do not understand how we can give an object a parameter of type int? Also can some one please explain to me what the constructo...
[4 replies] Last: Thank you very much! (by sakonpure6)
image manipulation
 
I've come to a point where I want to manipulate an image file at runtime or with pre-determine sizes and have to be applied when the windows is moved or through...
[4 replies] Last: Yes, before writing the question I had look a bit into it and saw sdl_... (by Stormhawk)
writing to a file
 
Hi, when you have to write data on a file in binary mode multiple times (without closing the file), is the put pointer left where you ended writing the last tim...
[5 replies] Last: hmm looks like you have an "array of char" problem... http://www.cplus... (by AeonFlux1212)
help!!!!!!
 
i am trying to make a simple snakes game without array but dont know how to make my snake move no key is pressed #include<iostream> #include<conio.h> #incl...
[1 reply] : At this point you will likely want to learn SFML. It's easy, much easi... (by LB)
by ne555
¿why does the executable contain the definition of symbols that are never used? (gcc)
 
I wrongfully though that when you linked several *.o the final executable would only have the necessary symbols, not all of them. Lets say that we have a.o:...
[4 replies] Last: > can an executable be used as a shared library/DLL? Platform specifi... (by JLBorges)
Salary coding
 
I've started to learn about adding "prototype" into my code in my Computer Science coarse. I was wondering if i did it right. I also need help with a piece of...
[9 replies] Last: This is the result of what i encountered: #include <iostream> #inclu... (by closed account ETA9216C)
by Twyk
Need Tutoring
 
Hellow everybody , I learned C++ now 2 years and now I KNOW the base!After one year when I start to learn , I try opengl , but I abandoned because was more trou...
[1 reply] : Hi there, There is plenty of good information accessible through this... (by closed account o3hC5Di1)
api hooking
 
I Worked on this code Earlier ============================================== // HookTestCpp.cpp : Defines the entry point for the console application. //...
[1 reply] : Hi, The hook here is failing here, because the InstallEHook() is not ... (by closed account 13bSLyTq)
Using Class to solve the quadratic equation.
 
I am getting an error and am not sure what I need to change. #include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace st...
[5 replies] Last: Thank you for your help. (by Jody1285)
Cross-platform library for simple dialogues
 
In my game, I want to display dialogues for exceptions, and I don't really want to use something heavy like Qt, but then I also don't want to write and maintain...
[13 replies] Last: [quote=Duoas]Otherwise, the only time the user should see anything is ... (by chrisname)
compiler giving parse error at line 25 plzzzzz helppppp
 
#include<iostream> using namespace std; int MENU(); int TakeAction(int array[ ],int sizeofarray,int Caller); int MAX(int sizeofarray,int array ); int MIN(i...
[5 replies] Last: You're welcome! Glad it worked out :) (by MikeyBoy)
by dilver
repeated digit
 
this code : #include <cstdlib> #include <iostream> #define TRUE 1 #define FALSE 0 using namespace std; typedef int Bool; int main() { B...
[3 replies] Last: Why would it print repeated digit: 3 ? In the case of 1223, 3 is not... (by Stewbond)
by magson
About classes.
 
Hello, i'm wondering if there's any difference between pointer definition: Ione* pointer = new two; and two* pointer = new two; Ione is a b...
[1 reply] : There is a difference. Your "pointer" knows that the memory it points... (by keskiverto)
C++ question. Help me!
 
1: int m = (int x) { return (int y) { return y*2; }(x)+3; }(5); cout<<m<<endl; 2: auto ff= (int x,int y) { return x+y; }(4,5); cout<<ff(21,12)<<en...
[2 replies] Last: thanks you! (by huatrunghieu113)
by nano2
call up an EDITOR using c++
 
I have the following uing a phyton script I would like to write this using c++ Any one got a good approach to do this using c++ classes import sys, t...
[no replies]
October 2013 Pages: 1... 1819202122... 46
  Archived months: [sep2013] [nov2013]

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