General C++ Programming - January 2011 (Page 10)

What is wrong here
 
Hi I have this small code but it produce a wrong result: #include <Long.h> #include <String.h> int main () { SysString tmp; int32 j=100; tmp.assign((int...
[no replies]
Object loading/unloading in using C file pointers
 
Hello, I'm doing a discrete robot simulation project and am having a little difficulty getting my terrain nodes to load/unload. To try to narrow down the prob...
[2 replies] Last: .... Looks like I did the same thing with the constructor. That fi... (by charlesWest)
Array as an argument of function
 
Hi guys, i was wondering if an array could be an argument of a function... For example: int points ; .......... void swap(int points){ int a ; a...
[2 replies] Last: I'd just figured it out muself... :) But ty very much! (by Nenad Zivic)
by Tanax
Creating a toString()
 
Hi! I'm wondering how to override the operator<< because it doesn't seem to work for me. I'm trying to make it just output a string as a test but it just outpu...
[8 replies] Last: It depends on the function. The assignment, array subscript, and fu... (by Duthomhas)
by Phass
tiny_malloc error? Urgent please !! (1,2,3,4)
 
Hi all ! I've tried to execute my program several times and i've got this error in many of them: (gdb) bt #0 0x93992338 in tiny_malloc_from_free_list ()...
[67 replies] Last: It's ok, my projects works now !! Thanks to all, especially to simeonz... (by Phass)
by Rycul
Cos function returning false value
 
Heya guys, I'm working on a program right now but something that has worked for ever for me (never had any problems with it) is now not doing what I expect i...
[3 replies] Last: Thanks guys. I'll go see what I can do about this then. EDIT: It's ... (by Rycul)
by Phass
Passing parameters in pipes
 
Hi ! I'm trying to plot some result using gnuplot. To do this, I've declared a pipe between my program and he gnuplo executable. The problem is that the user...
[6 replies] Last: Ok man, I put some aditional flags and now works perfectly !!! Many ma... (by Phass)
Array of vectors
 
I was just wondering if it is a good idea to have an array of vector. For example, if I have a graph where I know the number of nodes, ( say nnodes) but dont ...
[3 replies] Last: But if it is ensured that I am always adding to the end of the list, ... (by jsmith)
by shebin
calculating average lumination of a frame in a video clip
 
I am working out to calculate the averageluma of certain frames in a video clip to pointout blank frames, but with no idea how to go about it. Can anyone help ...
[6 replies] Last: Thanks Moschops Thanks Very much Let me try this out and learn more a... (by shebin)
error in the program of c++(dev)
 
#include<iostream> using namespace std; int main() { int a,b,c,a2,b2,c2,d; cout<<"Enter Your Date Of Birth"; cout<<"day(in 2 digits)="; c...
[5 replies] Last: I use Xemacs and makefiles myself, but that's not for everybody. (by Moschops)
Cursor position
 
How to get the cursor position.(Not the mouse one)...i am trying to use windows.h header file
[4 replies] Last: can u provide with a code in C++ (by satyamkrishna2004)
Using FileCopyEx and CopyProgressRoutine?
 
Hi! I am trying to create a program with different functionalities, among which copying a large file from one location to another. The program itself is not cr...
[5 replies] Last: I'm sorry to bump this, but now I've got another problem: MSDN clearl... (by Ramses12)
SFML wont work with Code::Blocks >_<
 
so i followed all the instuction: SFML\include --> CodeBlocks\MINGW\include SFML\lib --> CodeBlocks\MINGW\lib Compiler and debugger menu, Global compiler se...
[1 reply] : a few things make sure includes are under the compiler option and libs... (by acorn)
by Ark488
Finding an unknown pattern in a sequence of bit streams
 
Hello Gentlemen. I am new here, so preliminary apologies for any blunders. I would like to write a program to find an unknown pattern in a sequence of several...
[7 replies] Last: Hi again, this is ark488, not sure why but I can't login to that accou... (by ark48)
by Icenel
Read part char
 
char name = "Edward Anthony Coln"; how I can get the word "Edward", "Anthony", "Coln" ? Please let me know the ways for that 3 words Than...
[2 replies] Last: it's easy using strings http://www.cplusplus.com/reference/string/s... (by quirkyusername)
pointer program execution
 
please explain the execution of this program #include<stdio.h> char *c ={"ENTNG", "NST","AMAZI","FIRBE"}; char* *cp ={c+3, c+2, c+1, c}; char ***cpp= cp; ...
[3 replies] Last: what is the meaning of the statement char **cp ={c+3, c+2, c+1, c}; an... (by shubhamchawla)
Stringstream question
 
I am wondering why in this code the bold code has to use stringstream rather than this statement getline (cin,yours.year); Any ideas?? // example a...
[2 replies] Last: Check the reference whenever things are unclear: http://www.cplusplus... (by Athar)
by catosp
Integrate a databse in exe C++
 
Hello to everyone ! (sorry for my english) I have a question : It is possible to integrate a database in one executable files ? beacause i don't want to hav...
[2 replies] Last: I forgot to mention : I work in c++ builder 6 and i don't know how i c... (by catosp)
Image drawing issue
 
I set up a simple program to load and draw a 24/32-bit BMP file, but it isn't being drawn to the screen. Unfortunately, I can't for the life of me figure out wh...
[3 replies] Last: I thought I'd chime in because you said: I set up a simple program t... (by closed account D80DSL3A)
by paeez
using output of function
 
Dear all I have one question about functions . My program has 2 function+main function . for example : first function is int combine(){ ..... retu...
[1 reply] : Firstly, avoid 2d arrays. They're messy. int** combine(){//the typ... (by hamsterman)
January 2011 Pages: 1... 89101112... 24
  Archived months: [dec2010] [feb2011]

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