51,593 Topics

Member Avatar for
Member Avatar for serkan sendur

i was reading xerces-c class documentation, one of the methods does the writing of buffer to a file. what should i understand from buffer, how is it different from writing some stream to a file? What should i understand from stream? Thanks

Member Avatar for stavrianosy
0
1K
Member Avatar for aramil daern

These are codes that do absolutley nothing, except to show whart you can do with to much time on your hands. Oh the silliness

Member Avatar for Echo89
1
485
Member Avatar for acerious

Here I have some code that will run a program that generates a bunch of lowercase and uppercase letters from length 15-25 and will swap it first using an iterative swap method. It will then generate a second set of letters and will swap it this time with a recursive …

Member Avatar for acerious
0
192
Member Avatar for Akintunde Dare
Member Avatar for Hanna Jane

Hi Everyone, I need to know how can we represent the projectile motion gven a certain angle and velocity, such that I can watch the animated ball moving in is path on screen.... all using openGL in C++

Member Avatar for saurabh5584
0
3K
Member Avatar for thammalatha

Hi Can any one explain how we use CListCntrl class in mfc to track the listby using dialog based application..just simple example.. thanks in advance..

Member Avatar for thammalatha
0
81
Member Avatar for jorge.carmonajr

ok so i am new to programing and need to make a program that adds and subtracts two coordinates this is the main file #include <iostream> #include "Coordinate.h" using namespace std; int main() { Coordinate a( 1, 7, 0 ), b( 9, 8, 7 ), c; a.printCoordinate(); cout << " …

Member Avatar for mrnutty
0
124
Member Avatar for jorge.carmonajr

I am having trouble wrapping my head around classes. I'm not to sure what they are used for or how to use them. so i need some serious help with this assignment for my class. This is the assignment: **Create a class called Coordinate for performing arithmetic with x/y/z coordinates …

Member Avatar for Astreios
0
122
Member Avatar for unsensible

ok so as a homework assignment I have to sort a c-string array alphabetically. We have to use pointers and cannot using strings (although strcopy and strcmp can be used). I can sort integers and strings but for the life of me cannot figure this out. I'm pretty sure i'm …

Member Avatar for unsensible
0
2K
Member Avatar for mackieben04

**Hello Everyone! Please Help me on my C++ Program it's kinda buggy and full of errors. I hope someone can help me~ Thanks in Advance! :D** #include <iostream> using namespace std; int main() { int stun; float NUO, APU, IA, DP, Bal; cout<<"Student Record\n\n"; cout << "Student Number: "; cin …

Member Avatar for Ancient Dragon
0
90
Member Avatar for DaMaskMan2

. What wrong with the following code segment? int* = needle; needle = new int; *needle 100; cout << *needle; needle = new int; *needle = 32; cout << *needle;

Member Avatar for phfilly
0
70
Member Avatar for DaMaskMan2

What wrong with the following code segment? int* birdDog; int* germanShortHair; birdDog = new int; germanShortHair = birdDog; *birdDog = 42; cout << *birdDog; delete birdDog; cout << *germanShortHair;

Member Avatar for Ancient Dragon
0
68
Member Avatar for Chandrakumar

I copied book1.xls into IISServer c:/inetpup/wwwroot objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=" & Server.mappath("/book1.xls") &";ReadOnly= true ; UID=admin;" Dim strSQL excelfilename = "Book1.xls" strSQL = "select * from " & excelfilename Dim objRS Set objRS = Server.CreateObject ("ADODB.RecordSet") objRS.Open strSQL, objConn,3,3 When I execute the page Error Type: Microsoft OLE DB …

Member Avatar for rajeev_cv_2012
0
300
Member Avatar for daino

I've installed the boost libraries binary version. How do I link this to my project? I've put the boost/bin path in my 'Path' environmental varialbe. Thanks

Member Avatar for daino
0
354
Member Avatar for Ranger86

Hello I'm new to C++ and am trying my best to learn the language. Could someone please let me know why my program is not working. I have a feeling that I'm not passing values to and from functions. The program compiles and runs, but it just gives me a …

Member Avatar for VernonDozier
0
321
Member Avatar for andigirlsc

In my function definitions under apply_discount, when I enter a 1 or 2 for the discountQues to see if the customer has a coupon, the program thinks I'm entering a ticket type (1=toddler, 2=junior, 3=senior). Can you tell me what I'm doing wrong? I already tried making discountQues a global …

Member Avatar for deepecstasy
0
259
Member Avatar for DaMaskMan2

What does the following code do? int number; int& atlas = number; number = 212; atlas++;

Member Avatar for mrnutty
0
59
Member Avatar for on93

can anyone tell me where is my problem ??? i cannot debug this program. -------------------------------------------------------------------- #include<iostream> #include<string> using namespace std; class student { private : string name; int id; float cgpa; public : void setName(string na); void setID(int number); void setCGPA(float result); string getName(); int getID(); float getCGPA(); void display(); …

