General C++ Programming - January 2012 (Page 23)

by zChops
pointers
 
I'm in my second semester of c++. We have just finished up with pointers and I'm very confused as to why I would use a pointer than to just use a normal variab...
[8 replies] Last: References are second names for existing variables, even though they a... (by LB)
by ptm
getting a line from a file with cstdio
 
Hi, I am trying to extract a line from a file with some cstdio function, and seems that there isn't a function that directly gives you the line unless you...
[3 replies] Last: You have to build something equivalent in C. You can use the GNU Readl... (by Duthomhas)
by Smoke
Adding Compiler Definition in Eclipse
 
Hi, I am using Eclipse 3.7 and would like to add the following -DUSE_GMP to my compiler options the makefile for the program is automatically generated. Are ...
[2 replies] Last: Thanks it worked (by Smoke)
Singly Linked List in C++ help???
 
i have sorted singly linked list but my problem is starting after it.i have to print the info within the range defined by user input.i tried i little but i need...
[4 replies] Last: [quote=LB]As for how to access the elements in a range, iterate the li... (by LB)
Decrypt in Simple Transposition in C++?
 
how to write "Hello world" in c++
[1 reply] : Just undo the actions you did in reverse order. Don't they teach these... (by LB)
Can somebody halp me with my assigment?
 
I have to make a program that will save my favorite phone brands. I have to use the pointers and structures.
[3 replies] Last: well start by defining application entry point: int main() { ... (by codekiddy)
by JAM96
Need Help Converting a string into an int
 
Hey I am very new to C++ and I have been doing some tutorials about it and then i decided I will try and make a calculator in c++ In the code below i want th...
[12 replies] Last: HI codekiddy .. you are right . .. but i just wanted to give JAM 96 t... (by bluecoder)
Adding elements in to a vector
 
Hi, I am trying to write a simple program where trying to push_back the elements in to a vector.I am getting an error in the vector file: bool _Inside(const...
[3 replies] Last: Insufficient information .. past your code . (by bluecoder)
[C++] One Star Symbol And A pointer to A pointer(Hard Questions) (1,2)
 
Hello all! Please tell me why... Here are my questions: #include <stdio.h> #include <stdlib.h> int main(){ int **p = NULL; printf("%d\n", *p);...
[23 replies] Last: Thank all of you! (by make026)
bitset..
 
Hello all, I just so happened to stumble upon the 'bitset' class. Would it be worth it to store definitions of bitset values if there are many bools througho...
[2 replies] Last: true true, I was just thinking it would look more natural of it didn't... (by strongdrink)
find the boundary points to find convex hull
 
hello,guys. I am still new in programming. I am now doing an assignment about convex hull. I have to find out the boundary points in the given text file. I have...
[4 replies] Last: you can also do it as .. for (int j = 0; j<obj->NumTri;j++) ... (by bluecoder)
Interact with another program
 
Hello everyone, I am in need to write a program that will interact with another program, the project is to analyze chess games using a chess engine. I do not...
[5 replies] Last: The UCI protocol requires communication via stdin and stdout. (by JLBorges)
by dancks
need advice designing game v.inheritance
 
ok. I finally got working a game with 2 tanks, movement, etc. Right now its little more than bumper cars. Now I need to add the ability to fire and destroy tank...
[1 reply] : Is this an isometric game? As for inheritance, you'll have to look ... (by hamsterman)
by arooj
Palindromic numbers
 
i have to write an application to find the smallest palindromic numbers made from the product of three 3-digit positive integers that have even and odd numbers ...
[1 reply] : This code shouldn't work. test == buf will never be true as they are... (by hamsterman)
Uploading files to ftp server
 
I am trying to make a program, that uploads all files in directory to ftp server, but there is a problem. I can't get files from subdirectories. Here is what I ...
[1 reply] : Nesu naudojęs dirent.h, tad nelabai galiu padėt. Pabandyk vietoj jo... (by hamsterman)
Email program: 'AF_INET' : undeclared identifier
 
Hello I've found this e-mail program, but I get a weird error. http://www.codeproject.com/KB/IP/smtp_ss...fr=1#xx0xx (source code in top of page) The...
[1 reply] : That link is broken. Could you fix it? Aslo, see http://msdn.micros... (by hamsterman)
URLDownloadToFile problems
 
I've gotten the URLDownloadtofile command to download webpages to text files no problem. But the problem exists on webpages that contain html code such as: ...
[8 replies] Last: If I were to be seeking a C++ method by which to download a web page (... (by dalydir)
Rewind a ifstream file
 
Hi people, i have this code #include<cstdio> #include<cstdlib> #include<iostream> #include<string> #include<fstream> #include<iomanip> #incl...
[2 replies] Last: > i am trying to rewind the files called t and r, because funcion comp... (by JLBorges)
random number in a certain range
 
Hi, how do I generate a random number within a range? Specifically, I want b/t 0 and 20. I know this much: #include <cstdlib> //need this to use rand() I...
[4 replies] Last: For getting a different sequence of pseudo random numbers each time th... (by JLBorges)
by xNovak
Simple Programming Task
 
I saw a practise task on a website or forum somewhere yesterday and thought I'd give it ago tonight. It basically functions as a cashiers till, where the user i...
[8 replies] Last: what is the code you have written for the validation part. Are you en... (by bluecoder)
January 2012 Pages: 1... 2122232425... 36
  Archived months: [dec2011] [feb2012]

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