Beginners - August 2010 (Page 14)

probles with displaying sentences in richTextBox
 
Hi ppl, I am new here, i just start learning. I've got problems with (my english and) my program!:) I made menuStrip and there are several submenus. I want to...
[2 replies] Last: ok thx:) solved! (by alwayslags)
a problem of mutual type reference
 
I met a problem which has been simplified as follows. #ifndef A_H #define A_H #include "B.h" class A { public: struct C { }; B b; }; #endif...
[6 replies] Last: class B; class A { B *pb; }; class B { A *pa; }; but ... (by wenqiang)
repetitive loop
 
How do you encode a program which would result to this: 1 22 333 4444 55555 4444 333 22 1
[2 replies] Last: i think you can write a recursive function (by wenqiang)
Declaring custom struct in vector array
 
I need abit of help creating a vector array which can hold references to the custom struct type. It's proving tricky also as it is defined in a class. //C...
[1 reply] : Compiles fine with me on Dev. (by mcleano)
Space optimisation
 
Hi I am writing a program for a variant of LZW. I have implemented the algorithm correctly but the compression rotio is not good and some times it is incresing ...
[1 reply] : I've not catch your idea, but I did some optimization with backward co... (by Denis)
by lajos
Choosing x numbers randomly from a list
 
Hello, I have to program a little algorithm, where: input: int array[1,2,6,34,7,23,54,33,98,13] (the input is an array, with x random numbers) output:...
[4 replies] Last: hello, thanks for your answer, but unfortunately my english is not eno... (by lajos)
What is wrong with this code?...
 
I JUST started using C++. I was making this questioning program where it asks you for your name and favorite food. It seemed to all work out fine without the e...
[11 replies] Last: this "[" not "< "sorry (by Mazd)
functions in switch statements?
 
hey guys im trying to activate a function from a switch with errors any ideas? [steven@localhost cpp]$ c++ ftools.cpp -o ftools ftools.cpp: In function ‘i...
[5 replies] Last: i did double check my training book and you were correct must having c... (by pizzaboy150)
Can you put void after main?
 
Hey guys. I was asked an apparent simple question asking me to write a program that multiplys the users inputted number by two. Well, obviously this is hard...
[9 replies] Last: Okay thankyou very much! (by RialnisMada)
pause () fuction (1,2)
 
Before you jump on me about the numerous ways to pause a program at the end with cin.get (), or the system ("pause") method, I will tell you right now that I'm ...
[23 replies] Last: @Randon Noob: so right!!..... (by DemienBjarne)
Testing a field made capital
 
Here's what I"m trying to do. I want to have the user input a letter, y OR n. I then want to put a 'tolower' statement in there so if the user puts in a Y or ...
[6 replies] Last: See, that's where I was going wrong. I was seeing examples of strings... (by Random Noob)
inventory system into a header file
 
hey guys, im working on a inventory system for a txt based rpg and i have a system but it's in the main function... what i want to do is put it into its own.cpp...
[4 replies] Last: yeah i can make it into a class i just want it to work. w/o having to... (by L E G I O N)
Multiple/Chained class templates
 
I am using class templates for a generic doubly linked list... I need to instantiate something like LinkedList<Node<int>> list; - but get unresolved extern...
[10 replies] Last: Wow, good point.... this is much easier, conceptually. So instead ... (by closed account Lv0f92yv)
scope confusion
 
Basically what I need to achieve is to create an array that inputs a puzzle from file. Problem is my previous attempt in last semester had the teachers jaw drop...
[7 replies] Last: oh yeah I knew that *sort of*, that's a little different to how I inte... (by gcampton)
overloading the == operator
 
Hello again, i'm having problems overloading the equals == with the following code, Can anybody help with where i'm going wrong?? class lineType { ...
[2 replies] Last: okay, i see it .. must have stared at that for ages..!! ,thanks (by Mike200)
Arrays storing data to be eliminated?
 
I wondered if it was possible to store data in an array so that a program could search through the array and NOT use certain data if it has been used before. Fo...
[7 replies] Last: Ugh, use a struct instead of a 2D array: struct Entry { std... (by jsmith)
by Veight
Setting ints (1,2)
 
I am currently re-learning everything about coding. (haven't done it in 3 years) Anyways, as I am working on problem 2 @ projecteuler.net I am having a problem...
[20 replies] Last: I've noticed that if(){} statements seem to only execute once if they... (by R0mai)
by giso
++*p: does this code sometimes work differently in cout? why?
 
foo1(){ int x=4; int *p = &x; cout << ++*p <<endl; } foo2(){ int x=4; int *p = &x; cout << *p++ << " " << ++*p << endl; } foo3(){ int...
[2 replies] Last: Note that *p++ is not the same as (*p)++, but *(p++). The same doesn't... (by helios)
Template specialization error
 
Hi, I'm currently working my way through "C++ Primer Plus 5th-Edition" by Stephen Prata. However, I'm stuck on Question 5, chapter 8. I can't seem to get th...
[8 replies] Last: The point is that if you have this template <typename T> T maxn( co... (by Skillless)
What does ^ do in c++?
 
What does ^ do in c++?
[3 replies] Last: In C++/CLI Programming, it is called tracking handles String^ ... (by blackcoder41)
August 2010 Pages: 1... 1213141516... 28
  Archived months: [jul2010] [sep2010]

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