49,761 Topics
| |
ok,i'm suppose to read all the "CP0X"(where x is a number) from a file and save it into a array.Then read the name(the YYYYY,ZZZZZ,etc) and save each them into array. Example: CP01 YYYYY CP02 ZZZZZ CP04 WWWW CP01 RRRRR CP03 UUUUU . . . CPO2 TTTTT So....i did this for(int … | |
| |
Why is VC++ 2005 beta2 telling me this and how do I solve it. .\Test2.cpp(42) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Please note that this problem does not exist … | |
I am trying to build a scientific calculator. However, I have two major problems. 1. The decimal to separate the tens from the tenth 2. Modulus which outputs the remainder of the division of two numbers. Remainder = dividend – quotient * divisor; I can get the rest, but I … | |
i tried to run this program but it comes up with the windows 6th grade algebra quiz has encuontered a problem and has to close message can anyone help? here is the code: [CODE]#include <fstream> #include <cstdlib> #include <iostream> #include <stdlib.h> #include <time.h> #include <string> #include <conio.h> using namespace std; … | |
I have a strange number input problem. I am scanning in numbers from a file, like so: [CODE] While(bla){ double temp; minmaxFS >> temp; //do crap } [/CODE] And it works fine until it reaches a number like: 8e-05 (A non-decimal exponential number). Then, it just hangs up and scans … | |
| hello everoyne, I am nu 2 this so pleaz b kind. I need 2 make a program which does the factorial. But i not no how to do this. It is urgent so if you could help me i would be greatfull. God bless. i have this so far. [code]#include<iostream.h> … |
i'm new to c++, i was wondering if somebody could clarify something for me about encapsulation, for example if you have 2 classes [code]class Music { private: int a; public: int b(); int C(); }; class Record: public Music { private: char c; int a; float b(); protected: int d(); … | |
hi all, im trying to find out how i can move a file to another location in c++. Is there any kind of function or way i could do this. Ive seen before someone using the system() function to use command prompt style commands like system("cmd,command"); or something like that … | |
Hi i have c++ as a class and decided to do a tic-tac-toe for fun at home. Um I've only been in it for a week. anyways here is the coding so far: [CODE] #include <iostream.h> #include <string.h> #include <math.h> #include <iomanip.h> #include <conio.h> #include <stdio.h> main() { char a1='-'; … | |
Hello... Any idea how to write this in C++ code.... A parking garage chages a $2.00 minimum fee to park up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour … | |
Hi, I am struggling with c++ linking problem in Linux... The C++ code has MATLAB engine inside, and it has no problem when compiling under Windows(same MATLAB version, MATLAB 6.5R13), but it can not be compiled with Linux, I always get the following error: [code]/usr/bin/ld: warning: libstdc++-libc6.1-2.so.3, needed by /s2bin/matlabR13/bin/glnx86/libmx.so, … | |
Hello there I'm a new member of this board. Can anyone explain me on some example what callback functions really do? I found one tutorial about function pointers where concept of callback function is introduced but I didn't find it suitable for understanding. Can anyone exaplain it in simple terms … | |
What I want to do is pass a function to a function. The function that is to receive a function is a recursive function. It is to call the passed function. I have a short (one page) example of this in my book but that is it and I can't … | |
hi i need to make a homework helper for 3 equasions 3 unknowns that will ask me what the equasions are and calculate what the unknowns are i thoght i would ask what the first char was a number or a letter and if it was a number it would … | |
hi guys i really need your help about my project.... my project goes like this.......CREATE A C PROGRAM THAT WILL ILLUSTRATES CPU SCHEDULING ALGORITHM TECHNIQUES IN GRAPHICS AND PULL DOWN MENU MODE.... IM hoping for your reply soon... thank you in advance....God bless you all.... :cool: | |
when i was programming in java i had a program into which you enter class names and methods and how they connect with each other, and it builds a shell of the program for you. i cant remember what its called but is there anything like this for c++? | |
Hi, I got a program and I am finished except for the last portion of the program. It is where I print the final seating chart. Can you help? Here is my code: [code]#include <iostream> using namespace std; const int NUMROWS = 7; const int NUMSEATS = 4; void initPlane(char … | |
alright say i have a data file i want to open up and extract the data into a binary tree... i do this to open the file: [CODE]binaryTree::information() { ifstream file; file.open ("proj4.dat"); }[/CODE] although ill have more in that after i learn how to do it.. and i have … | |
Hello Guys, I want to make a Memory Management Utility very similar or like adobe photoshop preferences section.in which user can select a ram he want to use for particular application. as in photoshop user can select amount of Ram photoshop will use. and scratch disk application that will be … | |
kinda like the last program.. just does different things.. anyway, im getting a seg fault i dont understand one bit its off of the menu function. when you input an invalid number like 8 - it says invalid but if you input 7 to quit the program it seg faults. … | |
Hi everybody. I am a student taking up C programming and I need some help from you guys. My main problem is that I do not know how to start with programming, aside from that, I would like to know also whoever knows how to understand discrete structures in programming. … | |
Hello all, I'd like, very much, to understand linked-lists.I've read many texts on the subject and tried many source codes but none of them seemed to fit my needs (one from daniweb is pretty close but it's in C) so I, as desperate as I can be, beg you for … | |
Hey, i get the following annoying link errors when i try to build my program: [quote] Compiling... power level.cpp Linking... power level.obj : error LNK2001: unresolved external symbol "int __cdecl YesNo(void)" (?YesNo@@YAHXZ) Debug/power level.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/quote] The program compiles ok, but it … | |
for example when i now search for a specific city and none match the function will tell you but if there is a match the program just dies, also when i try the retrieve all function, the program dies by seg fault... so im thinking its in my while loop? … | |
Hello all :p I was working on this simple program with a formula for calculating parallel resistance. I was getting all kinds of errors at first but I am still getting these few. Compiling... ResistancePar.cpp G:\VC++60\ResistancePar\ResistancePar.cpp(5) : warning C4518: 'float ' : storage-class or type specifier(s) unexpected here; ignored G:\VC++60\ResistancePar\ResistancePar.cpp(5) … | |
Hello, Im rather new to C, but I was struck with one curiosity as I delve into it. From what I understand, there is not supposed to be any support for string-datatypes in the language itself; you need to import libraries to get this support (where the strings are actually … | |
what all do i have to do to make this work... this is my class and functions... and the errors are at the bottom... do i have to overload operators or is there a much easier way? thanks. and i know the return function isnt written yet. [CODE]#include <iostream> #include … | |
On windows operating system How can we make a window an active window (focussed window) using c/c++ programming. I tried using SetForegroundWindow() but it is not working. AllowSetForegroundWindow() will work on Windows XP? Any how please give me an idea regaurding this. | |
hi this is srikanth from india. it would be highly appreciated if a separate forum is put up exclusively for C language.it would be very much useful to beginners. clubbing c and c++ in one forum is a little uncomfortable for the user to browse c related threads. |
The End.