Member Avatar for deepecstasy
0
134
Member Avatar for nyfan68

I am suppose to write a program that inserts 25 random integers from 0 to 100 in order in a linked list. The program should calculate the sum of the elements and the floating-point average of the elements. I have been stuck with the add and average functions for some …

Member Avatar for Geli19
0
586
Member Avatar for nmajon

hi.i have a big problem .i just learn about classes and i don't know too much.now i have to do a problem using classes but for strings.i have to do one class string and do : -create a string -display the lenght of string -comparison lexicographics of 2 strings -concatenation …

Member Avatar for mrnutty
0
123
Member Avatar for dot_binary

I'm using winapi function GetTickCount() with delta time and I'm calculating the displacement of an object on screen like this: number_Of_Pixels_To_Move_On_Screen = (speed*delta_Time)/number_Of_Pixels_Per_Milllisecond but I get uneven movement.Sometimes it moves a litle faster ,sometimes slower . Can someone tell me how to get the object to move at a constant …

Member Avatar for mrnutty
0
171
Member Avatar for jackshannon4

std::string s = "65//3"; std::istringstream indexBlock(s); for (int i = 0; i < 2; i++) { int index = 0; indexBlock >> index; std::cout << index << std::endl; } I would expect the output of the cout to be: output: 65 3 as I thought the stream iterates through the …

Member Avatar for jackshannon4
0
376
Member Avatar for UrFace

Write a C# program that searches a file for a string. Pass the string and the file name as program arguments.

Member Avatar for Momerath
-2
40
Member Avatar for magadascar

Hi Sir Referance to the previous article "C++ Help With Smallest Denominations of Coin Change" you suggested to use the code " CoinChanger::CoinChanger() ". And when I use it , it appear the error message " expected function body after function declarator" so could you please advise me regarding this …

Member Avatar for Ancient Dragon
0
53
Member Avatar for aaal

Hello, I have some problems with this code //Selection and Bubble are working #include <iostream> #include <cstdlib> #include <cassert> #include <ctime> #include "Sorts.h" using namespace std; typedef void (*SortFunction)(int a[], int n); int main(int argc, char *argv[]) { if(argc < 4) { cerr << "Usage: " << argv[0] << " …

Member Avatar for deceptikon
0
176
Member Avatar for Daniel BE

Dear friends, I want to create a program that reads 10 numbers from the user and store it in a file namely Numbers.txt. After that I have to read each numbers and if it is a Even number then it should be stored in a file "Even.txt" otherwise it should …

Member Avatar for deceptikon
0
253
Member Avatar for danibecse

How to print a sentence (including white spaces) from a file ? Or How to print entire text file which has a paragraph? I have tried a lot and the final programs is shown below.. but it can't print sentences exceeding certain length... it shows unwanted ASCII characters :( How …

Member Avatar for Daniel BE
0
3K
Member Avatar for mee_ram

