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

function declaration usage in multiple files?
 
Hello everyone. I am having issues with using a function within two c files that is declared in a header file. Here is basically what I am trying to do. mai...
[3 replies] Last: Here is my exact error: /home/elijah/code/chip/src/block/blocks/playe... (by strongdrink)
Urgent
 
Whats the difference between structures and classes (other than the privacy factor for the member variables of classes) when we can do same things in both ?
[9 replies] Last: Why not both? Especially if you use something like Doxygen. (by closed account 1yR4jE8b)
need clarification with class memory structure
 
To my knowledge the size of the object is the sum of all the variables declared in the class which i get correct when i just have a an int as following class ...
[3 replies] Last: Thanks guys ... appreciate it (by babbarbhangoo)
XML generator
 
Hi. I want to create a simple xml generator.(I don't want to use 3rd party codes) I created the code below: #include <iostream> #include <fstream> using n...
[11 replies] Last: I haven't used C++ to do XML, but I did have fun playing with outputti... (by BHX)
Microsoft® Visual Studio™ 6.0 Compilation Strange Scenario!
 
I am working on my C project using Microsoft® Visual Studio 6.0 and used to build it properly within IDE. Build page tab used to show me the Compiling .. .c fi...
[2 replies] Last: I have set the warning level to 3. While compilingi n cl.exe window I ... (by rapoluus)
by noa
data output
 
hello, I want the data output in the following form: 1E 14 F5 E4 40 0E 04 6F ....@..h 00 08 DA 61 36 47 F7 6F ...QVgg. 00 E0 FF ... co...
[1 reply] : Looks to me like you actually mean you want to open it in a hex editor... (by Moschops)
What code do I use to count the characters and lines in a .txt file?
 
Here is my sample text file (love.txt): I love you all day and all night forever and ever. Here is my program. I HAVE to create a separate function that coun...
[1 reply] : Try using getline() in a while(inFile) loop to store each line int... (by soranz)
Assistance With Cell Phone Program
 
-
[4 replies] Last: @h3lpm3p1z I don't remember ur program.. (why did u delete ur original... (by soranz)
Why isn't this working?
 
void bookType::setAuthor(int authorCount) { string name; cout << "Enter the name of the author and then press enter." << endl; for(int i ...
[3 replies] Last: Hi There seems to be lots of code missing here, so I can't really com... (by Anomanderis)
help pls as soon as possible
 
hi guys, so i am using this code to write to and read from a txt. file but when i write it shows me only the first word while the rest gone. when i write connec...
[5 replies] Last: I don't want to read the code in the original post because I'm lazy an... (by Disch)
How do I open a user's file in C++? What is wrong with my code?
 
First of all I NEED to make a function for this program to open the file & I'm supposed to pass the variable by reference. If the user inputs a filename that i...
[1 reply] : You missed the & in the function declaration. void readFilename(ifstr... (by Peter87)
by arao6
Comparing a string to many strings?
 
I need to compare one string to nearly 60 other strings in real-time. Right now I'm doing this: if (str.compare("somestring") == 0) DoSomething(); el...
[6 replies] Last: The strings are being compared in the graphics thread in a game. In... (by hanst99)
attractions in C++
 
so i am done with my project. it is very long. now i want to add some attractions like colors and so on i want my program to look attractive but i dont know ...
[3 replies] Last: GUI = graphical user interface. Pretty much every application these da... (by ResidentBiscuit)
3D arrays
 
Can anyone please tell me the method of declaring a 3D array ?
[4 replies] Last: ok.. thanks.. (by Mina Khalid)
Problem Reading a file?
 
Hello, i am trying to read a file that contains Unicode Characters.. char * buffer; long size; ifstream infile ("old.exe",ifstream::binary); ofstream ou...
[13 replies] Last: should i use size() or length? Both do the same thing so it doesn't ... (by Peter87)
Can't Identify Errors. Input/Output files
 
Guys , I need help again. My lecturer gave me this coding and want it to work. I don't know what the errors are. First I created a text file named testfileio...
[1 reply] : 5 16 G:\Assignment 3 programming\testing.cpp '::main' must return... (by Moschops)
pls help me
 
hi guys, so i am using this code to write to and read from a txt. file but when i write it shows me only the first word while the rest gone. when i write connec...
[8 replies] Last: thank u all this is what i am looking for i got it from cplusplus sit... (by Adam2012)
using PHP with C++
 
Hi all, I am currently writing a program that collects a few pieces of information in c++ then sends that data into an online mysql database. I am struggling ...
[1 reply] : yes, you can send an http request to the server with this variable. It... (by coder777)
Clean ever time before build
 
Hi, I am working with Eclipse and have two projects. 1. Shared Library 2. Program that uses the library Every time I make a change in the library, i hav...
[1 reply] : 1- You are not linking properly -fPIC http://tldp.org/HOWTO/Program-... (by ne555)
by UldisK
Initializer list with enum class
 
So the code does not compile because of cmd::a in the initializer list. How should one solve this? #include <initializer_list> #include <vector> enum ...
[3 replies] Last: Thanks for the answers. I think I will go with Peter's answer as i won... (by UldisK)
September 2012 Pages: 1... 2122232425... 32
  Archived months: [aug2012] [oct2012]

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