General C++ Programming - December 2014 (Page 7)

by Xhobi
Columns and Rows in text file
 
Anyone please tell me how i draw such a thing in .TXT file using file handling. This output must be in columns and rows and in well arranged form. No. Nam...
[3 replies] Last: something like this: #include <iostream> #include <fstream> using nam... (by jasonwynn10)
Setting the value of a key in a plist with PlistBuddy
 
I made an application which is picking up an integer value from the user and as per that value, the 'StartInterval' key in the plist needs to be updated. If I s...
[no replies]
arrays and pointers
 
I need to use dynamic memory allocation and use pointers to iterate through the arrays that I have already in this program. I am lost, nothing I do works and I...
[1 reply] : Well first of all, I don't see any usage of the pointer operator * . ... (by poteto)
problem with value changing
 
i have all the variables initialized and every something that's going wrong is that once planetN goes through the switch case when i try to run planetN again th...
[1 reply] : Show all the code? And format it . (by poteto)
by Xhobi
Need Help
 
#include <iostream> #include <fstream> using namespace std; int i; float x; struct student { char name ; int regno; int phy; int math; int cs...
[3 replies] Last: Thank you very much #minomic. I have with it. (by Xhobi)
by cosmos
i wanna know what's wrong with following code
 
namespace my{ template <typename Itr> void sort(Itr,Itr); template <typename Ran> void sort_helper(Ran beg, Ran end, std::random_access_iterato...
[1 reply] : namespace my{ template <typename Itr> void sort(Itr,Itr); ... (by JLBorges)
about pointer structure
 
Hello all i am kinda confused about some segments of code that involve structures what does it mean if a programmer writes the following struct linked { ...
[2 replies] Last: linked *some; References another struct of type linked . linked s... (by tcs)
by Triguy
Getting a file into a double array?
 
The assignment is to create a program that lets users reserve a spot on a plane either in coach or first class. I'm supposed to create a .txt file to use as the...
[5 replies] Last: Ahh I get it now. That makes much more sense. Thank you so much for yo... (by Triguy)
How can I make a cmd window pop up when I open a game.
 
Hi I wanna know how to do so a cmd window when you open a game. Example: when I start cheese attack (just a name I like) then a cmd window come up, how do I...
[1 reply] : system("/usr/X11R6/bin/xterm"); // Change path if it doesn't fit yo... (by tcs)
How i can call function in another source file
 
//Grades.h #ifndef GRADES_H #define GRADES_H #include <iostream> using namespace std; class Grades{ public : int grades; int studentNo ; in...
[1 reply] : I don't really understand your problem. Would you please describe it a... (by tcs)
by WAKS
How to make a rectangle selection tool?
 
Hello! I'm working with a game editor program, where the player can create their own maps. Right know I'm working with collisions, and since it's unpredictable ...
[4 replies] Last: @zoran404 Thanks, It works perfectly :D (by WAKS)
Unhandled exception at calling overriden function
 
Hi! I can't even make a guess what could be the problem here. I think it is easier tho show a video: https://www.youtube.com/watch?v=XNGj-KGIOW0&feature=youtu.b...
[3 replies] Last: @cire, op: I couldn't identify anything on the video. It was very clou... (by tcs)
How do I make a script to a dll? And more.
 
Hi I'm new here and I don't know where I suppose to post this. Anyway I need help, I'm new in c++ and I wanna know how I can make a script and make it to a d...
[no replies]
learn visual basic while i know all basics of c++
 
I found that using visual basic it is quiet easy to make a program look good. More over make them a gui, while learning c++ for windows (WIN32 API) has quiet a ...
[3 replies] Last: I would say it is worth it. VB isn't that difficult. It's fairly peda... (by Duthomhas)
Is there a way...
 
Is there a way to change the Font size using code?
[5 replies] Last: Ok, Thanks! (by jasonwynn10)
help
 
I have a question i need help 1\write a c++ program to count no of letters in a given line 2\write a c++ program to calculate employee salary validat...
[7 replies] Last: 5% is not .5 for salary above 5000 a HRA is 5% of basic salary b. ... (by wildblue)
How to code a dialog box
 
I want to make a programs which creates a dialog box and shows it to the user. The dialog box should not be pre-loaded, here's an example: cout << "Button a...
[1 reply] : Are you talking about GUI (Graphical User Interface)? Then you should ... (by minomic)
Outputting First Word of each Sentence - Strings
 
Hi everyone. I have been trying to get this to work for a while now - with no success. Basically I am trying to write a function which the returns the fir...
[1 reply] : Maybe it has something to do with the fast that you never change the v... (by zoran404)
Sniffing localhost network traffic
 
I've coded my sniffer using raw sockets and promiscuous mode, it works fine, sniffing all incoming and outoging traffic. However, I want it to be able to captur...
[no replies]
by jcoach
Syntax error 'return' etc...
 
Sorry if this question will be answered with a trivial solution, but I really can't work it out. I'm developing this console application with VS2010 on a 32b...
[5 replies] Last: For future reference, I found the issue: I copied two lines of code fr... (by jcoach)
December 2014 Pages: 1... 56789... 31
  Archived months: [nov2014] [jan2015]

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