Beginners - March 2011 (Page 26)

by mowie1
hot topic testing problems
 
Can some one help .....I am solving a sudoku puzzle this is the .cpp file int row ; // the row that is forbidden int col ; // the column that is forbi...
[2 replies] Last: STL so I am multiple files that are just not shown. There are four fil... (by mowie1)
by snakec
making header files and library in c++
 
hi everybody i m writing a simple function void show in c or c++ here is the the definition of the function void show() { cout<<" hi this is test"; } i...
[2 replies] Last: Use the first method. The second one may lead to multiple definitions... (by moorecm)
halp with stricmp/case insensitive strings
 
HAI! I'm having a problem with comparing case insensitive strings. I tried using stricmp. but it says it was not declared in the scope.. Would it be better...
[1 reply] : Got it, just made my own function. (by strongdrink)
by TNT
A practice need to be solved
 
There are three options available to the user: 1) Add two numbers 2) Add between two to five numbers 3) Quit When the user selects the first option ...
[1 reply] : Whats the question? :P (by strongdrink)
by buenas
arrays, pointers, and i/o files
 
I am completely new to c++ and dont understand why this program wont let me put in any data. I looked around and I believe I need to use arrays and pointers bu...
[1 reply] : char getName() { char name; cout << "What is the filename of the gr... (by Breadman)
accessing linked list members
 
How can linked list members be accessed? so far I've got this code. #include "stdafx.h" struct Slinked_list { int iVar; char * s; Slinked_list * n...
[5 replies] Last: Consider a to be element 0, then d is element 3. Slinked_list* iter ... (by closed account D80DSL3A)
passing by reference const
 
how do you pass by reference without altering its contents. So far I realized that putting const can alter its values but not the reference
[3 replies] Last: Yes. If a function f() takes a value x this way: f( const int& x )// ... (by closed account D80DSL3A)
Strange things with output
 
Kinda simle code: int main (){ char c; while ((c=getchar())!='\n') { cout <<c<<endl; } return 0; } After run it gives me the follow: roman@a...
[4 replies] Last: thanks a lot, try with c as int and EOF works fine! (by janibeg)
newbie (1,2)
 
hello, i am a newbie who doesn't have any programming experience. i heard that python is great to start with, but i prefer to begin with c++ because it's known...
[22 replies] Last: I felt the same way when I started....Though some people just can't ha... (by spoon licker)
by vlad61
default links and libraries
 
I Think i may have fucked up my default codeblocks links to the standard c++ libraries when following lazyfoo's tutorial. How do i get them back? Same way i lin...
[13 replies] Last: hmm yeah i dunno.. ill try doing it from another computer.. but im thi... (by vlad61)
by trig
Selecting certain parts of a image
 
Hi, I have this problem, i am uploading a .PNG image file and want I want to be able to do is to get my program to select certain parts of the image by it se...
[1 reply] : You most probably need an image processing library, this one comes top... (by matsom)
by jonsto
write a program that converts a hex string into a decimal integer (1,2)
 
I was hoping that someone could show me how to convert a hex string into a decimal number. The book I'm using to teach myself says I need to Implement the pars...
[22 replies] Last: does this code look right for the binary to decimal conversion? #incl... (by jonsto)
Noobish help needed but anyways
 
I'm completly new on c++, recently on my college I got this class and now I need to do some homeworks...so, here is what I need to do: On start u enter three...
[3 replies] Last: take a pencil and paper and figure out how you can disect the number 1... (by vlad61)
Array class question
 
Ok, so I have this function mystery, int mystery(int n) { if ( n == 0 || n == 1 || n == 2) return n ; return (mystery(n-1) + mystery(n-2) + mystery(...
[1 reply] : 1. A big one. 2. Many. 3. Many. For 1) just compile the function and ... (by hanst99)
unresolved external symbol
 
Hello everyone, I need to make a program that computes the integral of a normal distribution using the trapezoidal and the simpson method. This is what I've ...
[3 replies] Last: The problem is your constructor doesn't do anything yet. To be honest,... (by hanst99)
-> operator
 
My class defines a functions: BOOL Initialize(int iCmdShow); and uses it in the following way: // Initialize the game engine if (!...
[5 replies] Last: // Call the GameInitialize function. If it returns // true, then... ... (by hanst99)
operator overloading
 
I have some questions with no better place to get answers from here? 1-why static functions aren't used with operator overloading despite they are working wi...
[7 replies] Last: cin>>x>>y>>z; Is the same thing as cin>>x; cin>>y; cin>>z; Becau... (by hanst99)
Bidimensional Arrays
 
How do I return a bidimensional int array, like int array , from a function?
[4 replies] Last: Ok, thank you. I ended up modifying the code to a 1D array, thanks to ... (by Tarou San)
Creating a windo
 
Hey! How do i create a window? im getting tired of these console applications....lol. I know in lua, its only about 6 or 7 simple lines. Thanks!
[2 replies] Last: And probably not in 6 or 7 lines. Well, maybe with Qt or something, I ... (by hanst99)
extremely local variable, or not?
 
I've just been wondering, if I do: if(rand() % 3 == true) { // make w super-local by using a brace, yes for(int w = 0; w < 4 ; w ++) ...
[3 replies] Last: Firstly, may I ask exactly what an 'extremely local variable' is. I ha... (by anonymous23323124)
March 2011 Pages: 1... 2425262728... 52
  Archived months: [feb2011] [apr2011]

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