Hi, I have used xerces for xml parsing and it was working fine. But recently (i didn't change any coding) the same code doesn't work and it crashs the application after executing the XMLDomParser::parse() --> fatalError() method. It gives an runtime error exception: xercesc_3_1::XMLErrs::Codes at memory location xxx. For a …

0
52
Member Avatar for celina1234

I am very new to programming language and need help urgently. I am running a program which gives me one output file for every 5 min simulation. i have to copy and rename the output file in each step so that they can be used in another program . Any …

Member Avatar for Adak
0
304
Member Avatar for litmah
Member Avatar for wids101

hi i have two question? if i wanted to read in file also, how do i do that? #include <conio.h> #include <iostream> #include <cstring> #include <ctype.h> #include <string> using namespace std; using std::string; enum CardType{ MasterCard, BankCard, Visa, AmericanExpress, Discover, DinersClub, JCB }; bool Validate(CardType cardType, string cardNumber){ int number[16], …

Member Avatar for VernonDozier
0
240
Member Avatar for SCass2010

Hi everyone, Currently for a university project I am building a server that can send notifications to a mobile device. Part of the project involves building a front end where I can configure everything for the server - updates to send, rules and so on. On the front end I …

Member Avatar for nmaillet
0
259
Member Avatar for ogrishmania

I'm sort of a begginer in classes. I must implement a simple problem: chosing a phone. I thought that I should make a program in which a user can select some conditions, like must have wifi or not, android or other, etc. and return a list with the phones that …

Member Avatar for mrnutty
0
286
Member Avatar for ppotter3

Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am …

Member Avatar for magadascar
0
2K
Member Avatar for thechetantalwar

I have a created a small user interface in C++ using Graphics. Now i want to extend it. Such as i want to make it bootable, or how can it act as an Operating System?

Member Avatar for thechetantalwar
0
354
Member Avatar for sh2012.aps

i am using the url = "https://prd.aps.net/cm/json/login.json?username=aps@aps.com&pass=ca4433$$&apikey=1dd80ss107s3ad9593c857cc6d14d3a3" Note:: if iam using the http as a protocol it just grab the values in a few seconds(3 to 4) but using https its a big issue around 40 sec it takes when i am calling curl_easy_perform(curl) why so? please take a part …

0
170
Member Avatar for maclam13

I am trying to read data from a file in a loop. The file looks like this: X Joe Scholtz 437-4798 A Tim Wade 768-7658 X Sara Jobs 326-7857 ! Jaynce Bee 354-8678 (The X in front is for preferred or not preferred.) I am getting the first and last …

Member Avatar for Ancient Dragon
0
207
Member Avatar for manashmanash

define a program to represent a bank account.Include the following members: 1.Name of the depositor. 2.Account number. 3.Type of account. 4.Balance amount in the account.

Member Avatar for Lucaci Andrew
-3
211
Member Avatar for Jwerb86

Hey all! I'm trying to write a program that simulates a student database. From the user, it takes the number of students there are, their names, student ID's, and majors. I'm having a runtime problem with the code I have and was curious to know if anyone can help. It …

Member Avatar for Jwerb86
0
208
Member Avatar for parth27987

> The game of Rush Hour is played in a 6x6 grid. The goal is to drive your vehicle out of the maze as quickly as possible. You may move each vehicle one square at a time, but only in the direction (up-down or left-right) that is oriented. You may …

Member Avatar for parth27987
0
509
Member Avatar for Vish0203

How to manipulate .doc files using c++ ??? I'm working on a project which needs this manipulation.. But, I feel that it is not possible to manipulate .doc files :/ can anyone help me out here??

Member Avatar for Vish0203
0
277
Member Avatar for sadiq.pardesi

hello friends plz tell me how i print the prime numbers from 1-1000 in for loop in c++. plz help me

Member Avatar for DavidB
0
40
Member Avatar for ranam

Can any one tell me how to solve these any pointers would be of great help :( ![Error5](/attachments/large/1/Error5.JPG "Error5")

Member Avatar for Ancient Dragon
0
57
Member Avatar for ranam

Error 4 error C2504: 'CYodaGeneralAuditListCtrl' : base class undefined c:\teamyoda\mainline\yoda\accounting\yodaaccountingauditlistctrl.h 15 i am recieving this erro can any one help me in solving it

Member Avatar for ranam
0
115
Member Avatar for Archaismic

Here's what I'm working with. #include <windows.h> #include "iostream" void SendText(char* message, int size) { int lc=0; do{ keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_EXTENDEDKEY,0); keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_KEYUP,0); lc=lc+1; } while(lc<size); keybd_event(VK_RETURN,0,KEYEVENTF_EXTENDEDKEY,0); //Presses Return keybd_event(VK_RETURN,0,KEYEVENTF_KEYUP,0); //Presses Return } int main() { Sleep(5000); char a=98; SendText("a", strlen("a")); } I think this is a noobish question but, how would I …

Member Avatar for Archaismic
0
209
Member Avatar for litmah
Member Avatar for BobS0327
0
78
Member Avatar for ilian.bonov

#include "stdafx.h" #include <stdio.h> #include <math.h> #include <iostream> using namespace std; int main() { int a; int b; int c; double X1; double X2; double D; cout<<"a="; cin>>a>>endl; cout<<"b="; cin>>b>>endl; cout<<"c="; cin>>c>>endl; X1 = (-b+sqrt((b*b)-(4*a*c)))/(2(a)); X2 = (-b-sqrt((b*b)-(4*a*c)))/(2(a)); D =(b*b)-(4*a*c)); if (D >= 0) { cout<<"..."<<X1<<X2<<endl; } if (D < …

Member Avatar for ilian.bonov
0
132
Member Avatar for last1devil

Hi! I use Linux Mint Maya and I need to install some software from sources but the problem is that GCC is not working. When I type gcc or make command I get a error like this: bash: /usr/bin/gcc: cannot execute binary file How can I fix that?

Member Avatar for last1devil
0
839
Member Avatar for XEN0

Rewrote this a few times heres the meat and potatoes. Has a few issues such as flashing when moving in different directions quickly. Thinking of trying to clamp a few values to try to stop the diagonal movement,flashing and smoothing out the sprite. Something along these lines might update this …

Member Avatar for XEN0
0
269
Member Avatar for Carpetfizz

Hello, I'm working on some kind of a text-based game, and I'm trying to move on from the options being given, and the user selecting "1 or 2", to actually reading a string that was inputted and pick up key words. So far, I've learned how to read a whole …

Member Avatar for Carpetfizz
1
281

The End.