General C++ Programming - February 2013 (Page 23)

Simple Calculator ( NEED HELP )
 
#include <iostream> // Inlcudes standard input and output commands. #include <string> // Needed to add a string with a valu...
[2 replies] Last: The language is Dutch, haha. Thanks for replying anyways, I used this ... (by Santa Paws)
Vector problems (1,2)
 
When i build this program i get no errors, however a message appears saying vector subscript out of range. What does this mean and what can i do to mkae my p...
[20 replies] Last: i <= size is incorrect, and you used it in your first program i < ... (by LB)
Make this conversion please.
 
Can anyone tell me if there is a function of simply converting character array to a short int? For example. char array ={'0','2','f','f'}; to short int 767...
[3 replies] Last: @Ferni His character array is not zero-treminated. So it can not ap... (by vlad from moscow)
Splitting a linked list
 
I'm working on a lab assignment. I've been given a ton of code (5 files worth) that does various things with a linked list. I'm supposed to add a function to sp...
[1 reply] : Linked lists are pretty simple. In the most basic form, you have a "he... (by ResidentBiscuit)
Memory manager deal
 
On my free time lately I've been trying to get this damn memory allocation/deallocation/construction class figured out, but my experience working with stuff at ...
[14 replies] Last: Ooh nice guide. Bookmarking this. I have the memory manager finally pu... (by ResidentBiscuit)
problema olimpiada
 
Sigur v-aţi confruntat cu faptul că prea multe persoane folosesc Internetul simultan şi conexiunea devine foarte înceată. Pentru ameliorarea acestei probl...
[1 reply] : for(i=2;i<=n;i++) vizitat[t ]=0; //`t' is uninitialized Also, arra... (by ne555)
GSL v1.15 64 bit
 
Does someone have a link for GLS v1.15 (64 bit) ready for use?
[no replies]
Size of int pointer
 
Hello! My name is Sikander! My question is simple: is there a single way to get the size/length of an int pointer? // like char point //char *charptr="Hello...
[5 replies] Last: > strcpy(); > is there any function for int..?? `memcpy()' or `std::... (by ne555)
Preventing letter/symbol input
 
Hi, basically trying to stop letters and symbols being entered into my main function. For the menu section I used a buffer yet I try this with my function and i...
[no replies]
by oluwa
renaming z drive in Dosbox
 
DOSBox makes a virtual drive, which it names Z:, for storing utility stuff on. Clearly they're trying to stay out of your way, so you can do whatever you wa...
[1 reply] : http://superuser.com/questions/50524/renaming-z-drive-in-dosbox (by MiiNiPaa)
by oluwa
windows client with Y default disc.
 
I need windows client with Y default disc. thanks.
[no replies]
by sak
error with class
 
class machinex { public: int id; int type(bool x,bool y, bool z ); machinex (int y); } machinex.h:1:1: error: unknown type name ‘class’ machi...
[1 reply] : Compile the code as C++ instead of C. (by Peter87)
Pointers to array of structs
 
Hi everyone, I have an assignment where I need to use pointers to do a few things and I am a little confused on the syntax of it all. My question is how do you ...
[2 replies] Last: struct info { char firstName ; char lastName ; }; main() { ... (by MiiNiPaa)
Implement the quick sort algorithum using recuesive function
 
Hello, guys I have written this code to arrange user input array in an order. However, I am not able to figure the error on this code that i have witten pls hel...
[6 replies] Last: I debugged my code form visual studio and every time i run it value a... (by MiiNiPaa)
Issue with vector<vector<int>> sorting
 
Hi everyone, I have a vector which contains vectors containing 7 integers each. I'd like to sort these vectors based on the value of the first integer (int IO...
[7 replies] Last: For me it seems to work: #include <algorithm> #include <vector> #inc... (by closed account D4S8vCM9)
by Smac89
HELP!!!!!!!!!!!!!
 
for (int y = 1; y <= num; y++) for (int g = y; g <= num; g++) { std::cout << y << "x" << g << "=" << y << "x" << g << "=" <<y*g <<std::endl; }
[2 replies] Last: Can you not remove your question? (by Smac89)
A counter Help
 
/* not sure where I am going wrong on this counter which should count to microseconds! Anybody to help?*/ #include <iostream> #include <stdio.h> #include <...
[8 replies] Last: @Nyagaka Ouko I have really no idea what you're talking about. good co... (by coder777)
NEED HELP PLEASE Game Engine ASAP
 
Hello, i have recently made a small team for game developing (just like 6 of us, me and my friends) and we were trying to figure out a good game engine to be us...
[no replies]
by cnoobs
How to write a data loop?
 
I need to write a data input for one of my class assignment. Would this be considered a data loop? while (cin >> number) If not would someone post an exa...
[4 replies] Last: This is what I have so far int run(istream& cin, ostream& cout) { // ... (by cnoobs)
by Nonlin
Why won't it show a 3 for factors that have a 3?
 
Been coding all night so I'm about to sleep but this has been bugging me. My code shows the factors of numbers but it won't show a 3 when there is a factor ...
[3 replies] Last: OMG guys lol so simple. I guess it slipped by me. While I was trying... (by Nonlin)
February 2013 Pages: 1... 2122232425... 43
  Archived months: [jan2013] [mar2013]

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