Beginners - September 2011 (Page 9)

by tonnot
Tha fast method to find a value inside data row, value ?
 
I have a data structure that stores values for rows. The rows are ordered, but not contiguous. In example I have 1,2,200,3000,3001,3002,8900,98700, etc. A ...
[2 replies] Last: If all you need to know is that 3001 is at spot 4 (i.e. the 5th elemen... (by Gaminic)
Spreading code over files.
 
Hello, Generally, my projects go into one large file. The few times it didn't was when I was using class-based things which make sense to separate and where ...
[2 replies] Last: Thanks, Andy! I know globals are generally considered bad programmi... (by Gaminic)
Invalid Conversion from "int" to "int"
 
I'm trying to copy an array to another array using pointers (Book exercise). It copies the first number, but not the other 9 in the array. Here is that code: ...
[4 replies] Last: Sure enough, it works now. Once more, I fail to notice the obvious. xD... (by Zexanima)
by Leon
Large Numbers
 
Hello Everyone. I have a problem here, I'd really appreciate if someone could help me. I need to find sum of 2 numbers. But as it appears this isn't easy. These...
[4 replies] Last: Thanks for the idea. It worked )))) (by Leon)
for into for into .... problem
 
I am trying to write a program that would read a matrix (size mxn)from a file, for example : 0000 0100 0000 0001 it makes an array and stores all those char...
[1 reply] : could somebody help me? (by KrixisLV)
How do i open a web browser in c++
 
im working on a program were it opens a certain web browser by the path like if a person enter the number 1 it will open c/programfiles/mozzila/firefox some thi...
[4 replies] Last: The answer is in the first reply, but I'll just write it here too. Th... (by Gator F)
please help (1,2)
 
i am very new to c++ and have grasped the concepts pretty well but im still struggling with a simple while loop. if someone could quickly proofread my work im s...
[20 replies] Last: alright im not gonna worry about it if it continues to bother me in mo... (by f1ddl3r)
by ko2dy
power of 3 sequences
 
hi, pals! do you guys know how to write a program that prints out a sequence of power of 3? the user input is the limit of the sequence e.g. : the input : 4 ...
[2 replies] Last: thanks it helped :) (by ko2dy)
by Emy217
Transition from C# to C++
 
Hi everyone. I learned C++ when I was in college but we switched to C# after the 2nd year. I pretty much remember how to code, that's not the issue. I'm tr...
[1 reply] : Nvm... found it. Solution 1 : That was a stupid one >.> Instead of b... (by Emy217)
Visual C++ 2010
 
hi guys busy watching the youtube tutorials on microsoft visual c++ i know it says its visual and watching the tutorial, i saw he was making a windows forms ap...
[2 replies] Last: thanks hanst99, so by using ms c++ visual 2010 im using c++/cli? and... (by sigintninja)
Error When I Run Code
 
Hello, I cannot seem to figure out what's wrong with this piece of code. It's not doing what I want it to do: steptwo: cin>> age; if ( age < 22) { ...
[7 replies] Last: Nevermind. I see what you mean. I entered a 4-digit number and it kep... (by Code Assassin)
List Issue
 
Hello everyone. this is my first forum post so i will try and follow the rules and make this as clear as i can. I am working on a list for school, and i ...
[2 replies] Last: thanks for the reply. i don't know why i speccified linked list, my b... (by Sghtblinder)
Comparing floats
 
Does anything appear wrong with the statement if(floatA>floatB)return; I keep getting an error: CUDALink has experienced an internal error The code is...
[1 reply] : Assuming floatA and floatB are both floats, there is nothing wrong wit... (by Disch)
Power Set
 
Hi, I need to calculate the power set of a set of a given numbers (not for a homework assignment). I found a piece of code online: #include <iostream> #...
[2 replies] Last: Also complies fine for me using g++ 4.5.2 on Ubuntu Linux (by Jimbot)
What do you think of my code?
 
This is my first program that is larger than 1000 lines. It works perfectly, but I'm fairly sure that it could have been written quite a bit better. What mist...
[3 replies] Last: Is there anything else that could be improved? (by blueeyedlion)
#define
 
What's wrong with #define? Is it considered bad programming to use it?
[4 replies] Last: Yes. Save macros for when you really want to abuse the code. Using the... (by Moschops)
Guess the Number
 
I looked at a few other guess the number topics on this forum but I couldn't find one that addressed my issue. So sorry for making another topic. This is a s...
[2 replies] Last: Thank You!! That fixed it. Thank you very very much! (by sixstringaddict)
MinGW and C++11
 
Which parts of C++11 does MinGW 4.5.2 support? Wazzak
[2 replies] Last: Thanks for the link, Sloppy. Wazzak (by closed account zb0S216C)
Identifier undefined- Please help.
 
I want to make a summary of the program I've made. And I need to call for the variable/identifier again to use them at the end of the program. But when I run th...
[1 reply] : The variable must no longer be in scope. The lifetime of a variable i... (by Disch)
by AJ7847
As a beginners
 
hi everyone when i ve been studying c++ Theoretical i wanna download c++ program witch one i should get as a beginner as u know there is too many borla...
[11 replies] Last: ok .... (by AJ7847)
September 2011 Pages: 1... 7891011... 48
  Archived months: [aug2011] [oct2011]

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