Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~5K People Reached
Favorite Forums
Favorite Tags
Member Avatar for VictorK19

I'm trying to read a message (string/text) from the server, and I set the buffer size really large (buffer_size = 1000) so that I only need to read once from the server. So my question is if the message is exactly 10 bytes, and I call read(socket, buffer, buffer_size), then …

Member Avatar for aradicev
0
290
Member Avatar for aradicev

Hi, I have run into an obstacle while trying to restart a direct sound device on windows 7. What I'm doing is clasical stuff: 1. Create the interface `DirectSoundCaptureCreate8(CConfig::GetMainSoundDeviceCaptureGUID(), &m_radioRecordObj, NULL);` 2. Create the buffer `m_radioRecordObj->CreateCaptureBuffer(&m_radioRecordDesc, &pDsb, NULL);` ... `pDsb->QueryInterface(IID_IDirectSoundCaptureBuffer8, (LPVOID*) &m_radioRecordBuf);` 3. Start the buffer `m_radioRecordBuf->Start(DSCBSTART_LOOPING);` after some time …

0
144
Member Avatar for chrisschristou

hello friends i finally started programmation at school, we use ubuntu, at home i installed eclipse with MinGW i tried simple helllo world and it works but when i start mutiple exercices under same same project i get a compiler errormultiple definition of 'main' in c i tried `int main …

Member Avatar for chrisschristou
0
2K
Member Avatar for chubbyy.putto

I very new to C Shell. I am trying to read a file from the command line, and determine whether it's a zip file, a .txt, a symbloic link, a pipe, or whatever ("unknown"). Then I'd like to execute a few instructions depending on the type. For instance, if it's …

Member Avatar for aradicev
0
136
Member Avatar for muhd.hadziq

#include <stdio.h> #include <stdlib.h> void main() { int salaryIn = 0.0; int years = 3; float salaryOut = 0.0; printf ("\nWhat is your salary (0 to stop)? RM" ,salaryIn) ; scanf ( "salaryIn" , salaryIn) ; do { do { printf ("\nYear " , years); for (double rate = .03; …

Member Avatar for aradicev
0
144
Member Avatar for mehak70

router is able to display list of devices that are connected to the wifi,which could be a pc or mobile....but is it possible to hide our device from being displayed on the list

Member Avatar for rubberman
0
334
Member Avatar for yassink

Write a function (seat_type) that reads an input from the user that represents a seat class. The user should enter F: for a first class seat, C: for a business class seat, or Y: for an economy seat. The function should validate the user input to accept only F, C, …

Member Avatar for RonalBertogi
0
318
Member Avatar for algrandjean1

Hello, I am having some difficulties getting my program to write the contents of an object to a file. First off, I am not sure if I should be writing the contents of the the object (e1, e2, e3) to the file or if I should be writing the contents …

Member Avatar for aradicev
0
279
Member Avatar for localp

I am new to conneting to MYSQL through a C++ code; so this is what i did i installed MySQL Server 5.1 (it was a EXE), and thats it. i opened the MYSql command line client and created a DB, and added a table and values to it. This is …

Member Avatar for aradicev
0
325
Member Avatar for adarbyem

Hi all, the search function failed to yield any results for me so I come here to create a new thread. I'm learning C++ on my own (sort of a weird hobby of mine to learn code, don't ask) and had an interesting question... Consider the following: Ingredients.h [code=c] #ifndef …

Member Avatar for adarbyem
0
271
Member Avatar for kerp

Hi! I've recently started to make some programs with the windows API using C++. The problem I'm having right now is that I've created an application, and now I want to share it with the world (or at least some selected few). I've coded the program on my laptop win …

Member Avatar for kerp
0
415
Member Avatar for saqib_604

hy! I am writing an integer array class. but there is problem to return array from getter function. any one tell me the procedure of this task. And tell about extract operator for that class.[code]#include<iostream> using namespace std; class integer{ friend ostream& operator<<(ostream& output, const integer& num); private: int array[10]; …

Member Avatar for mrnutty
0
291
Member Avatar for Andreas5

Exercise 12-5 in Accelerated C++. My operator+= works: [CODE]void Str2::operator+=(const Str2& a) { iterator new_data = alloc.allocate((avail - data) + a.size()); iterator new_avail = std::uninitialized_copy(data, avail, new_data); new_avail = std::uninitialized_copy(a.data, a.avail, new_avail); uncreate(); data = new_data; limit = avail = new_avail; }[/CODE] However i cant get the operator+ to work:( …

Member Avatar for Andreas5
0
90
Member Avatar for seanzshow

Hi, I am attempting to come to terms with pointers and have come up against a problem. By my understanding the code below should: a, assign the value 3200 to total. b, attach the memory address of total to ptr. c, send the value at ptr to val. d, display …

Member Avatar for Fbody
0
129