Beginners - December 2009 (Page 5)

Recursivity
 
What is the function of this property? And may a example please be provided.
[6 replies] Last: No, that doesn't work because functions are not just parentheses. They... (by Zhuge)
running time of algorithm
 
Hi. I need a program solving the running time of depth first search algorithm..I'm trying to solve it but its hard for me to come up with the solution. Is it p...
[no replies]
Problem with a program.
 
I am new to C programming and am having a problem. I will paste the code then explain the problem. //Kelly Qualls #include <iostream> #include <string> ...
[4 replies] Last: Thanks. Got it all worked out. Everything is working. Sorry for asking... (by klq9386)
What's wrong!!!!!!!!!
 
I made this source-code but i can't run it: #include <stdio.h> #include <string.h> void reverse (char *s) { int c,i,j; for ( i = 0 , j ...
[3 replies] Last: I think you need to back up a bit and start with the absolute basics. ... (by Return 0)
task of C + +
 
Here's what the task: 1.Establishment a list arranged in ascending order elements (introduced in random order) and display the list screen. 2.Delete of a user...
[2 replies] Last: thanks for your help (by lubolalev)
Reading/Writing from a "text" file
 
As the title says, I am attempting to write a program that does this for a specific set of files. The problem is that these files are not basic text files. We...
[1 reply] : Here is a start http://www.cplusplus.com/doc/tutorial/files/ I w... (by btripp)
use words in variables?
 
Hello, I just started programming a few days ago, and I am desperately looking for an answer to my prayers! :P How do I use words in variables? I can only d...
[8 replies] Last: Thank you very much Return! I will look into that guide asap :) (by BettyBoopTS)
If statement (1,2)
 
How could I write this as one logical extended if statement? I am confused on this. Thanks. if ((age >= 18) && (age <...
[31 replies] Last: <-making up new terms daily cause helios says his iq drops 2 points ev... (by BettyBoopTS)
installing packets
 
Ok so im not exactly new to programing in c++ but i have never installed any of the extra packets independent developers have made, such as gmp and flint (im us...
[no replies]
using functions from different files
 
need some help... i have a .h file (related to a certain .cpp) containing inline string GetPathToFolder() {return myFile->GetPath();} this file works ...
[1 reply] : If you need to call GetPathToFolder from a cpp file, include the heade... (by Bazzy)
working directory / file copying
 
hi! need some more help is there an instruction to get the working directory -I mean the directory in which the program is to be executed-? thank you!
[10 replies] Last: the +1 in newname is because the name of oldfile is sthg like XXX-YYY.... (by rompecabezas)
by meer
increment of data-member in read-only structure
 
Hello and thanks for taking the time to look at this. The following code is part of my class definition and implementation. // Definition Private: in...
[5 replies] Last: also, you're corrupting the heap. You're not allocating enough space ... (by Disch)
copy constructors with overload assignments
 
So Im reading a chapter in Beginning C++ Game Development and got stuck on a chapter. The chapter goes along with talking about classes and using copy construct...
[9 replies] Last: a copy constructor is a constructor that creates and object, and rathe... (by btripp)
by rhcr56
a once running executable is now not running
 
I am trying to read the first five lines of a CSV file and write to the screen. The following code was written last week and it compiled and ran correctly. Th...
[2 replies] Last: I don't understand why you are using c++ style headers but c functiona... (by kempofighter)
by wretch
VC++ OpenGL "glut32.dll" not found
 
I am trying to run a simple OpenGL program as a "C++ Win32 console application". I have a folder with glut.h, glut32.lib, glut.def glut32.dll and I specify thi...
[1 reply] : Windows looks for executables and DLLs, first in the working directory... (by helios)
Identifying variables!!! (1,2)
 
I'm working on a practice problem and I want to know if I have the right variables. here's an example!!! America’s National past time is Major League Base...
[23 replies] Last: I'm guessing he means standard... Anyway, back to tf2. (by chrisname)
Returning an array of characters to a function
 
int main(char* pInput) { userInput(); char getInput = *pInput; braceCheck(getInput); }//end main char userInput() { char checkInput ; cout<<"In...
[2 replies] Last: You need to perform a google search on this topic. You should not be ... (by kempofighter)
Question about some matrix - vector functions
 
Hi everyone, I'm a neofite in C++ by work and I've some questions about functions concerning Matrices and Vectors. Let V be a column vector of length nV (i.e...
[no replies]
by Kuzco
Should I learn GDI or GDI+?
 
Hi there. I want to learn how to create windows GUI, so I've started reading Programming Windows 5th edition by Charles Petzold. I could not find a newer book...
[8 replies] Last: Petzold followed by Richter*. You will then have a good foundation to... (by closed account z05DSL3A)
by gbpic
Strange pointer aliasing problem
 
I'm learning about pointers and structs, so I wrote a little demo program. I'm compiling my code with the GNU G++ compiler. I have a struct that looks like t...
[5 replies] Last: Thank you very much. (by gbpic)
December 2009 Pages: 1... 34567... 23
  Archived months: [nov2009] [jan2010]

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