51,592 Topics
![]() | |
[FONT=Trebuchet MS]Dear all: I've created TCPsocket in linux using C++. It receives an array of unsigned characters. I need the corresponding hex values in character format. i.e. "ABC" in hex it is "414243". Now I want to treat each of "414243" as character. So I have done the coding as … | |
![]() | Hi everione, my next assinement is 2 do with classes. I dun no what they are tho and why u will use them? Can any1 explain them to me I would B greatfull. God bless. :o |
hi. can anyone tell me how to disable blinkin cursor from my WIN32 console Application. i have created a console app.. using vc++ but i see the cursor blinkin all the time which is not what i want. please help thanks in advance. | |
do you know of any api in c++ that could give me time in this format: hh:mm:ss I used strtime in lccwin32 but it is not compatible with other compilers | |
I want to fetch data from SQL Server 2000 using tcp/ip connection and display on the client. Q : How do i fetch data from SQL Server 2000 and put the data on a combo box. Q: My server user interface will have "Fetch" button ? Client User Interface: ___________________________ … | |
My project continues... But at least I'm getting better at using C/C++ and MFC. Now, I'm at a critical point: dynamic memory allocation fundamentals. I have a data class with a number of unsigned char arrays and longs that are addressed in structs (encapsulated by the class). I'd like to … | |
Hi I am using the dev c++ compiler can somebody please guide me as tohow I should integrate libtiff and its associated header files with the c++ compiler .I am on a deadline so any help would be greatly appreciated. Can somebody also be kind enough to run this code … | |
Hi hope i am writing in right section of the forum trying to create a registry for my C program which has an .exe . want to work on windows start. The program is a kind of firewall program closes ports and opens them only if they are opened from … | |
what about this question.........what is a default comstructor? how are an object's data members initialized if a class has only an implicitly defied default constructor? explain the purpose of data member. << moderator edit: split thread (was a reply to [thread=15829]this[/thread]) >> | |
I’m having trouble entering data from a file into an integer and character array. Basically, in this file, some the data I want transferred into a character array. Other parts, I want transferred into an integer array. I am able to get data into the arrays, and the char array … | |
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. … | |
Hi everybody i spent the last few months playing with .NET(c#). i'm considering to do a project work using c#(.net) just for my own experience. so can any one help me to pick an interesting topic to work with. Thanks | |
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. | |
hey every1, can any one tell me how to draw a ball or a circle in an console application vc++ and make it move around various coordinates.. basically the ball shud move arnd 4 directions. i tried printin chars but dont quite know how to go about paintin the ball … | |
Hi i have a programming problem ;) I have a set of number(there is no limit must be dynamic) and i want to find out the unique numbers from the set i.e numbers which are not repeated. Observation: 1) No. of element in set should not be limited 2) Algorithm … | |
I'm making a program (using MFC) that opens a file using the c-style FILE* format rather than C++ style streams. I'm doing this because I'm lazy, and so I can use as much pre-existing code as I can. When I close the program, a destructor is called. [code] CGrid1Doc::~CGrid1Doc() { … | |
I did a search of the forums here and found that there are a number of unanswered questions on this subject and a few that are ambigious. My problem is a bit unique however. I need to know if it is impossible to connect to a database with C++ using … | |
Hello ladies and gents, Have a few questions about the following example that is given: [code] #include <iostream> #include <fstream> using namespace std; int main() { char ch; int n=0; ifstream ff("aa"); if (!ff) { cout << "Can't open file aa for input.\n"; return 1; } ofstream gg("bb"); if (!gg) … | |
How to i get cubic numbers into a program? Ive tried ^3, but in this line: x = creat^3; y = lines*20; z = x+y; cout<<"Your zenii for this post is " << z << ".\a" << endl; If i change the cout to call out x it calls it … | |
Hello, I'm at work and wanting to install Microsft VC++ V6 on me box. However I've left the CD at home and was wondering if I could download the demo / trial version? | |
Hi every one Please help me: How can i found, if there is any disk in a removable drive (floppy drive or cd drive). I am programming with C++Builder. If there is any Win API function for this. Thank you very much. | |
Hi all. I imagine there is a key word like there is asm for asembly but I don't know what it is. Never tried it in visual basic 6. Using net now and learning c++ whould like to know. Any help greatly appreciated. TIA. :confused: |
The End.