Beginners - April 2011 (Page 33)

by ascii
dynamic arrays
 
for all of you who are familiar with C#, you know there is a class called ArrayList in which is a dynamic array is made that has no set size so you can add as m...
[4 replies] Last: thank you ;) (by ascii)
link list
 
// Bob Zambanini - Monday, March 14, 2011 - lab5_2.cpp \ #include <iostream> using namespace std; const short unsigned int NUMVALS = 10; struct ListNode { ...
[1 reply] : I haven't looked at linked lists yet, but by the looks of that, you're... (by Lynx876)
Using cin to define the size of an array.
 
Hello again, This following question is merely for my own gratification. I understand that the following code is illegal on many compilers and I was told so ma...
[1 reply] : Because automatic variables must have their size known at compile time... (by Bazzy)
Need help with C++ programming work
 
Hi, I'm new to programming and I'm doing a course in uni. I'm currently using "Dev-C++". I've been away on holidays and haven't been able to grasp the work we'r...
[5 replies] Last: Might be a whole class full of students, too. (by moorecm)
First try with serialization w/ boost library
 
Hi everyone, so my problem is with serialization and I am trying to implement this using the boost library. Background info: *Using Eclipse, but have netbe...
[8 replies] Last: Let's talk about the compiler for a second: GCC (g++). There are thre... (by moorecm)
cstring and pointers
 
ok after few times of testing i think i am a step closer check this out. #include<iostream> #include<cstring> using namespace std; int main(void) ...
[3 replies] Last: Then iterate with a pointer: for(char *ptr = temp[strlen(temp) - 1... (by filipe)
by pooshi
Cstring Question
 
I have a question about converting a Cstring into the right out put. I am working through this code 1 problem at a time. There is multiple other things I am goi...
[4 replies] Last: Thanks matsom for the help. (by pooshi)
XNA or SDL?
 
which one and why?
[2 replies] Last: great thank you (by bboy212)
meaning of error
 
whats the meaning of this error? 1>DrawText.obj : error LNK2019: unresolved external symbol "void __cdecl Draw_Fonts(float)" (?Draw_Fonts@@YAXM@Z) referenc...
[3 replies] Last: its now working, I just had to clean my solution after deleting void ... (by Blessman11)
How to create random routes?
 
Anyone heard of genetic algorithm TSP? I am trying to code it, but i am stuck on how to generate parents routes. It saids brute force in "http://www.lalena.com/...
[1 reply] : I just heard about the idea of the algorithm. I am curious... I don't ... (by chucthanh)
infinite sums
 
I am having an issue with coding infinite sums, here are my professor's instructions & the code I have so far: This problem is concerned with the area under ...
[4 replies] Last: ALSO: you may want to use the code tags so your program is easier t... (by Codefreak101)
by trig
scoreboard
 
Hi, I was wondering, what type of box or anything would you use for like a scoreboard. What i am trying to do is when a user does a gestures and board on the...
[1 reply] : I know that there are methods of making GUI's with normal C++ coding, ... (by Codefreak101)
i need to help for thise program
 
#include <iostream> using namespace std; int main() { double a; cout<<"Enter your numbers:\t "; cin >>a; switch(a) { case 'Fail':cout<<"Fail"; break; ...
[2 replies] Last: As soon as the code is posted I'll try to help, make sure that you use... (by Codefreak101)
c++ programming help
 
hey i'm new to c++ , i am making a program which uses switch case, can anyone tell me how should I code this switch part so that whatever choice I enter calls t...
[6 replies] Last: This is like the most basic C++ stuff there is.. I made a basic templa... (by TheNoobie)
by tonnot
How to define a function that have a pointer to an item of an array
 
I want to have some function like this: My_function (bla bla bla, pointer_to_an_item_array) I want to use "pointer_to_an_item_array" to store data Suposse ...
[3 replies] Last: Sorry, I didn't understand what you just said. If you are writing s... (by hamsterman)
by tonnot
How to pass string array 'on the fly'
 
I have a function Myfunction( string *data) And I want to call it using Myfunction({"hello","data"}) But I cant get it, I have code error. Any help ?...
[3 replies] Last: you could wait for the new feature of c++0x, template variadic gcc4.5 ... (by stereoMatching)
Iterating Through a Map Within a Map
 
I have a map of maps but I'm not sure how to iterate through the inner one. Here's what I have so far: The type: // It's a map...of maps. INCEPTION ...
[1 reply] : typedef std::map< std::string, std::string > inner_t; typedef std::m... (by jsmith)
by tonnot
2 dimensional sttring array, how to give data using {"",""}
 
I have string Mydata I want to do : Mydata = {"one","two","three","four","five"}; I cannot do this. ANy help ?
[2 replies] Last: Aha, what I feared.... (by tonnot)
Why is it rounding numbers?
 
This is my code: #include "stdafx.h" #include <iostream> using namespace std; int main () { cout << 5 / 2; cin.get(); return 0; } I'm...
[3 replies] Last: Thanks, I'm not that good at C++. (by airman9519)
Fixing pointer memory leaks...
 
I am learning about pointers and so far they really don't seem as complicated as everyone made them out to be. Actually I completely understand (I think).. //...
[4 replies] Last: Just to make it clear for any other newbies out there who might read t... (by jsmith)
April 2011 Pages: 1... 3132333435... 55
  Archived months: [mar2011] [may2011]

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