General C++ Programming - June 2013 (Page 15)

Need help building a typless container
 
so i built a programming language called jade that right now can only print. i want to add variables to it however. I am going to use a modified bajarne stroust...
[2 replies] Last: no. i knew that JADE was already made, but I had come up with the name... (by closed account Dy7SLyTq)
calculator help?
 
hi there, i'm trying to write a calculator. the user will enter the terms and they will be stored in arrays. i will be storing those terms in string arrays a...
[4 replies] Last: Yea I was surprised that it actually worked. The text editor I was usi... (by Smac89)
passing reference of pointer vs pointer of pointer
 
this didn't go well the first time so im giving it another shoot with a code snippet to make it easier as my english is poor enough to ask about this edit: il...
[5 replies] Last: (too late) (by andywestken)
simple question about passing pointer argument
 
please correct me if i am wrong, this is what i understood and duno if it's valid or not , please correct and complete what i've said :) When you pass an addr...
[5 replies] Last: @MikeyBoy sorry for the misunderstanding :) your reply was mean so i g... (by go for it)
Bilinear interpolation in c++ RGBA image?
 
I'm currently using this function to use bilinear interpolation during emulation: //Divide data for fuse_pixelarea! #define DIVIDED(v,n) (byte)SAFEDIV((dou...
[7 replies] Last: (1) s/GPS/GPU - sorry, typo Yes, transferring data to/from the graphic... (by Duthomhas)
help me ....the problems with array
 
i wanna delete something which the value bigger than the other by me given in the array,,then output the array, but the result of don't change. i dunno the ...
[3 replies] Last: Show your updated code. Take into account that you can not delete elem... (by vlad from moscow)
by NDSE
Tiled Map Loader for SFML Help
 
So I have the following code using http://en.sfml-dev.org/forums/index.php?topic=3023.0. It compiles correctly, but does not display the map on the screen. Is i...
[1 reply] : Can you show the code for level.h? EDIT: Found your post on the SFML f... (by naraku9333)
Program evaluating 5^3 = 124
 
This is the strangest thing I have in my entire C++ career. I am writing a program to find Armstrong numbers and the following code is a snippet from the progr...
[2 replies] Last: Cubbi, thanks for the reply. It outputs 125. I ran the same code on Id... (by vasiqisbewildered)
Dynamically Allocating One Dimension of 3D Array
 
I am trying to figure out the syntax to dynamically allocate a single dimension of a triple dimensional array. Basically i have a 2D array of structs. but each ...
[2 replies] Last: Interesting idea. Never thought of them three-dimensionally. Ill look ... (by bhardwick)
what wrong with my matrix file programing that print out~why i can not get result ~emergancy
 
#include <iostream> #include <fstream> #include <string> #include <iomanip> #include <sstream> using namespace std; struct matrix { double mat ...
[no replies]
main function
 
Can we call main() function ???
[5 replies] Last: #include <iostream> // The name main is not otherwise reserved. (the... (by JLBorges)
Linked list interface, implementation and driver file
 
Hello, I am having difficulty calling the constructor in interface portion of my program. I get the error: no matching function for call to ‘Node::Node(int...
[7 replies] Last: Actually Andy, what I said was 'Write some code that does something an... (by AdrianH)
Can't compare char strings.
 
Hello :D I've a weird problem and I hope you can help me: I have two char* that have the same data in (hypothetically). std::vector<char*> Buff; Bu...
[6 replies] Last: You're welcome. Glad it helped :) (by MikeyBoy)
16-bit signed PCM stream resampling?
 
I'm currently just resampling my 16-bit PCM streams by factoring and taking data. (Just made this from memory, don't have my code at hand atm) Is it OK to do it...
[no replies]
Help with PGraphics
 
// im trying to make the 2 PGraphics work together. could someone show me how to do it please? /* @pjs font=/media/css/Chunkfive-webfont.ttf; */ /** @peep sket...
[no replies]
Having problems with char data type variable
 
Hey, I have two char variables, m_GPSOffset and m_FileName . When m_GPSOffset has a value assigned to it, say for instance +11:25:30. The first entry of the ...
[15 replies] Last: Thanks for replying. I am still having the same issue even after chan... (by ajh32)
Linked List
 
well this is the receiving part of the program that i have wrote so far , still have to add the choice at the start .it could be like (for selling press S ,for ...
[1 reply] : From what you have written so far you should be able to make a startin... (by Blanchy)
by se7enn
Need help with longest sequence project.
 
Hello, I need some help with my assignment, the assignment is to design a program that takes an input list of up to 20 distinct positive integers which is e...
[9 replies] Last: Here is fixed version if you are still interested: #include <iostrea... (by Smac89)
by klw
Scanning a header file to save image data
 
I'm trying to read from a header file to take the image dimensions and other variables but I don't understand how to iterate through the "key" so it saves each ...
[6 replies] Last: Wow andy , that's +10. You've definitely had more fun with this than ... (by Duthomhas)
June 2013 Pages: 1... 1314151617... 28
  Archived months: [may2013] [jul2013]

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