General C++ Programming - December 2010 (Page 8)

comparing a string from a file
 
guys could anyone help me how to compare a strinf from a file. example i entered the word "plus" then the program should search it from a file then print if i...
[1 reply] : Hi, First of all, have a look at your while loop. It only contains ... (by thomas430)
create a window for multiplatform programm
 
hi i want create a window in ubuntu linux but create it with the primitive libraries for example in windows use windows.h and others but in linux how works i...
[2 replies] Last: what i want know is which libraries of the Os to use for manage the sc... (by oscarDev)
by Solrac
Why does my value change without assignement?
 
I have an array of a struct with another array of struct as a field. The fields get initialized, but when in the third for loop the value of why .number_of_sub...
[6 replies] Last: Sure - I was curious about using malloc in C++ then I found the way to... (by budman85)
Can you accomplish this
 
Hello, I'm new to Visual C++ and have found a code to an very old Asteroids Game for Windows using DirectX 9. I am calling it Asteroids 2 which is an Asteroids ...
[1 reply] : You have to tell the program where to find the files. if you move them... (by hamsterman)
by Alpha
Returning pointers and memory problems
 
Hi I've a question about returning pointers from functions. I know it isnt properly a C++ question, but I've doubts with C++ classes too. First of all, if ...
[4 replies] Last: ty :) (by Alpha)
Grade entry and calculator
 
Hey guys, this should be a simple program, but I'm having issues. The problem is as follows: Write a program to complete the following tasks and record th...
[no replies]
reversing a string
 
Hi all, I want to reverse a string using pointers. So, i wrote the program as follows, 1. string s; 2. s="abed"; 3. str=strewn(s); 4. char *p; 5. p=&s...
[2 replies] Last: Don't use C strings if you can avoid it/aren't using C. If you want to... (by chrisname)
heterogeneous container
 
I tried to do something like this a while ago but it was kind of messy... ( http://cplusplus.com/forum/general/25840/#msg138101 ) I've been playing around w...
[2 replies] Last: [quote=hamsterman]Neat. I'm not sure I know where that could be used, ... (by m4ster r0shi)
Using namespaces across multiple files.
 
The point of this program was to create two objects of type classa and classb which take an address to each others locations and allow access using pointers. I ...
[2 replies] Last: since they booth have different names, the namespaces were not needed... (by lostwithcpp)
difficult problems(any programmer can tell me)
 
hello every body difficult to write these two problems for me. (1)...Methods of Computing Square Roots Square roots using Newton iteration - Second metho...
[1 reply] : http://www.cplusplus.com/forum/general/20140/#msg105426 (by kbw)
by akramm
I want to develop this program
 
I want to improve this program 1. void Anniversaire::affichage() 2. { 3. 4. int n=0; 5. 6. ...
[1 reply] : you should start with improving the formatting. delete those numbers, ... (by hamsterman)
Effective tool for GDI memory leaks detection
 
Hello! Would you advice me some effective tool for GDI memory leaks and run-time errors detection in VC++? Thanks!
[1 reply] : Oh yeah. I've found a decision - Deleaker ( http://deleaker.com/ ) (by Petrosyan)
by kuol
Sort 2D array using c++'s stl::sort()
 
Hi guys, If you have time, here's my question: I'm trying to sort a 2D array A . Just consider I have m nodes, A is x-coordinate and A is y-coordinate ...
[4 replies] Last: Will do. Thanks, firedraco! (by kuol)
Encryption
 
ttet
[5 replies] Last: main must return int Double threath http://www.cplusplus.com/forum/... (by ne555)
Passing abstract class by reference
 
Hi everyone, I've been experimenting with using Abstract Base Class references as parameters to my functions, and have come across a behaviour that I can't u...
[3 replies] Last: Ohh! Thank you :-D (by thomas430)
by e2easy
Invalid use of member (did you forget the '&' ?)
 
I've run into a problem creating a C++ class. I'm trying to write something based on this... http://www.airplaysdk.com/docs.php#/api/api/ExampleS3EPointer...
[3 replies] Last: You're trying to pass in member functions. You can only pass in stati... (by kbw)
by Lane
An object oriented approach (Newton-Raphson method) (1,2)
 
#include <cstdlib> #include <iostream> //Where do I go from here? //Given that f(x)= exp(x)-sin(2x). Use a Newton object to find the minimum of //the funct...
[23 replies] Last: Thanks hamsterman. all done cheers (by Lane)
Write to specific line of file
 
To read it is simple: char ab ="LOOL"; int languagei4; FILE *file5 = fopen ( "home/alex/Desktop/example.txt", "r" ); for ( languagei4 = 0; la...
[1 reply] : Make a copycat cat program (the input goes to output). When you reac... (by ne555)
Euler Problem 12 runs for 10+ minutes with no solution
 
So, I know it goes against everything socially acceptable to come to a forum as a newbie, drop off your entire source, and say "You canz debug for meh, plz?" - ...
[8 replies] Last: I didn't even know about project Euler untill this post showed up. I d... (by Browni3141)
strings
 
there are five different methods to input a string.....can any one share all plz
[4 replies] Last: I know of the following... #include <string> #include <sstream> #... (by closed account 3pj6b7Xj)
December 2010 Pages: 1... 678910... 24
  Archived months: [nov2010] [jan2011]

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