Beginners - April 2009 (Page 24)

Trouble printf'ing a string out of a structure.
 
Hi. I would appreciate it if someone of you guys could help me with this one. after building and running the program enclosed it doesn't say the name of the hig...
[2 replies] Last: It works, once you give the name a size. It's illegal to declare an ... (by giardello)
cours work (just have a look)
 
hi everyone i have a courswork and i start to write this Data Structure Create a data structure suitable for storing data for a list of appointments. Each...
[1 reply] : looks fine to me..functionality is distributed across functions. a ... (by writetonsharma)
how to get value from function
 
i wrote like this this is not giving me any error but ist crashing off course i know i couldnt pass the value from function to main. can any body help meee...
[2 replies] Last: thanks Gumbercules (by pczafer)
What's wrong with my code?!? (1,2)
 
Below, I have c/p my code. The program is supposed to input a folder name, and inside that folder there are two .dat files with an array of data in each that I ...
[29 replies] Last: Question for all with my code above. I have fixed certain things and i... (by satchmo05)
What is wrong with this code
 
Hi guys after doing some research thought I had finally got my program to count html tags correctly. However its not working. When the program is run, it a weir...
[2 replies] Last: Perhaps if you showed the entire program it would help. Can there be ... (by wretch)
Filling an array
 
My instructions are to create a data file with some test scores. The problem is I cant figure out how to get the input file to fill the arrays. Assume there a...
[10 replies] Last: Man, its always the small things that get you. Thanks for the help. (by ltrane2003)
mystring class getline() function
 
I've finished and turned in my myString class. The prof gave us a test harness to run against our class, so we can make corrections and turn it back in. Every...
[4 replies] Last: wooohoo, works perfectly! Thanks so much (by grcunning)
exception throwing
 
In the tutorial for exception, section "Exception specifications". It says int myfunction (int param) throw(); // no exceptions allowed int myfunction (int...
[4 replies] Last: Just FYI, exception specifications are stupid and there is little poin... (by jsmith)
Open C++ program with an external file
 
Howdy :) I am pretty much a beginner, and this is my first post. I am working on an encryption program that prompts a user to enter a password when they try ...
[5 replies] Last: I think would better creating your own extension, all files with that ... (by Bazzy)
How I gonna output file as txt file
 
#include<iostream> #include<fstream> #include<cstring> using namespace std; string s_title; int s_size; class File { public: st...
[1 reply] : So your program works fine but just saving the output gives problems? ... (by Umz)
using to lower to output edited html tags into new file
 
Hi making a program to detect html tags ( as well as other things) and then convert any tags that contain an upper-case character, to lower-case, then outputtin...
[4 replies] Last: eker676 has a great solution for the commenting. If you want the pr... (by Umz)
exception syntax
 
In the example, class myexception: public exception { virtual const char* what() const throw() { return "My exception happened"; } } myex; ...
[1 reply] : const char* is the return type (a pointer to char which can't be mod... (by Bazzy)
by wretch
trying to return char* not working
 
I know I am overlooking something really really obvious here, but I cannot figure it out... #include <iostream> #include <string> using namespace std;...
[5 replies] Last: The problem with arrays is that only the pointer is passed while the ... (by wretch)
by arshak
plz, write the .cpp
 
Hi everyone!!! I'm a biginner!!! I wanna write a program, that deletes a non empty folder (for example "D:\\my folder). Could u help me, plz???
[1 reply] : We can help, but we won't write your code for you. Make an honest eff... (by Duthomhas)
i`m very confused
 
hi everyone i was tring to write this pro but realy confused myself Write a program that reads an employee name, salary and allowances. The program should ...
[1 reply] : 1. anything you have that isn't code should be commented otherwise you... (by jaydr)
dividing by 0 problem
 
Why even if I placed the condition if (y==0) cout << "Error!"; my function keeps calculating the division even if it does diplay "Error!" as I want??
[3 replies] Last: continue getting the numbers until y is not equal to 0 ( do - whil... (by Bazzy)
getline - red new sets of data problem.
 
Hello there. I'm currently solving problem of parsing txt file. That file looks like this: Voltage 5 //ID Type Vn V Theta 0 1 1 1 0 1...
[no replies]
by aim25
Linking errors
 
I'm pretty new to c++, i got passed the basics, so now im trying a few new thing, but i keep getting errors like "LNK2028". What does this mean? P.S Im using...
[2 replies] Last: paste your full errors here, you are missing a .lib in linker options... (by writetonsharma)
FORTRAN number formatting with c
 
I want to produce number output exactly as it would be obtained from a FORTRAN program in scientific notation. If I have a number like 31.4159 the FORTRAN outpu...
[1 reply] : I don't know of any standard way to do this. However, you can sort o... (by Duthomhas)
Stack structure
 
Hi there, Is there any way to add stack a structure with puch command? I have some information like name sirname age school etc which user enters and I want ...
[1 reply] : Use a constructor eg: struct Info { string name; unsig... (by Bazzy)
April 2009 Pages: 1... 2223242526... 28
  Archived months: [mar2009] [may2009]

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